Changeset 2570595
- Timestamp:
- 07/23/2021 06:29:29 AM (4 years ago)
- Location:
- wp-term-manager
- Files:
-
- 474 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-term-manager/trunk/includes/Settings.php
r2570566 r2570595 140 140 */ 141 141 public function exclude_terms( $exclusions, $args ) { 142 142 143 143 if ( ! is_admin() ) { 144 144 return; … … 147 147 $screen = get_current_screen(); 148 148 149 if ( 'tools_page_wptm_settings' == $screen->id ) {149 if ( 'tools_page_wptm_settings' === $screen->id ) { 150 150 return; 151 151 } … … 153 153 $settings = get_option( 'wptm_settings' ); 154 154 $terms = $settings['exclude']; 155 155 156 if ( is_array( $terms ) ) { 156 157 $terms = implode( ',', array_map( 'intval', $terms ) ); 157 158 } 158 159 159 $exclusions = 't.term_id NOT IN (' . $terms . ')'; 160 if ( ! empty( $terms ) ) { 161 $exclusions = 't.term_id NOT IN (' . $terms . ')'; 162 } 160 163 161 164 return $exclusions; … … 166 169 $option = $settings['clean_db']; 167 170 168 if ( 'on' != $option ) {171 if ( 'on' !== $option ) { 169 172 return; 170 173 } -
wp-term-manager/trunk/readme.txt
r2570566 r2570595 6 6 Tested up to: 5.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 == Changelog == 33 = 1.0.2 - 07-22-2021 = 34 * Fixed issue where all terms were being hidden if none were selected. 33 35 = 1.0.1 - 07-22-2021 = 34 36 * Code cleanup. -
wp-term-manager/trunk/wp-term-manager.php
r2570567 r2570595 5 5 * Plugin URL: https://scree.it/wp-term-manager 6 6 * Description: Clean up terms for easier administration. 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Author: Landon Otis 9 9 * Author URI: https://scree.it
Note: See TracChangeset
for help on using the changeset viewer.