Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link with target="_blank" doesn't open in a new page, when inside a metabox. #3242

Closed
kmgalanakis opened this issue Oct 30, 2017 · 1 comment
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen

Comments

@kmgalanakis
Copy link

When clicking a link from inside a metabox, which opens to a new page ( target="_blank") nothing happens and the new tab/window is not opening.

Test Code

add_action( 'admin_head', 'my_meta_box' );

function my_meta_box() {
	global $post;
	add_meta_box( 
		'my_meta_box', 
		__( 'My metabox', 'my-context' ), 
		'my_meta_box_callback', 
		$post->post_type, 'side' 
	);
}

function my_meta_box_callback() {
    echo '<p>Lorem ipsum dolor sit amet.</p>';
    echo '<a href="https://wordpress.org/" target="_blank">wordpress.org</a>';
}
@BE-Webdesign
Copy link
Contributor

Hi @kmgalanakis!

Thank you for the report. I will see if there are any potential workarounds.

@BE-Webdesign BE-Webdesign added the [Feature] Meta Boxes A draggable box shown on the post editing screen label Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Meta Boxes A draggable box shown on the post editing screen
Projects
None yet
Development

No branches or pull requests

3 participants