Changeset 2711757
- Timestamp:
- 04/19/2022 09:11:10 PM (4 years ago)
- File:
-
- 1 edited
-
plugin-optimizer/trunk/includes/class-po-mu.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-optimizer/trunk/includes/class-po-mu.php
r2704634 r2711757 250 250 } 251 251 252 253 252 //return $this->filtered_active_plugins; 254 253 return $active_plugins; … … 438 437 $editing_post_type = $this->is_editing_post_type( $this->current_wp_relative_url ); 439 438 439 440 440 // --- are we on any of the PO pages? yes, second boolean in the condition 441 441 if( … … 472 472 } 473 473 474 if( $filter->filter_type !== '_endpoint' ){ 475 476 $slug = str_replace('/', '', $this->current_wp_relative_url); 477 global $wpdb; 478 $post_type = $wpdb->get_var("SELECT `post_type` FROM `{$wpdb->prefix}posts` WHERE `post_name` = '{$slug}'"); 479 480 if( $filter->filter_type == $post_type ){ 481 482 $this->use_filter($filter); 483 484 continue; 485 } 486 } 487 474 488 // Filter by URL 475 489 $endpoints = unserialize($filter->endpoints);
Note: See TracChangeset
for help on using the changeset viewer.