Changeset 1865311
- Timestamp:
- 04/27/2018 09:58:12 AM (7 years ago)
- Location:
- wp-purge-pagespeed-button/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-purge-pagespeed-button/trunk/readme.txt
r1801754 r1865311 3 3 Tags: google, pagespeed, mod_pagespeed, cache, purge, clear 4 4 Requires at least: 4.5.0 5 Tested up to: 4.9. 16 Stable tag: 10.0.05 Tested up to: 4.9.5 6 Stable tag: 0.0.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT -
wp-purge-pagespeed-button/trunk/wp-pagespeed-purge.php
r1801754 r1865311 4 4 * Plugin URI: https://github.com/salaros/wp-purge-pagespeed-button 5 5 * Description: One-click PageSpeed cache purging using an admin bar button 6 * Version: 10.0.06 * Version: 0.0.0 7 7 * Author: Zhmayev Yaroslav aka Salaros 8 8 * Author URI: https://salaros.com … … 21 21 public function __construct() { 22 22 // Enqueue css and js files 23 add_action( 'admin_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 ); 23 if( ! is_admin() && is_admin_bar_showing() ) { 24 add_action( 'wp_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 ); 25 } else { 26 add_action( 'admin_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 ); 27 } 24 28 25 29 // Add 'Clear Redis cache' button to the admin bar … … 61 65 } 62 66 63 new PageSpeedPurge(); 67 add_action( 'plugins_loaded', function () { 68 new PageSpeedPurge(); 69 } );
Note: See TracChangeset
for help on using the changeset viewer.