Plugin Directory

Changeset 2952235

Timestamp:
08/11/2023 12:33:52 PM (12 months ago)
Author:
nwjames
Message:

Version 3.1.1
Compatible 6.3
PHP 8.1 fixes

Location:
simple-taxonomy-refreshed
Files:
30 added
5 edited

Legend:

Unmodified
Added
Removed
  • simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-admin.php

    r2897279 r2952235  
    678678                <?php
    679679                // phpcs:ignore  WordPress.Security.EscapeOutput
    680                 wp_kses( _e( '<strong>Warning :</strong> Flush & Delete a taxonomy will also delete all terms of the taxonomy and all object relations.', 'simple-taxonomy-refreshed' ), array( 'strong' ) );
     680                ( '<strong>Warning :</strong> Flush & Delete a taxonomy will also delete all terms of the taxonomy and all object relations.', 'simple-taxonomy-refreshed' ), array( 'strong' ) );
    681681                ?>
    682682                </p>
     
    19631963            foreach ( SimpleTaxonomyRefreshed_Client::get_taxonomy_default_fields() as $field => $default_value ) {
    19641964                if ( 'merge-external' === $action && ! array_key_exists( $field, $_POST ) ) {
    1965                     // Don't create non-xeisting fields for external taxonomies.
     1965                    // Don't create non-isting fields for external taxonomies.
    19661966                    continue;
    19671967                }
    19681968                // phpcs:ignore  WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput
    19691969                $post_field = ( array_key_exists( $field, $_POST ) ? wp_unslash( $_POST[ $field ] ) : '' );
    1970                 if ( isset( $post_field ) && is_string( $post_field ) ) {// String ?
     1970                if ( isset( $post_field ) && empty( $post_field ) ) {
     1971                    $taxonomy[ $field ] = '';
     1972                } elseif ( isset( $post_field ) && is_string( $post_field ) ) {// String ?
    19711973                    if ( in_array( $field, array( 'st_before', 'st_sep', 'st_after' ), true ) ) {
    19721974                        // can contain html.
  • simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-client.php

    r2897279 r2952235  
    310310        // Clean labels.
    311311        foreach ( $taxonomy['labels'] as $k => $v ) {
    312             $taxonomy['labels'][ $k ] = stripslashes( $v );
    313         }
    314         if ( '' === $taxonomy['labels']['menu_name'] ) {
     312            $taxonomy['labels'][ $k ] = );
     313        }
     314        if ( '' === $taxonomy['labels']['menu_name'] ) {
    315315            unset( $taxonomy['labels']['menu_name'] );
    316316        }
     
    630630            ),
    631631            filemtime( "$dir/$index_js" ),
    632             true
     632            array(
     633                'in_footer' => true,
     634                'strategy'  => 'defer',
     635            )
    633636        );
    634637
     
    756759            'hide_empty'      => (bool) $taxonomy['st_adm_h_e'],
    757760            'hide_if_empty'   => (bool) $taxonomy['st_adm_h_i_e'],
    758             'selected'        => filter_input( INPUT_GET, $query_var, FILTER_SANITIZE_STRING ),
     761            'selected'        => filter_input( INPUT_GET, $query_var, FILTER_SANITIZE_ ),
    759762            'hierarchical'    => (bool) $taxonomy['st_adm_hier'],
    760763            'name'            => $query_var,
  • simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-widget.php

    r2897279 r2952235  
    451451            ),
    452452            filemtime( "$dir/$index_js" ),
    453             true
     453            array(
     454                'in_footer' => true,
     455                'strategy'  => 'defer',
     456            )
    454457        );
    455458
  • simple-taxonomy-refreshed/trunk/readme.txt

    r2897279 r2952235  
    33Contributors: nwjames, momo360modena
    44Tags: tags, taxonomies, custom taxonomies, taxonomy, category, block editor
    5 Tested up to: 6.2.0
     5Tested up to: 6..0
    66Requires PHP: 7.1
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5858
    5959== Changelog ==
     60
     61
     62
     63
     64
    6065
    6166* Version 3.1.0  (11/04/2023)
  • simple-taxonomy-refreshed/trunk/simple-taxonomy-refreshed.php

    r2897279 r2952235  
    55 * Description:       WordPress provides simple custom taxonomy, this plugin makes it even simpler, removing the need for you to write <em>any</em> code
    66 *                    Converted, Standardised and Extended from Simple Taxonomy by Amaury Balmer
    7  * Version:           3.1.0
     7 * Version:           3.1.
    88 * Requires at least: 4.8
    99 * Requires PHP:      7.1
Note: See TracChangeset for help on using the changeset viewer.