WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Media icon missing on media edit pages (6 posts)

  1. Cor van Noorloos
    Member
    Posted 2 years ago #

    Hello,

    Not entirely sure if it's mentioned before, but it seems the media icon is currently missing from the media edit screens. (being caused by a recently changed class icon-media)

    Would it be possible to fix this perhaps in future versions?

    http://d.pr/tDI1 (image)

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    It's present on my alpha site running 3.4 (19904).

  3. I see no missing icons (19904 as well). What page is this on, and where, ON the page, are you looking? It's possible we're not looking in the exact same spot :)

  4. Cor van Noorloos
    Member
    Posted 2 years ago #

    Ehm, weird... It's showing on some sites, and not showing on other. After debugging this further I'll come back on this asap.

  5. Cor van Noorloos
    Member
    Posted 2 years ago #

    First of all, sorry. I've listed it as a bug quite being quite sure I didn't have something interfering with this function.

    It seems I do have something, though it's a bit awkward...

    I'm currently using below snippet to hide my theme and plugin admin menu editor links.
    Disabled, it's showing the icon. Enabled, it's showing like the screenshot.

    add_filter( 'parent_file', 'admin_menu' );
    /**
     * Removes the admin menu theme and plugin editor links
     */
    function admin_menu() {
      global $menu, $submenu;
      remove_submenu_page( 'themes.php', 'theme-editor.php' );
      remove_submenu_page( 'plugins.php', 'plugin-editor.php' );
    }

    Not entirely sure now if it should be listed as a bug or not.

  6. Cor van Noorloos
    Member
    Posted 2 years ago #

    Just rewrote above to

    add_filter( 'admin_init', 'admin_menu' );
    /**
     * Removes the admin menu theme and plugin editor links
     */
    function admin_menu() {
      remove_submenu_page( 'themes.php', 'theme-editor.php' );
      remove_submenu_page( 'plugins.php', 'plugin-editor.php' );
    }

    , and everything's working fine again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags