Changeset 2870344
- Timestamp:
- 02/24/2023 12:18:53 AM (3 years ago)
- Location:
- plugin-optimizer/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/pages/page-overview.php (modified) (1 diff)
-
includes/class-po-mu.php (modified) (1 diff)
-
plugin-optimizer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugin-optimizer/trunk/README.txt
r2869665 r2870344 3 3 Tags: Plugin Optimizer, Speed Up, Optimization, Save Time, Page Speed, Performance 4 4 Requires at least: 5.0 5 Tested up to: 5.76 Stable tag: 1.3. 65 Tested up to: 6.1.1 6 Stable tag: 1.3.7 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 124 124 125 125 == Changelog == 126 = 1.3.6 = August 2022 126 = 1.3.7 = February 2023 127 * Fix: Bug Fixes 128 129 = 1.3.6 = February 2023 127 130 * Change: Remove Prospector features 128 131 -
plugin-optimizer/trunk/admin/pages/page-overview.php
r2869665 r2870344 3 3 if( get_option('just-activated') == 'true' ){ 4 4 delete_option( 'po-just-activated' ); 5 }6 7 $available_count = get_option('po_available_filters');8 9 if(!$available_count){10 11 $endpoints = array();12 $all_plugins = get_plugins();13 $all_plugins = array('plugins'=>array_keys($all_plugins));14 15 16 // the option only exists if have already retrieved filters from server17 if( $po_filter_retrieval = get_option( 'po_admin_menu_list') ){18 $all_plugins = array_merge(array('endpoints' => $po_filter_retrieval['endpoints']), $all_plugins);19 }20 21 $ch = curl_init();22 $json = json_encode($all_plugins);23 24 curl_setopt($ch, CURLOPT_URL, PROSPECTOR_URL.'api/v1/count');25 curl_setopt($ch, CURLOPT_POST, 1);26 curl_setopt($ch, CURLOPT_POSTFIELDS, $json);27 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);28 curl_setopt($ch, CURLOPT_HTTPHEADER, [29 'Content-Type: application/json',30 'Content-Length: ' . strlen($json)31 ]);32 33 $server_output = curl_exec($ch);34 $server_output = json_decode( $server_output, $assoc_array = false );35 update_option('po_available_filters', $server_output->data->count);36 $available_count = $server_output->data->count;37 5 } 38 6 -
plugin-optimizer/trunk/includes/class-po-mu.php
r2713489 r2870344 117 117 118 118 $this->current_url_host = $pathinfo['host']; 119 $this->current_url_path = $pathinfo['path']; 120 parse_str($pathinfo['query'], $this->current_url_params); 119 $this->current_url_path = $pathinfo['path']; 120 if( !empty($pathinfo['query']) ) { 121 parse_str($pathinfo['query'], $this->current_url_params); 122 } 121 123 122 124 $this->set_hooks(); -
plugin-optimizer/trunk/plugin-optimizer.php
r2869665 r2870344 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.3. 67 * Version: 1.3.7 8 8 * Author: Plugin Optimizer 9 9 * Author URI: https://pluginoptimizer.com/about/
Note: See TracChangeset
for help on using the changeset viewer.