Changeset 3461388
- Timestamp:
- 02/14/2026 03:01:49 PM (6 weeks ago)
- Location:
- runthings-taxonomy-tags-to-checkboxes
- Files:
-
- 14 edited
- 1 copied
-
tags/1.2.0 (copied) (copied from runthings-taxonomy-tags-to-checkboxes/trunk)
-
tags/1.2.0/assets/css/admin.css (modified) (1 diff)
-
tags/1.2.0/languages/runthings-taxonomy-tags-to-checkboxes.pot (modified) (4 diffs)
-
tags/1.2.0/lib/admin-options.php (modified) (1 diff)
-
tags/1.2.0/lib/replace-tags.php (modified) (5 diffs)
-
tags/1.2.0/readme.md (modified) (1 diff)
-
tags/1.2.0/readme.txt (modified) (4 diffs)
-
tags/1.2.0/runthings-taxonomy-tags-to-checkboxes.php (modified) (3 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/languages/runthings-taxonomy-tags-to-checkboxes.pot (modified) (4 diffs)
-
trunk/lib/admin-options.php (modified) (1 diff)
-
trunk/lib/replace-tags.php (modified) (5 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/runthings-taxonomy-tags-to-checkboxes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/assets/css/admin.css
r3421816 r3461388 2 2 * Admin table styling for Runthings Taxonomy Tags to Checkboxes 3 3 */ 4 5 4 #taxonomy-table .check-column { 6 5 padding: 0; -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/languages/runthings-taxonomy-tags-to-checkboxes.pot
r3455906 r3461388 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1. 1.1\n"5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1.2.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/runthings-taxonomy-tags-to-checkboxes\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-02- 07T11:51:06+00:00\n"12 "POT-Creation-Date: 2026-02-14T15:01:15+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 127 127 128 128 #: lib/admin-options.php:362 129 msgid " Auto"129 msgid "Default" 130 130 msgstr "" 131 131 … … 142 142 msgstr "" 143 143 144 #: lib/replace-tags.php:1 63144 #: lib/replace-tags.php:175 145 145 msgid "No terms available." 146 146 msgstr "" 147 147 148 148 #. translators: %s: Taxonomy label 149 #: lib/replace-tags.php:2 28149 #: lib/replace-tags.php:239 150 150 #, php-format 151 151 msgid "+ Add / Edit %s" -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/lib/admin-options.php
r3421816 r3461388 360 360 <td class="column-height" data-colname="<?php esc_attr_e('Height', 'runthings-taxonomy-tags-to-checkboxes'); ?>"> 361 361 <select name="runthings_ttc_height_settings[<?php echo esc_attr($taxonomy->name); ?>][type]" class="height-type-select" <?php echo esc_attr($height_disabled); ?>> 362 <option value="auto" <?php selected($height_type, 'auto'); ?>><?php esc_html_e(' Auto', 'runthings-taxonomy-tags-to-checkboxes'); ?></option>362 <option value="auto" <?php selected($height_type, 'auto'); ?>><?php esc_html_e('Default', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> 363 363 <option value="full" <?php selected($height_type, 'full'); ?>><?php esc_html_e('Full', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> 364 364 <option value="custom" <?php selected($height_type, 'custom'); ?>><?php esc_html_e('Custom', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/lib/replace-tags.php
r3455906 r3461388 18 18 19 19 $this->selected_taxonomies = get_option( 'runthings_ttc_selected_taxonomies', [] ); 20 if ( ! is_array( $this->selected_taxonomies ) ) { 21 $this->selected_taxonomies = []; 22 } 20 23 21 24 $this->selected_taxonomies = apply_filters( 'runthings_ttc_selected_taxonomies', $this->selected_taxonomies ); 25 if ( ! is_array( $this->selected_taxonomies ) ) { 26 $this->selected_taxonomies = []; 27 } 22 28 23 29 // Remove the default Gutenberg taxonomy panel for selected taxonomies … … 104 110 public function remove_default_taxonomy_metabox( $post_type, $post, $taxonomy ) { 105 111 $taxonomy_object = get_taxonomy( $taxonomy ); 112 if ( ! $taxonomy_object ) { 113 return; 114 } 106 115 if ( in_array( $post_type, $taxonomy_object->object_type, true ) ) { 107 116 remove_meta_box( 'tagsdiv-' . $taxonomy, $post_type, 'side' ); … … 117 126 public function add_taxonomy_metabox( $post_type, $taxonomy ) { 118 127 $taxonomy_object = get_taxonomy( $taxonomy ); 119 if ( ! in_array( $post_type, $taxonomy_object->object_type, true ) ) {128 if ( ! $taxonomy_object || ! in_array( $post_type, $taxonomy_object->object_type, true ) ) { 120 129 return; 121 130 } … … 146 155 147 156 $post_terms = wp_get_post_terms( $post->ID, $taxonomy, [ 'fields' => 'ids' ] ); 157 if ( is_wp_error( $post_terms ) ) { 158 $post_terms = []; 159 } 148 160 149 161 // Get style for the taxonomy container … … 177 189 */ 178 190 private function get_taxonomy_container_style($taxonomy) { 179 $style = '';180 181 191 // Get height settings 182 192 $height_settings = get_option('runthings_ttc_height_settings', []); 183 193 $height_type = isset($height_settings[$taxonomy]['type']) ? $height_settings[$taxonomy]['type'] : ''; 184 194 195 // All modes get a min-height to avoid looking odd with few items 196 $style = 'min-height: 42px;'; 197 185 198 // Apply height setting based on configuration 199 // auto/default: 200px max-height matching WP core category panel behavior 200 // full: explicitly remove any max-height constraint 201 // custom: set a specific max-height in pixels 186 202 switch ($height_type) { 187 case 'auto':188 $style .= 'max-height: auto;';189 break;190 191 203 case 'full': 192 204 $style .= 'max-height: none;'; 193 205 break; 194 206 195 207 case 'custom': 196 208 if (isset($height_settings[$taxonomy]['value'])) { 197 209 $custom_height = absint($height_settings[$taxonomy]['value']); 198 210 $style .= 'max-height: ' . $custom_height . 'px;'; 199 } else {200 $style .= 'max-height: auto;';201 211 } 202 212 break; 203 213 214 case 'auto': 204 215 default: 205 $style .= 'max-height: auto;';216 $style .= 'max-height: 200px;'; 206 217 break; 207 218 } -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/readme.md
r3455906 r3461388 56 56 57 57 ## Changelog 58 59 ### v1.2.0 - 14th February 2026 60 61 - Improvement - Rename "Auto" height option to "Default" for clarity 62 - Improvement - Consistent minimum height applied to all taxonomy panels 63 - Fix - Fatal error when a taxonomy has been deleted after being configured in the plugin (thanks @mikenucleodigital) 64 - Fix - Plugin cleanup on uninstall now works correctly 58 65 59 66 ### v1.1.1 - 7th February 2026 -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/readme.txt
r3455906 r3461388 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 1. 1.16 Stable tag: 1.2.0 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 52 52 == Changelog == 53 53 54 = 1.2.0 - 14th February 2026 = 55 * Improvement - Rename "Auto" height option to "Default" for clarity 56 * Improvement - Consistent minimum height applied to all taxonomy panels 57 * Fix - Fatal error when a taxonomy has been deleted after being configured in the plugin (thanks @mikenucleodigital) 58 * Fix - Plugin cleanup on uninstall now works correctly 59 54 60 = 1.1.1 - 7th February 2026 = 55 61 * Fix - Prevent duplicate taxonomy panels showing in the block editor when using built-in taxonomies like Tags (thanks @swinggraphics) … … 82 88 == Upgrade Notice == 83 89 90 = 1.2.0 = 91 Fixes fatal error when a configured taxonomy is deleted, improves panel height options. 92 84 93 = 1.1.1 = 85 94 Fix duplicate taxonomy panels in the block editor for built-in taxonomies. … … 87 96 = 1.1.0 = 88 97 Bug fix for admin options table display on mobile devices. 89 90 = 1.0.1 =91 Bump WordPress tested up to field to support 6.8 branch.92 98 93 99 == License == -
runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/runthings-taxonomy-tags-to-checkboxes.php
r3455906 r3461388 5 5 * Plugin URI: https://runthings.dev/wordpress-plugins/taxonomy-tags-to-checkboxes/ 6 6 * Description: Convert taxonomy tags to checkboxes in the WordPress admin. 7 * Version: 1. 1.17 * Version: 1.2.0 8 8 * Author: runthingsdev 9 9 * Author URI: https://runthings.dev/ … … 38 38 } 39 39 40 define( 'RUNTHINGS_TTC_VERSION', '1. 1.1' );40 define( 'RUNTHINGS_TTC_VERSION', '1.2.0' ); 41 41 42 42 define( 'RUNTHINGS_TTC_BASENAME', plugin_basename( __FILE__ ) ); … … 93 93 */ 94 94 function uninstall_runthings_ttc() { 95 // Check if the user has requested to delete all data96 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || WP_UNINSTALL_PLUGIN !== true ) {97 return;98 }99 100 95 // Delete options 101 96 delete_option( 'runthings_ttc_selected_taxonomies' ); -
runthings-taxonomy-tags-to-checkboxes/trunk/assets/css/admin.css
r3421816 r3461388 2 2 * Admin table styling for Runthings Taxonomy Tags to Checkboxes 3 3 */ 4 5 4 #taxonomy-table .check-column { 6 5 padding: 0; -
runthings-taxonomy-tags-to-checkboxes/trunk/languages/runthings-taxonomy-tags-to-checkboxes.pot
r3455906 r3461388 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1. 1.1\n"5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1.2.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/runthings-taxonomy-tags-to-checkboxes\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-02- 07T11:51:06+00:00\n"12 "POT-Creation-Date: 2026-02-14T15:01:15+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 127 127 128 128 #: lib/admin-options.php:362 129 msgid " Auto"129 msgid "Default" 130 130 msgstr "" 131 131 … … 142 142 msgstr "" 143 143 144 #: lib/replace-tags.php:1 63144 #: lib/replace-tags.php:175 145 145 msgid "No terms available." 146 146 msgstr "" 147 147 148 148 #. translators: %s: Taxonomy label 149 #: lib/replace-tags.php:2 28149 #: lib/replace-tags.php:239 150 150 #, php-format 151 151 msgid "+ Add / Edit %s" -
runthings-taxonomy-tags-to-checkboxes/trunk/lib/admin-options.php
r3421816 r3461388 360 360 <td class="column-height" data-colname="<?php esc_attr_e('Height', 'runthings-taxonomy-tags-to-checkboxes'); ?>"> 361 361 <select name="runthings_ttc_height_settings[<?php echo esc_attr($taxonomy->name); ?>][type]" class="height-type-select" <?php echo esc_attr($height_disabled); ?>> 362 <option value="auto" <?php selected($height_type, 'auto'); ?>><?php esc_html_e(' Auto', 'runthings-taxonomy-tags-to-checkboxes'); ?></option>362 <option value="auto" <?php selected($height_type, 'auto'); ?>><?php esc_html_e('Default', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> 363 363 <option value="full" <?php selected($height_type, 'full'); ?>><?php esc_html_e('Full', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> 364 364 <option value="custom" <?php selected($height_type, 'custom'); ?>><?php esc_html_e('Custom', 'runthings-taxonomy-tags-to-checkboxes'); ?></option> -
runthings-taxonomy-tags-to-checkboxes/trunk/lib/replace-tags.php
r3455906 r3461388 18 18 19 19 $this->selected_taxonomies = get_option( 'runthings_ttc_selected_taxonomies', [] ); 20 if ( ! is_array( $this->selected_taxonomies ) ) { 21 $this->selected_taxonomies = []; 22 } 20 23 21 24 $this->selected_taxonomies = apply_filters( 'runthings_ttc_selected_taxonomies', $this->selected_taxonomies ); 25 if ( ! is_array( $this->selected_taxonomies ) ) { 26 $this->selected_taxonomies = []; 27 } 22 28 23 29 // Remove the default Gutenberg taxonomy panel for selected taxonomies … … 104 110 public function remove_default_taxonomy_metabox( $post_type, $post, $taxonomy ) { 105 111 $taxonomy_object = get_taxonomy( $taxonomy ); 112 if ( ! $taxonomy_object ) { 113 return; 114 } 106 115 if ( in_array( $post_type, $taxonomy_object->object_type, true ) ) { 107 116 remove_meta_box( 'tagsdiv-' . $taxonomy, $post_type, 'side' ); … … 117 126 public function add_taxonomy_metabox( $post_type, $taxonomy ) { 118 127 $taxonomy_object = get_taxonomy( $taxonomy ); 119 if ( ! in_array( $post_type, $taxonomy_object->object_type, true ) ) {128 if ( ! $taxonomy_object || ! in_array( $post_type, $taxonomy_object->object_type, true ) ) { 120 129 return; 121 130 } … … 146 155 147 156 $post_terms = wp_get_post_terms( $post->ID, $taxonomy, [ 'fields' => 'ids' ] ); 157 if ( is_wp_error( $post_terms ) ) { 158 $post_terms = []; 159 } 148 160 149 161 // Get style for the taxonomy container … … 177 189 */ 178 190 private function get_taxonomy_container_style($taxonomy) { 179 $style = '';180 181 191 // Get height settings 182 192 $height_settings = get_option('runthings_ttc_height_settings', []); 183 193 $height_type = isset($height_settings[$taxonomy]['type']) ? $height_settings[$taxonomy]['type'] : ''; 184 194 195 // All modes get a min-height to avoid looking odd with few items 196 $style = 'min-height: 42px;'; 197 185 198 // Apply height setting based on configuration 199 // auto/default: 200px max-height matching WP core category panel behavior 200 // full: explicitly remove any max-height constraint 201 // custom: set a specific max-height in pixels 186 202 switch ($height_type) { 187 case 'auto':188 $style .= 'max-height: auto;';189 break;190 191 203 case 'full': 192 204 $style .= 'max-height: none;'; 193 205 break; 194 206 195 207 case 'custom': 196 208 if (isset($height_settings[$taxonomy]['value'])) { 197 209 $custom_height = absint($height_settings[$taxonomy]['value']); 198 210 $style .= 'max-height: ' . $custom_height . 'px;'; 199 } else {200 $style .= 'max-height: auto;';201 211 } 202 212 break; 203 213 214 case 'auto': 204 215 default: 205 $style .= 'max-height: auto;';216 $style .= 'max-height: 200px;'; 206 217 break; 207 218 } -
runthings-taxonomy-tags-to-checkboxes/trunk/readme.md
r3455906 r3461388 56 56 57 57 ## Changelog 58 59 ### v1.2.0 - 14th February 2026 60 61 - Improvement - Rename "Auto" height option to "Default" for clarity 62 - Improvement - Consistent minimum height applied to all taxonomy panels 63 - Fix - Fatal error when a taxonomy has been deleted after being configured in the plugin (thanks @mikenucleodigital) 64 - Fix - Plugin cleanup on uninstall now works correctly 58 65 59 66 ### v1.1.1 - 7th February 2026 -
runthings-taxonomy-tags-to-checkboxes/trunk/readme.txt
r3455906 r3461388 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 1. 1.16 Stable tag: 1.2.0 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 52 52 == Changelog == 53 53 54 = 1.2.0 - 14th February 2026 = 55 * Improvement - Rename "Auto" height option to "Default" for clarity 56 * Improvement - Consistent minimum height applied to all taxonomy panels 57 * Fix - Fatal error when a taxonomy has been deleted after being configured in the plugin (thanks @mikenucleodigital) 58 * Fix - Plugin cleanup on uninstall now works correctly 59 54 60 = 1.1.1 - 7th February 2026 = 55 61 * Fix - Prevent duplicate taxonomy panels showing in the block editor when using built-in taxonomies like Tags (thanks @swinggraphics) … … 82 88 == Upgrade Notice == 83 89 90 = 1.2.0 = 91 Fixes fatal error when a configured taxonomy is deleted, improves panel height options. 92 84 93 = 1.1.1 = 85 94 Fix duplicate taxonomy panels in the block editor for built-in taxonomies. … … 87 96 = 1.1.0 = 88 97 Bug fix for admin options table display on mobile devices. 89 90 = 1.0.1 =91 Bump WordPress tested up to field to support 6.8 branch.92 98 93 99 == License == -
runthings-taxonomy-tags-to-checkboxes/trunk/runthings-taxonomy-tags-to-checkboxes.php
r3455906 r3461388 5 5 * Plugin URI: https://runthings.dev/wordpress-plugins/taxonomy-tags-to-checkboxes/ 6 6 * Description: Convert taxonomy tags to checkboxes in the WordPress admin. 7 * Version: 1. 1.17 * Version: 1.2.0 8 8 * Author: runthingsdev 9 9 * Author URI: https://runthings.dev/ … … 38 38 } 39 39 40 define( 'RUNTHINGS_TTC_VERSION', '1. 1.1' );40 define( 'RUNTHINGS_TTC_VERSION', '1.2.0' ); 41 41 42 42 define( 'RUNTHINGS_TTC_BASENAME', plugin_basename( __FILE__ ) ); … … 93 93 */ 94 94 function uninstall_runthings_ttc() { 95 // Check if the user has requested to delete all data96 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || WP_UNINSTALL_PLUGIN !== true ) {97 return;98 }99 100 95 // Delete options 101 96 delete_option( 'runthings_ttc_selected_taxonomies' );
Note: See TracChangeset
for help on using the changeset viewer.