[wp-trac] [WordPress Trac] #19342: Call to undefined function convert_to_screen when using plugins with custom meta boxes
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 25 15:19:55 UTC 2011
#19342: Call to undefined function convert_to_screen when using plugins with custom
meta boxes
------------------------------+---------------------
Reporter: jackdewey | Owner: rboren
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.3
Component: Template | Version: 3.3
Severity: major | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Comment (by nacin):
If you need admin functions on the frontend, the only canonical way to do
this is to include wp-admin/includes/admin.php. Otherwise you risk not
including a dependency that either A) exists in a rarely used code block,
or B) exists in a future version of WordPress.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19342#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list