[wp-trac] [WordPress Trac] #25590: multisite add/insert media dialoge – no pictures
WordPress Trac
noreply at wordpress.org
Wed Apr 16 05:08:32 UTC 2014
#25590: multisite add/insert media dialoge – no pictures
---------------------------+-------------------------
Reporter: francishunger | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version: 3.6.1
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
---------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:2 francishunger]:
> However, it is not any of the individual lines but the complete function
that disturbed the add media dialog.
To clarify, it's not `remove_menu_page()` by itself, it's the warning that
breaks the AJAX request:
{{{
Warning: Invalid argument supplied for foreach() in wp-
admin/includes/plugin.php on line 1375
}}}
See [source:tags/3.8.3/src/wp-admin/includes/plugin.php#L1375].
You should use `admin_menu` action rather than `admin_init` (since
`admin_init` also fires during AJAX requests).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25590#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list