• Resolved Jeff

    (@jmf)


    This is a small thing, but troublesome. After upgrading to 3.8, there’s no Admin Color Scheme section on my user’s profile pages.

    This is an old and unfortunately convoluted site, and I’m not sure if I might have some wires crossed that are preventing the section from appearing. I disabled all the plugins that might be interfering with admin pages, things like: Admin Menu Editor Pro, Custom Admin Branding, etc., but no luck.

    In no PHP expert, but I noticed that user-edit.php was running this check to display the color scheme section:

    <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>

    Adding a simple echo count($_wp_admin_css_colors); echo has_action('admin_color_scheme_picker'); simply returned “8”

    Doing the same with a simpler site I run where the color schemes show up returned “81” as it should.

    So that seems to be the problem. Anyone have any idea what I might have done to be breaking the has_action(‘admin_color_scheme_picker’) check?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What do you see in that section? Can you post a link to a screenshot?

    Thread Starter Jeff

    (@jmf)

    It literally is not there—the code isn’t being written into the page, because (I imagine) it’s failing the check.

    Screenshot: https://eagln.st/MFZ9B

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well … the fast way would be rename plugins to plugins-old, see if it comes back. If not, switch themes, test, see :/ Sometimes it’s easier than a onesy-twosie.

    Thread Starter Jeff

    (@jmf)

    So my actual “front-end” theme could be killing it somehow? (I wouldn’t put it out of the question—it was built from scratch and has evolved over a few years, and is now mostly spaghetti…) Does blog theme code bleed into admin theme code somehow?

    Interestingly enough, the “plugins-old” trick doesn’t bring it back.

    Thread Starter Jeff

    (@jmf)

    Ag. I’ve got it—of course—it’s something in my functions.php file. No idea how I’ll track this down, but at least I’ve narrowed the field a bit!

    Thread Starter Jeff

    (@jmf)

    And fixed. I’m an idiot. I had disabled admin_color_scheme_picker in functions.php ages ago, for some reason. Thanks for your help—I wouldn’t have thought to look there. Sheesh.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Admin Color Themes in 3.8’ is closed to new replies.