Plugin Directory


Ignore:
Timestamp:
04/26/2014 05:39:10 AM (12 years ago)
Author:
joshuadnelson
Message:

added conditional to avoid potential conflicts on admin dashboard

Location:
scripts-to-footerphp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts-to-footerphp/trunk/readme.txt

    r863518 r903015  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FGQXZEW8S9UPC
    55Requires at least: 3.0.1
    6 Tested up to: 3.8.1
    7 Stable tag: 0.2
     6Tested up to: 3.9
     7Stable tag: 0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737== Changelog ==
    3838
     39= 0.3 =
     40Added conditional to disable on plugin on admin dashboard, version bump.
     41
    3942= 0.2 =
    4043Updating code to be object-oriented and added page metabox to disable plugin on specific pages.
     
    4548== Upgrade Notice ==
    4649
     50= 0.3 =
     51Adds safeguard to avoid conflicts on admin dashboard.
     52
    4753= 0.2 =
    4854This upgrade adds options to disable plugin on specific pages.
  • scripts-to-footerphp/trunk/scripts-to-footer.php

    r863518 r903015  
    1313 * Plugin URI: http://wordpress.org/plugins/scripts-to-footerphp/
    1414 * Description: Moves scripts to the footer to decrease page load times, while keeping stylesheets in the header. Requires that plugins and theme correctly utilizes wp_enqueue_scripts hook. Can be disabled via a checkbox on specific pages and posts.
    15  * Version: 0.2
     15 * Version: 0.3
    1616 * Author: Joshua David Nelson
    1717 * Author URI: http://joshuadnelson.com
     
    4444// Plugin Verison
    4545if( !defined( 'STF_VERSION' ) )
    46     define( 'STF_VERSION', '0.2' );
     46    define( 'STF_VERSION', '0.3' );
    4747
    4848/**
     
    100100        $excluded_pages = get_post_meta( get_queried_object_id(), 'stf_exclude', true );
    101101       
    102         if( 'on' != $excluded_pages ) {
     102        if( 'on' !== $excluded_pages && !is_admin() ) {
    103103            remove_action( 'wp_head', 'wp_print_scripts' );
    104104            remove_action( 'wp_head', 'wp_print_head_scripts', 9 );
Note: See TracChangeset for help on using the changeset viewer.