Changeset 2583000
- Timestamp:
- 08/14/2021 11:57:56 PM (5 years ago)
- Location:
- plugin-optimizer/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
includes/class-po-dictionary.php (modified) (1 diff)
-
plugin-optimizer.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-optimizer/trunk/README.txt
r2582998 r2583000 4 4 Requires at least: 5.0 5 5 Tested up to: 5.7 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 116 116 == Changelog == 117 117 118 = 1.1.1 = August 2021 119 * Bug Fix: Fix display of previous created filters 120 * Bug Fix: Fix the Available filters count 121 118 122 = 1.1.0 = August 2021 119 123 * Filter List: Updated filter sorting -
plugin-optimizer/trunk/includes/class-po-dictionary.php
r2582998 r2583000 89 89 function get_prospector_count(){ 90 90 91 // The endpoints 91 92 $menu_endpoints = get_option( "po_admin_menu_list" ); 92 93 94 // The plugins 93 95 $plugins = array_keys(get_plugins()); 94 96 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 ); 109 109 110 110 return is_wp_error( $count ) ? "unknown" : $count; -
plugin-optimizer/trunk/plugin-optimizer.php
r2582998 r2583000 5 5 * Plugin URI: https://pluginoptimizer.com 6 6 * Description: The Most Powerful Performance Plugin for WordPress is now available for FREE. 7 * Version: 1.1. 07 * Version: 1.1.1 8 8 * Author: Plugin Optimizer 9 9 * Author URI: https://pluginoptimizer.com/about/ … … 16 16 // If this file is called directly, abort. 17 17 if ( ! defined( 'WPINC' ) ) { 18 die;18 die; 19 19 } 20 20 … … 51 51 function appsero_init_tracker_plugin_optimizer() { 52 52 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 53 70 global $sospo_appsero; 54 71 … … 74 91 $sospo_appsero["premium"]->insights()->init();// Activate insights 75 92 $sospo_appsero["premium"]->updater();// Activate automatic updater 93 94 95 76 96 77 97 // Activate license page and checker … … 92 112 */ 93 113 function 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(); 96 117 } 97 118 register_activation_hook( __FILE__, 'activate_plugin_optimizer' ); … … 101 122 */ 102 123 function 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(); 105 126 } 106 127 register_deactivation_hook( __FILE__, 'deactivate_plugin_optimizer' );
Note: See TracChangeset
for help on using the changeset viewer.