Changeset 2952235
- Timestamp:
- 08/11/2023 12:33:52 PM (12 months ago)
- Location:
- simple-taxonomy-refreshed
- Files:
-
- 30 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-admin.php
r2897279 r2952235 678 678 <?php 679 679 // 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' ) ); 681 681 ?> 682 682 </p> … … 1963 1963 foreach ( SimpleTaxonomyRefreshed_Client::get_taxonomy_default_fields() as $field => $default_value ) { 1964 1964 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. 1966 1966 continue; 1967 1967 } 1968 1968 // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput 1969 1969 $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 ? 1971 1973 if ( in_array( $field, array( 'st_before', 'st_sep', 'st_after' ), true ) ) { 1972 1974 // can contain html. -
simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-client.php
r2897279 r2952235 310 310 // Clean labels. 311 311 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'] ) { 315 315 unset( $taxonomy['labels']['menu_name'] ); 316 316 } … … 630 630 ), 631 631 filemtime( "$dir/$index_js" ), 632 true 632 array( 633 'in_footer' => true, 634 'strategy' => 'defer', 635 ) 633 636 ); 634 637 … … 756 759 'hide_empty' => (bool) $taxonomy['st_adm_h_e'], 757 760 '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_ ), 759 762 'hierarchical' => (bool) $taxonomy['st_adm_hier'], 760 763 'name' => $query_var, -
simple-taxonomy-refreshed/trunk/includes/class-simpletaxonomyrefreshed-widget.php
r2897279 r2952235 451 451 ), 452 452 filemtime( "$dir/$index_js" ), 453 true 453 array( 454 'in_footer' => true, 455 'strategy' => 'defer', 456 ) 454 457 ); 455 458 -
simple-taxonomy-refreshed/trunk/readme.txt
r2897279 r2952235 3 3 Contributors: nwjames, momo360modena 4 4 Tags: tags, taxonomies, custom taxonomies, taxonomy, category, block editor 5 Tested up to: 6. 2.05 Tested up to: 6..0 6 6 Requires PHP: 7.1 7 Stable tag: 3.1. 07 Stable tag: 3.1. 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 58 58 59 59 == Changelog == 60 61 62 63 64 60 65 61 66 * Version 3.1.0 (11/04/2023) -
simple-taxonomy-refreshed/trunk/simple-taxonomy-refreshed.php
r2897279 r2952235 5 5 * Description: WordPress provides simple custom taxonomy, this plugin makes it even simpler, removing the need for you to write <em>any</em> code 6 6 * Converted, Standardised and Extended from Simple Taxonomy by Amaury Balmer 7 * Version: 3.1. 07 * Version: 3.1. 8 8 * Requires at least: 4.8 9 9 * Requires PHP: 7.1
Note: See TracChangeset
for help on using the changeset viewer.