WP Admin Theme
don't link to upload.css unless it exists (1 post)

  1. James Revillini
    Posted 4 years ago #

    When this plugin is active, it adds this line to the head of all pages in admin:
    <link rel="stylesheet" href="/wp-admin/css/upload.css" type="text/css" />

    This was probably not intentional so I'll skip all the reasons why it's a bad idea. The issue is that it fills up error logs and puts additional HTTP requests to the server unnecessarily.

    In fact, here's a rewrite of your wb_admin_css function which uses the WP API better: http://pastebin.com/JFxDVHcD


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Admin Theme
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by James Revillini
  • This topic is not resolved
  • WordPress version: 3.3.2