Support » Fixing WordPress » Theme Editor change

  • Resolved Beel


    Just a quickie – I may have missed something herein, but what do I need to change to get the theme files to show up in the Editor instead of “Oops, no such file exists!…” 😕

Viewing 7 replies - 1 through 7 (of 7 total)
  • Isn’t it the code in the header?
    Check out this page,…

    Does it do that for all themes and all files, or just particular ones? Are you using symbolic links?

    I just installed Kubrick rc2 for WP 1.3 and got essentially the same deal.
    I’ve got WP1.3A4 (CVS) from 11/18/04 installed in public_html.
    Kubrick is installed in public_html/wp-content/themes/kubrick.
    If I select “kubrick” from Presentation->Themes, I get the text
    “The active theme is Kubrick. The template files are located in wp-content/themes/kubrick. The stylesheet files are located in wp-content/themes/kubrick.”
    So far, so good.
    When I go to “Theme Editor”, I can select either “Default” or “Kubrick”. Doesn’t matter which one I select, I stull get
    “Oops, no such file exists! Double check the name and try again, merci.”
    Que c’est fuque?

    Do you have the same problem with the plugin editor?

    Okay, here’s the fix…at least on my installation: At line 29 of “wp-admin/theme-editor.php”, I modified
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $allowed_files, $themes[$theme]['Template Files']);
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
    I now get a frame with the contents of “wp-content/themes/kubrick/style.css” and a selectable list of the theme’s files over to the right.

    Moderator Ryan Boren


    Good catch. Fixed.

    same problem to me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Theme Editor change’ is closed to new replies.