Plugin Directory

Changeset 3461388


Ignore:
Timestamp:
02/14/2026 03:01:49 PM (6 weeks ago)
Author:
runthingsdev
Message:

Update to version 1.2.0 from GitHub

Location:
runthings-taxonomy-tags-to-checkboxes
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/assets/css/admin.css

    r3421816 r3461388  
    22 * Admin table styling for Runthings Taxonomy Tags to Checkboxes
    33 */
    4 
    54#taxonomy-table .check-column {
    65  padding: 0;
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/languages/runthings-taxonomy-tags-to-checkboxes.pot

    r3455906 r3461388  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1.1.1\n"
     5"Project-Id-Version: Taxonomy Tags to Checkboxes 1.2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/runthings-taxonomy-tags-to-checkboxes\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    127127
    128128#: lib/admin-options.php:362
    129 msgid "Auto"
     129msgid "Default"
    130130msgstr ""
    131131
     
    142142msgstr ""
    143143
    144 #: lib/replace-tags.php:163
     144#: lib/replace-tags.php:175
    145145msgid "No terms available."
    146146msgstr ""
    147147
    148148#. translators: %s: Taxonomy label
    149 #: lib/replace-tags.php:228
     149#: lib/replace-tags.php:239
    150150#, php-format
    151151msgid "+ Add / Edit %s"
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/lib/admin-options.php

    r3421816 r3461388  
    360360                    <td class="column-height" data-colname="<?php esc_attr_e('Height', 'runthings-taxonomy-tags-to-checkboxes'); ?>">
    361361                        <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>
    363363                            <option value="full" <?php selected($height_type, 'full'); ?>><?php esc_html_e('Full', 'runthings-taxonomy-tags-to-checkboxes'); ?></option>
    364364                            <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  
    1818
    1919        $this->selected_taxonomies = get_option( 'runthings_ttc_selected_taxonomies', [] );
     20        if ( ! is_array( $this->selected_taxonomies ) ) {
     21            $this->selected_taxonomies = [];
     22        }
    2023
    2124        $this->selected_taxonomies = apply_filters( 'runthings_ttc_selected_taxonomies', $this->selected_taxonomies );
     25        if ( ! is_array( $this->selected_taxonomies ) ) {
     26            $this->selected_taxonomies = [];
     27        }
    2228
    2329        // Remove the default Gutenberg taxonomy panel for selected taxonomies
     
    104110    public function remove_default_taxonomy_metabox( $post_type, $post, $taxonomy ) {
    105111        $taxonomy_object = get_taxonomy( $taxonomy );
     112        if ( ! $taxonomy_object ) {
     113            return;
     114        }
    106115        if ( in_array( $post_type, $taxonomy_object->object_type, true ) ) {
    107116            remove_meta_box( 'tagsdiv-' . $taxonomy, $post_type, 'side' );
     
    117126    public function add_taxonomy_metabox( $post_type, $taxonomy ) {
    118127        $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 ) ) {
    120129            return;
    121130        }
     
    146155
    147156        $post_terms = wp_get_post_terms( $post->ID, $taxonomy, [ 'fields' => 'ids' ] );
     157        if ( is_wp_error( $post_terms ) ) {
     158            $post_terms = [];
     159        }
    148160       
    149161        // Get style for the taxonomy container
     
    177189     */
    178190    private function get_taxonomy_container_style($taxonomy) {
    179         $style = '';
    180        
    181191        // Get height settings
    182192        $height_settings = get_option('runthings_ttc_height_settings', []);
    183193        $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
    185198        // 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
    186202        switch ($height_type) {
    187             case 'auto':
    188                 $style .= 'max-height: auto;';
    189                 break;
    190                
    191203            case 'full':
    192204                $style .= 'max-height: none;';
    193205                break;
    194                
     206
    195207            case 'custom':
    196208                if (isset($height_settings[$taxonomy]['value'])) {
    197209                    $custom_height = absint($height_settings[$taxonomy]['value']);
    198210                    $style .= 'max-height: ' . $custom_height . 'px;';
    199                 } else {
    200                     $style .= 'max-height: auto;';
    201211                }
    202212                break;
    203                
     213
     214            case 'auto':
    204215            default:
    205                 $style .= 'max-height: auto;';
     216                $style .= 'max-height: 200px;';
    206217                break;
    207218        }
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/readme.md

    r3455906 r3461388  
    5656
    5757## 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
    5865
    5966### v1.1.1 - 7th February 2026
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/readme.txt

    r3455906 r3461388  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 1.1.1
     6Stable tag: 1.2.0
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5252== Changelog ==
    5353
     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
    5460= 1.1.1 - 7th February 2026 =
    5561* Fix - Prevent duplicate taxonomy panels showing in the block editor when using built-in taxonomies like Tags (thanks @swinggraphics)
     
    8288== Upgrade Notice ==
    8389
     90= 1.2.0 =
     91Fixes fatal error when a configured taxonomy is deleted, improves panel height options.
     92
    8493= 1.1.1 =
    8594Fix duplicate taxonomy panels in the block editor for built-in taxonomies.
     
    8796= 1.1.0 =
    8897Bug 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.
    9298
    9399== License ==
  • runthings-taxonomy-tags-to-checkboxes/tags/1.2.0/runthings-taxonomy-tags-to-checkboxes.php

    r3455906 r3461388  
    55 * Plugin URI: https://runthings.dev/wordpress-plugins/taxonomy-tags-to-checkboxes/
    66 * Description: Convert taxonomy tags to checkboxes in the WordPress admin.
    7  * Version: 1.1.1
     7 * Version: 1.2.0
    88 * Author: runthingsdev
    99 * Author URI: https://runthings.dev/
     
    3838}
    3939
    40 define( 'RUNTHINGS_TTC_VERSION', '1.1.1' );
     40define( 'RUNTHINGS_TTC_VERSION', '1.2.0' );
    4141
    4242define( 'RUNTHINGS_TTC_BASENAME', plugin_basename( __FILE__ ) );
     
    9393 */
    9494function uninstall_runthings_ttc() {
    95     // Check if the user has requested to delete all data
    96     if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || WP_UNINSTALL_PLUGIN !== true ) {
    97         return;
    98     }
    99 
    10095    // Delete options
    10196    delete_option( 'runthings_ttc_selected_taxonomies' );
  • runthings-taxonomy-tags-to-checkboxes/trunk/assets/css/admin.css

    r3421816 r3461388  
    22 * Admin table styling for Runthings Taxonomy Tags to Checkboxes
    33 */
    4 
    54#taxonomy-table .check-column {
    65  padding: 0;
  • runthings-taxonomy-tags-to-checkboxes/trunk/languages/runthings-taxonomy-tags-to-checkboxes.pot

    r3455906 r3461388  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Taxonomy Tags to Checkboxes 1.1.1\n"
     5"Project-Id-Version: Taxonomy Tags to Checkboxes 1.2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/runthings-taxonomy-tags-to-checkboxes\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    127127
    128128#: lib/admin-options.php:362
    129 msgid "Auto"
     129msgid "Default"
    130130msgstr ""
    131131
     
    142142msgstr ""
    143143
    144 #: lib/replace-tags.php:163
     144#: lib/replace-tags.php:175
    145145msgid "No terms available."
    146146msgstr ""
    147147
    148148#. translators: %s: Taxonomy label
    149 #: lib/replace-tags.php:228
     149#: lib/replace-tags.php:239
    150150#, php-format
    151151msgid "+ Add / Edit %s"
  • runthings-taxonomy-tags-to-checkboxes/trunk/lib/admin-options.php

    r3421816 r3461388  
    360360                    <td class="column-height" data-colname="<?php esc_attr_e('Height', 'runthings-taxonomy-tags-to-checkboxes'); ?>">
    361361                        <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>
    363363                            <option value="full" <?php selected($height_type, 'full'); ?>><?php esc_html_e('Full', 'runthings-taxonomy-tags-to-checkboxes'); ?></option>
    364364                            <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  
    1818
    1919        $this->selected_taxonomies = get_option( 'runthings_ttc_selected_taxonomies', [] );
     20        if ( ! is_array( $this->selected_taxonomies ) ) {
     21            $this->selected_taxonomies = [];
     22        }
    2023
    2124        $this->selected_taxonomies = apply_filters( 'runthings_ttc_selected_taxonomies', $this->selected_taxonomies );
     25        if ( ! is_array( $this->selected_taxonomies ) ) {
     26            $this->selected_taxonomies = [];
     27        }
    2228
    2329        // Remove the default Gutenberg taxonomy panel for selected taxonomies
     
    104110    public function remove_default_taxonomy_metabox( $post_type, $post, $taxonomy ) {
    105111        $taxonomy_object = get_taxonomy( $taxonomy );
     112        if ( ! $taxonomy_object ) {
     113            return;
     114        }
    106115        if ( in_array( $post_type, $taxonomy_object->object_type, true ) ) {
    107116            remove_meta_box( 'tagsdiv-' . $taxonomy, $post_type, 'side' );
     
    117126    public function add_taxonomy_metabox( $post_type, $taxonomy ) {
    118127        $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 ) ) {
    120129            return;
    121130        }
     
    146155
    147156        $post_terms = wp_get_post_terms( $post->ID, $taxonomy, [ 'fields' => 'ids' ] );
     157        if ( is_wp_error( $post_terms ) ) {
     158            $post_terms = [];
     159        }
    148160       
    149161        // Get style for the taxonomy container
     
    177189     */
    178190    private function get_taxonomy_container_style($taxonomy) {
    179         $style = '';
    180        
    181191        // Get height settings
    182192        $height_settings = get_option('runthings_ttc_height_settings', []);
    183193        $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
    185198        // 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
    186202        switch ($height_type) {
    187             case 'auto':
    188                 $style .= 'max-height: auto;';
    189                 break;
    190                
    191203            case 'full':
    192204                $style .= 'max-height: none;';
    193205                break;
    194                
     206
    195207            case 'custom':
    196208                if (isset($height_settings[$taxonomy]['value'])) {
    197209                    $custom_height = absint($height_settings[$taxonomy]['value']);
    198210                    $style .= 'max-height: ' . $custom_height . 'px;';
    199                 } else {
    200                     $style .= 'max-height: auto;';
    201211                }
    202212                break;
    203                
     213
     214            case 'auto':
    204215            default:
    205                 $style .= 'max-height: auto;';
     216                $style .= 'max-height: 200px;';
    206217                break;
    207218        }
  • runthings-taxonomy-tags-to-checkboxes/trunk/readme.md

    r3455906 r3461388  
    5656
    5757## 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
    5865
    5966### v1.1.1 - 7th February 2026
  • runthings-taxonomy-tags-to-checkboxes/trunk/readme.txt

    r3455906 r3461388  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 1.1.1
     6Stable tag: 1.2.0
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5252== Changelog ==
    5353
     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
    5460= 1.1.1 - 7th February 2026 =
    5561* Fix - Prevent duplicate taxonomy panels showing in the block editor when using built-in taxonomies like Tags (thanks @swinggraphics)
     
    8288== Upgrade Notice ==
    8389
     90= 1.2.0 =
     91Fixes fatal error when a configured taxonomy is deleted, improves panel height options.
     92
    8493= 1.1.1 =
    8594Fix duplicate taxonomy panels in the block editor for built-in taxonomies.
     
    8796= 1.1.0 =
    8897Bug 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.
    9298
    9399== License ==
  • runthings-taxonomy-tags-to-checkboxes/trunk/runthings-taxonomy-tags-to-checkboxes.php

    r3455906 r3461388  
    55 * Plugin URI: https://runthings.dev/wordpress-plugins/taxonomy-tags-to-checkboxes/
    66 * Description: Convert taxonomy tags to checkboxes in the WordPress admin.
    7  * Version: 1.1.1
     7 * Version: 1.2.0
    88 * Author: runthingsdev
    99 * Author URI: https://runthings.dev/
     
    3838}
    3939
    40 define( 'RUNTHINGS_TTC_VERSION', '1.1.1' );
     40define( 'RUNTHINGS_TTC_VERSION', '1.2.0' );
    4141
    4242define( 'RUNTHINGS_TTC_BASENAME', plugin_basename( __FILE__ ) );
     
    9393 */
    9494function uninstall_runthings_ttc() {
    95     // Check if the user has requested to delete all data
    96     if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || WP_UNINSTALL_PLUGIN !== true ) {
    97         return;
    98     }
    99 
    10095    // Delete options
    10196    delete_option( 'runthings_ttc_selected_taxonomies' );
Note: See TracChangeset for help on using the changeset viewer.