Plugin Directory

Changeset 2583000


Ignore:
Timestamp:
08/14/2021 11:57:56 PM (5 years ago)
Author:
pluginoptimizer
Message:

Tagging version trunk

Location:
plugin-optimizer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugin-optimizer/trunk/README.txt

    r2582998 r2583000  
    44Requires at least: 5.0
    55Tested up to: 5.7
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    116116== Changelog ==
    117117
     118= 1.1.1 = August 2021
     119* Bug Fix: Fix display of previous created filters
     120* Bug Fix: Fix the Available filters count
     121
    118122= 1.1.0 = August 2021
    119123* Filter List: Updated filter sorting
  • plugin-optimizer/trunk/includes/class-po-dictionary.php

    r2582998 r2583000  
    8989    function get_prospector_count(){
    9090       
     91        // The endpoints
    9192        $menu_endpoints = get_option( "po_admin_menu_list" );
    9293
     94        // The plugins
    9395        $plugins = array_keys(get_plugins());
    9496
    95         $args = [
    96             "query" => [
    97                 'status'  => 'approved',
    98                 'endpoint' =>  [
    99                     '$in' => array_values( $menu_endpoints["endpoints"] )
    100                 ]
    101             ],
    102         ];
    103        
    104        
    105         //$args = $this->get_benefit_filters_query();
    106         // write_log( json_encode( $args["query"] ), "SOSPO_Dictionary-get_prospector_count-query" );
    107 
    108         $count = $this->count( $args, true );
     97        $all_plugins = get_plugins();
     98        $all_plugins = array('plugins'=>array_keys($all_plugins));
     99
     100        // the option only exists if have already retrieved filters from server
     101        if( $po_filter_retrieval = get_option( 'po_admin_menu_list') ){
     102            $all_plugins = array_merge(array('endpoints' => (array)$menu_endpoints['endpoints']), $all_plugins);
     103        }
     104
     105        // search plugins by belongs to
     106        $all_plugins['belongsTo'] = 'relevant';       
     107
     108        $count = $this->count( $all_plugins, true );
    109109       
    110110        return is_wp_error( $count ) ? "unknown" : $count;
  • plugin-optimizer/trunk/plugin-optimizer.php

    r2582998 r2583000  
    55 * Plugin URI:        https://pluginoptimizer.com
    66 * Description:       The Most Powerful Performance Plugin for WordPress is now available for FREE.
    7  * Version:           1.1.0
     7 * Version:           1.1.1
    88 * Author:            Plugin Optimizer
    99 * Author URI:        https://pluginoptimizer.com/about/
     
    1616// If this file is called directly, abort.
    1717if ( ! defined( 'WPINC' ) ) {
    18     die;
     18  die;
    1919}
    2020
     
    5151function appsero_init_tracker_plugin_optimizer() {
    5252   
     53    // This changed the post type of previous version po
     54    $updated = get_option('po_db_updated');
     55
     56    if( !$updated ){     
     57
     58      global $wpdb;
     59
     60      $count = $wpdb->get_var("SELECT count(post_type) as count FROM {$wpdb->prefix}posts WHERE post_type = 'sos_filter'");
     61
     62      if( $count ){
     63
     64        $updated = $wpdb->query("UPDATE {$wpdb->prefix}posts SET post_type = 'plgnoptmzr_filter' WHERE post_type = 'sos_filter'");
     65
     66        if( $updated ) update_option( 'po_db_updated','true' );
     67      }
     68    }
     69
    5370    global $sospo_appsero;
    5471   
     
    7491    $sospo_appsero["premium"]->insights()->init();// Activate insights
    7592    $sospo_appsero["premium"]->updater();//          Activate automatic updater
     93
     94
     95
    7696   
    7797    // Activate license page and checker
     
    92112 */
    93113function activate_plugin_optimizer() {
    94     require_once plugin_dir_path( __FILE__ ) . 'includes/class-po-activator.php';
    95     SOSPO_Activator::activate();
     114
     115  require_once plugin_dir_path( __FILE__ ) . 'includes/class-po-activator.php';
     116  SOSPO_Activator::activate();
    96117}
    97118register_activation_hook( __FILE__, 'activate_plugin_optimizer' );
     
    101122 */
    102123function deactivate_plugin_optimizer() {
    103     require_once plugin_dir_path( __FILE__ ) . 'includes/class-po-deactivator.php';
    104     SOSPO_Deactivator::deactivate();
     124  require_once plugin_dir_path( __FILE__ ) . 'includes/class-po-deactivator.php';
     125  SOSPO_Deactivator::deactivate();
    105126}
    106127register_deactivation_hook( __FILE__, 'deactivate_plugin_optimizer' );
Note: See TracChangeset for help on using the changeset viewer.