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 inside a metabox is opened on the metabox container. #3243

Closed
kmgalanakis opened this issue Oct 30, 2017 · 2 comments · Fixed by #3345
Closed

Link inside a metabox is opened on the metabox container. #3243

kmgalanakis opened this issue Oct 30, 2017 · 2 comments · Fixed by #3345
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, the link page opens inside the metabox container.

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/">wordpress.org</a>';
}
@christopherabalos
Copy link

Related: calls to open the media modal via wp.media results in the modal being loaded inside of the iframe.

@BE-Webdesign
Copy link
Contributor

Hi kmgalanakis,

Thank you for the report again. I believe there are ways to get around this. We can try them out, and see if that improves the situation.

@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

Successfully merging a pull request may close this issue.

3 participants