[wp-trac] [WordPress Trac] #45283: Meta Boxes: Add an action for plugins to print hidden inputs in the meta box form
WordPress Trac
noreply at wordpress.org
Tue Nov 6 13:17:38 UTC 2018
#45283: Meta Boxes: Add an action for plugins to print hidden inputs in the meta
box form
-------------------------------------+-----------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.0
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------
Comment (by danielbachhuber):
@pento I don't love using output buffering and regex as a shim, but it
does give us whitelist control over the behavior. I notice that core
itself has this, which we wouldn't want to accidentally render:
{{{
// Show a "postbox" with the text suggestions for a privacy policy.
add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content',
'notice' ) );
}}}
> It's likely that `edit_form_after_title` and `edit_form_advanced` could
both be run after `admin-header.php`, in which case we don't need to pass
them around like this.
Do you think this runs the risk of any execution order bugs?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45283#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list