[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
Wed Nov 23 19:34:50 UTC 2011
#19342: Call to undefined function convert_to_screen when using plugins with custom
meta boxes
--------------------------+------------------------
Reporter: jackdewey | Owner: nacin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.3
Component: Template | Version: 3.3
Severity: major | Resolution:
Keywords: |
--------------------------+------------------------
Changes (by nacin):
* severity: blocker => major
Comment:
Link Library is doing a very bad thing: `require_once(ABSPATH . '/wp-
admin/includes/template.php');`
add_meta_box() is only available in the admin for a reason — it should be
hooked into an admin hook, rather than force-requiring files.
The only thing we could do here is move convert_to_screen() back to
template.php, but stuff would still break since the screen isn't
available.
We should do a grep and warn plugin authors doing it wrong.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19342#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list