Changeset 2946437
- Timestamp:
- 08/02/2023 08:19:15 AM (2 years ago)
- Location:
- plugin-load-filter/trunk
- Files:
-
- 3 edited
-
mu-plugins/plf-filter.php (modified) (3 diffs)
-
plugin-load-filter.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-load-filter/trunk/mu-plugins/plf-filter.php
r2853183 r2946437 3 3 Plugin Name: plugin load filter [plf-filter] 4 4 Description: Dynamically activated only plugins that you have selected in each page. [Note] plf-filter has been automatically installed / deleted by Activate / Deactivate of "load filter plugin". 5 Version: 4.0.1 35 Version: 4.0.15 6 6 Plugin URI: http://celtislab.net/en/wp-plugin-load-filter 7 7 Author: enomoto@celtislab … … 1014 1014 } 1015 1015 } 1016 1017 1016 $GLOBALS['wp_the_query'] = new WP_Query(); 1018 1017 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; … … 1022 1021 //register_taxonomy(category, post_tag, post_format) support for is_archive 1023 1022 self::force_initial_taxonomies(); 1024 //Post Format, Custom Post Type support 1025 add_action('parse_request', array('Plf_filter', 'parse_request')); 1026 add_filter('doing_it_wrong_trigger_error', array('Plf_filter', 'exclude_trigger_error'), 10, 4 ); 1027 //custom parse request filter (for experimental development) 1028 $custom = apply_filters( 'plf_experimental_custom_parse_request', false ); 1029 if ( false === $custom) { 1030 $GLOBALS['wp']->parse_request(''); 1031 } 1032 $GLOBALS['wp']->query_posts(); 1023 1024 if(!empty($parse_url['path']) && strpos($parse_url['path'], 'admin-ajax.php' ) !== false || strpos($parse_url['path'], '/wp-cron' ) !== false || strpos($parse_url['path'], '/wp-json' ) !== false || (!empty($parse_url['query']) && strpos($parse_url['query'], 'rest_route=' ) !== false )){ 1025 //ver4.0.15 admin-ajax action:send-attachment-to-editor リクエストが query_posts() 呼び出し時にエラーとなるので ajax, rest api, cron では呼び出さず url filter 処理へ 1026 //https://wordpress.org/support/topic/amin-ajax-php-cant-add-images-in-posts/#post-16938082 1027 } else { 1028 //Post Format, Custom Post Type support 1029 add_action('parse_request', array('Plf_filter', 'parse_request')); 1030 add_filter('doing_it_wrong_trigger_error', array('Plf_filter', 'exclude_trigger_error'), 10, 4 ); 1031 //custom parse request filter (for experimental development) 1032 $custom = apply_filters( 'plf_experimental_custom_parse_request', false ); 1033 if ( false === $custom) { 1034 $GLOBALS['wp']->parse_request(''); 1035 } 1036 $GLOBALS['wp']->query_posts(); 1037 } 1033 1038 } 1034 1039 -
plugin-load-filter/trunk/plugin-load-filter.php
r2853183 r2946437 3 3 Plugin Name: plugin load filter 4 4 Description: Dynamically activate the selected plugins for each page. Response will be faster by filtering plugins. 5 Version: 4.0.1 35 Version: 4.0.15 6 6 Plugin URI: https://celtislab.net/en/wp-plugin-load-filter 7 7 Author: enomoto@celtislab 8 8 Author URI: https://celtislab.net/ 9 9 Requires at least: 5.3 10 Tested up to: 6. 110 Tested up to: 6.3 11 11 Requires PHP: 7.2 12 12 License: GPLv2 … … 14 14 Domain Path: /languages 15 15 */ 16 16 17 defined( 'ABSPATH' ) || exit; 17 18 -
plugin-load-filter/trunk/readme.txt
r2853183 r2946437 3 3 Tags: plugin, dynamic deactivate, disable plugins, filter, performance, language, locale 4 4 Requires at least: 5.3 5 Tested up to: 6. 15 Tested up to: 6.3 6 6 Requires PHP: 7.2 7 Stable tag: 4.0.1 37 Stable tag: 4.0.15 8 8 Donate link: https://celtislab.net/en/wp-plugin-load-filter-addon/ 9 9 License: GPLv2 … … 82 82 == Changelog == 83 83 84 = 4.0.15 = 85 * 2023-8-2 86 * Fixed https://wordpress.org/support/topic/amin-ajax-php-cant-add-images-in-posts/#post-16938082 87 * tested WP6.3 RC3 88 89 84 90 = 4.0.13 = 85 91 * 2023-1-23
Note: See TracChangeset
for help on using the changeset viewer.