WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. James Revillini
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/wp-admin-theme/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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