Plugin Directory

Changeset 2946437


Ignore:
Timestamp:
08/02/2023 08:19:15 AM (2 years ago)
Author:
enomoto celtislab
Message:

ver4.0.15 Fixed bug

Location:
plugin-load-filter/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugin-load-filter/trunk/mu-plugins/plf-filter.php

    r2853183 r2946437  
    33  Plugin Name: plugin load filter [plf-filter]
    44  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.13
     5  Version: 4.0.15
    66  Plugin URI: http://celtislab.net/en/wp-plugin-load-filter
    77  Author: enomoto@celtislab
     
    10141014                }
    10151015            }
    1016            
    10171016            $GLOBALS['wp_the_query'] = new WP_Query();
    10181017            $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
     
    10221021            //register_taxonomy(category, post_tag, post_format) support for is_archive
    10231022            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            }           
    10331038        }
    10341039
  • plugin-load-filter/trunk/plugin-load-filter.php

    r2853183 r2946437  
    33  Plugin Name: plugin load filter
    44  Description: Dynamically activate the selected plugins for each page. Response will be faster by filtering plugins.
    5   Version: 4.0.13
     5  Version: 4.0.15
    66  Plugin URI: https://celtislab.net/en/wp-plugin-load-filter
    77  Author: enomoto@celtislab
    88  Author URI: https://celtislab.net/
    99  Requires at least: 5.3
    10   Tested up to: 6.1
     10  Tested up to: 6.3
    1111  Requires PHP: 7.2
    1212  License: GPLv2
     
    1414  Domain Path: /languages
    1515 */
     16
    1617defined( 'ABSPATH' ) || exit;
    1718
  • plugin-load-filter/trunk/readme.txt

    r2853183 r2946437  
    33Tags: plugin, dynamic deactivate, disable plugins, filter, performance, language, locale
    44Requires at least: 5.3
    5 Tested up to: 6.1
     5Tested up to: 6.3
    66Requires PHP: 7.2
    7 Stable tag: 4.0.13
     7Stable tag: 4.0.15
    88Donate link: https://celtislab.net/en/wp-plugin-load-filter-addon/
    99License: GPLv2
     
    8282== Changelog ==
    8383
     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
    8490= 4.0.13 =
    8591* 2023-1-23
Note: See TracChangeset for help on using the changeset viewer.