Changeset 1677102
- Timestamp:
- 06/13/2017 12:22:11 AM (9 years ago)
- Location:
- async-javascript/trunk
- Files:
-
- 1 added
- 2 edited
-
async-javascript.php (modified) (4 diffs)
-
images/clock_fast_times_text_10762.gif (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
async-javascript/trunk/async-javascript.php
r1652678 r1677102 5 5 Plugin URI: https://cloughit.com.au/product/async-javascript/ 6 6 Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script 7 Version: 2.17.0 5.077 Version: 2.17.06.13 8 8 Author: Clough I.T. Solutions 9 9 Author URI: http://www.cloughit.com.au/ … … 27 27 define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) ); 28 28 define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) ); 29 define( 'AJ_VERSION', '2.17.0 5.07' );29 define( 'AJ_VERSION', '2.17.06.13' ); 30 30 require_once( AJ_PLUGIN_DIR . 'lib/gtmetrix/class.Services_WTF_Test.php' ); 31 31 } … … 65 65 add_action( 'wp_dashboard_setup', 'register_aj_dashboard_widget' ); 66 66 function register_aj_dashboard_widget() { 67 global $wp_meta_boxes; 68 wp_add_dashboard_widget( 69 'aj_dashboard_widget', 70 AJ_TITLE, 71 'aj_dashboard_widget' 72 ); 73 $dashboard = $wp_meta_boxes['dashboard']['normal']['core']; 74 $my_widget = array( 'aj_dashboard_widget' => $dashboard['aj_dashboard_widget'] ); 75 unset( $dashboard['aj_dashboard_widget'] ); 76 $sorted_dashboard = array_merge( $my_widget, $dashboard ); 77 $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard; 67 if ( current_user_can( 'manage_options' ) ) { 68 global $wp_meta_boxes; 69 wp_add_dashboard_widget( 70 'aj_dashboard_widget', 71 AJ_TITLE, 72 'aj_dashboard_widget' 73 ); 74 $dashboard = $wp_meta_boxes['dashboard']['normal']['core']; 75 $my_widget = array( 'aj_dashboard_widget' => $dashboard['aj_dashboard_widget'] ); 76 unset( $dashboard['aj_dashboard_widget'] ); 77 $sorted_dashboard = array_merge( $my_widget, $dashboard ); 78 $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard; 79 } 78 80 } 79 81 /** … … 191 193 add_action( 'admin_notices', 'async_javascript_upgrade_notice' ); 192 194 function async_javascript_upgrade_notice() { 193 if ( is_admin() ) {195 if ( is_admin() && current_user_can( 'manage_options' ) ) { 194 196 $options = array( 195 197 'timeout' => 10, //seconds -
async-javascript/trunk/readme.txt
r1652678 r1677102 4 4 Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold 5 5 Requires at least: 2.8 6 Tested up to: 4. 7.47 Stable tag: 2.17.0 5.076 Tested up to: 4.8 7 Stable tag: 2.17.06.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 == Changelog == 103 103 104 = 2017.06.13 = 105 106 * MOD: Dashboard Widget and Notices only available to Administrators 107 104 108 = 2.17.05.07 = 105 109
Note: See TracChangeset
for help on using the changeset viewer.