Plugin Directory

Changeset 2323502


Ignore:
Timestamp:
06/13/2020 09:05:00 AM (6 years ago)
Author:
grfstudio
Message:

Removed link manager from page hook

Location:
wp-admin-cache/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-admin-cache/trunk/index.php

    r2184356 r2323502  
    55  Plugin URI: https://www.wpadmincache.com
    66  Description: The first cache plugin for WordPress admin area
    7   Version: 0.2.5
     7  Version: 0.2.6
    88  Author: Grf Studio
    99  Author URI: https://www.grfstudio.com
     
    5858    function init() {
    5959        add_options_page('WP Admin Cache', 'WP Admin Cache', 'manage_options', 'wp-admin-cache', array($this, 'options_page'));
    60         wp_enqueue_script('wp-admin-cache-script', plugin_dir_url(__FILE__) . 'index.js', array(), '0.2.5');
    61         wp_enqueue_style('wp-admin-cache-style', plugin_dir_url(__FILE__) . 'index.css', array(), '0.2.5');
     60        wp_enqueue_script('wp-admin-cache-script', plugin_dir_url(__FILE__) . 'index.js', array(), '0.2.6');
     61        wp_enqueue_style('wp-admin-cache-style', plugin_dir_url(__FILE__) . 'index.css', array(), '0.2.6');
    6262        $session = wp_get_session_token();
    6363        if (!isset($_COOKIE['wp-admin-cache-session']) || $_COOKIE['wp-admin-cache-session'] != $session) setcookie('wp-admin-cache-session', $session, 0, admin_url());
     
    173173        $a = array();
    174174        foreach ($admin_page_hooks as $key => $value) {
    175             if (strpos($key, '.php') !== false && strpos($key, '/') === false) array_push($a, $key);
     175            if (strpos($key, '.php') !== false && strpos($key, '/') === false && $key!='link-manager.php') array_push($a, $key);
    176176        }
    177177        $args = array('show_in_menu' => true);
  • wp-admin-cache/trunk/readme.txt

    r2184356 r2323502  
    22Contributors: grfstudio
    33Tags: admin cache, admin performance, admin speed, slow admin, woocommerce performance, slow woocommerce
    4 Stable tag: 0.2.5
     4Stable tag: 0.2.6
    55Requires PHP: 5.6
    66Requires at least: 4.6
    7 Tested up to: 5.2
     7Tested up to: 5.4
    88License: GPLv2 or later
    99
     
    4242
    4343== Changelog ==
     44
     45= 0.2.6 =
     46
     47* Removed: link manager from page hook
    4448
    4549= 0.2.5 =
  • wp-admin-cache/trunk/settings.php

    r2058847 r2323502  
    3535$duration = $settings['duration'];
    3636if ($duration == '') $duration = '5';
    37 global $menu, $_registered_pages, $admin_page_hooks;
     37global $menu, $admin_page_hooks;
    3838?>
    3939<?php echo $status ?>
Note: See TracChangeset for help on using the changeset viewer.