[wp-trac] [WordPress Trac] #25590: multisite add/insert media dialoge – no pictures
WordPress Trac
noreply at wordpress.org
Tue Oct 15 20:07:14 UTC 2013
#25590: multisite add/insert media dialoge – no pictures
---------------------------+------------------------------
Reporter: francishunger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.6.1
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by francishunger):
Thanks, Sergey
Although I was tempted to say "I did all that", I did it again and voila:
Turns out the problem was in my theme (but had nothing to do with the PHP
notice). Some more testing pointed to my functions.php where I had the
following function to remove parts of the backend navigation.
{{{
/*––––––– REMOVE BACKEND NAVI –––––––*/
add_action( 'admin_init', 'smu_remove_menu_pages' );
function smu_remove_menu_pages() {
remove_menu_page('edit.php'); // Removes menu
'articles'
remove_menu_page('link-manager.php'); // Removes menu
'links'
remove_menu_page('edit-comments.php'); // Removes menu
'comments'
}
}}}
However, it is not any of the individual lines but the complete function
that disturbed the add media dialog. Strangely enough this disturbance
didn't occour in WP MU 3.4, so there might have been changes of which I'm
unaware that contradict this approach to remove menu-points from the left
admin menu bar. For the time-being I think I'll turn to some of the ready
made tools like 'adminize' I guess.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25590#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list