Plugin Directory

Changeset 2553487


Ignore:
Timestamp:
06/24/2021 04:56:57 PM (5 years ago)
Author:
graffino
Message:

fix: better sanitize taxonomy name as suggested by @ldeejay

Location:
custom-post-type-maker
Files:
3 deleted
4 edited
8 copied

Legend:

Unmodified
Added
Removed
  • custom-post-type-maker/tags/1.1.15/CHANGELOG.md

    r2531176 r2553487  
    11# Changelog
     2
     3## 1.1.15
     4
     5- Better sanitize taxonomy name as suggested by @ldeejay
    26
    37## 1.1.14
  • custom-post-type-maker/tags/1.1.15/README.md

    r2531176 r2553487  
    2828
    2929## Changelog
     30
     31## 1.1.15
     32
     33- Better sanitize taxonomy name as suggested by @ldeejay
    3034
    3135## 1.1.14
  • custom-post-type-maker/tags/1.1.15/class-cptm.php

    r2531176 r2553487  
    44Plugin URI: https://github.com/Graffino/custom-post-type-maker
    55Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way.
    6 Version: 1.1.14
     6Version: 1.1.15
    77Author: Graffino
    88Author URI: http://www.graffino.com/
     
    3232 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
    3333 * @package   Custom_Post_Types_Maker
    34  * @version   1.1.14
     34 * @version   1.1.15
    3535 */
    3636
     
    6262        $this->dir     = plugins_url( '', __FILE__ );
    6363        $this->path    = plugin_dir_path( __FILE__ );
    64         $this->version = '1.1.14';
     64        $this->version = '1.1.15';
    6565
    6666        // actions
     
    891891                <td class="label">
    892892                    <label for="cptm_tax_name"><span class="required">*</span> <?php _e( 'Custom Taxonomy Name', 'custom-post-type-maker' ); ?></label>
    893                     <p><?php _e( 'The taxonomy name. Used to retrieve custom taxonomy content.', 'custom-post-type-maker' ); ?></p>
     893                    <p><?php _e( 'The taxonomy name (use lowercase only). Used to retrieve custom taxonomy content. Must be all in lower-case and without any spaces.', 'custom-post-type-maker' ); ?></p>
    894894                    <p><?php _e( 'e.g. movies', 'custom-post-type-maker' ); ?></p>
    895895                </td>
     
    11451145        // Update taxonomy meta values
    11461146        if ( isset( $_POST['cptm_tax_name'] ) ) {
    1147             update_post_meta( $post_id, 'cptm_tax_name', sanitize_text_field( str_replace( ' ', '', $_POST['cptm_tax_name'] ) ) );
     1147            update_post_meta( $post_id, 'cptm_tax_name', sanitize_text_field( strtolower( str_replace( ' ', '', $_POST['cptm_tax_name'] ) ) ) );
    11481148        }
    11491149
  • custom-post-type-maker/tags/1.1.15/readme.txt

    r2531176 r2553487  
    44Requires at least: 3.0.0
    55Tested up to: 5.7
    6 Stable tag: 1.1.14
     6Stable tag: 1.1.15
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.1.15 =
     70
     71- Better sanitize taxonomy name as suggested by @ldeejay
     72
     73= 1.1.14 =
     74
     75- Compatibility with future version of WP
    6876
    6977= 1.1.13 =
  • custom-post-type-maker/trunk/CHANGELOG.md

    r2531176 r2553487  
    11# Changelog
     2
     3## 1.1.15
     4
     5- Better sanitize taxonomy name as suggested by @ldeejay
    26
    37## 1.1.14
  • custom-post-type-maker/trunk/README.md

    r2531176 r2553487  
    2828
    2929## Changelog
     30
     31## 1.1.15
     32
     33- Better sanitize taxonomy name as suggested by @ldeejay
    3034
    3135## 1.1.14
  • custom-post-type-maker/trunk/class-cptm.php

    r2531176 r2553487  
    44Plugin URI: https://github.com/Graffino/custom-post-type-maker
    55Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way.
    6 Version: 1.1.14
     6Version: 1.1.15
    77Author: Graffino
    88Author URI: http://www.graffino.com/
     
    3232 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
    3333 * @package   Custom_Post_Types_Maker
    34  * @version   1.1.14
     34 * @version   1.1.15
    3535 */
    3636
     
    6262        $this->dir     = plugins_url( '', __FILE__ );
    6363        $this->path    = plugin_dir_path( __FILE__ );
    64         $this->version = '1.1.14';
     64        $this->version = '1.1.15';
    6565
    6666        // actions
     
    891891                <td class="label">
    892892                    <label for="cptm_tax_name"><span class="required">*</span> <?php _e( 'Custom Taxonomy Name', 'custom-post-type-maker' ); ?></label>
    893                     <p><?php _e( 'The taxonomy name. Used to retrieve custom taxonomy content.', 'custom-post-type-maker' ); ?></p>
     893                    <p><?php _e( 'The taxonomy name (use lowercase only). Used to retrieve custom taxonomy content. Must be all in lower-case and without any spaces.', 'custom-post-type-maker' ); ?></p>
    894894                    <p><?php _e( 'e.g. movies', 'custom-post-type-maker' ); ?></p>
    895895                </td>
     
    11451145        // Update taxonomy meta values
    11461146        if ( isset( $_POST['cptm_tax_name'] ) ) {
    1147             update_post_meta( $post_id, 'cptm_tax_name', sanitize_text_field( str_replace( ' ', '', $_POST['cptm_tax_name'] ) ) );
     1147            update_post_meta( $post_id, 'cptm_tax_name', sanitize_text_field( strtolower( str_replace( ' ', '', $_POST['cptm_tax_name'] ) ) ) );
    11481148        }
    11491149
  • custom-post-type-maker/trunk/readme.txt

    r2531176 r2553487  
    44Requires at least: 3.0.0
    55Tested up to: 5.7
    6 Stable tag: 1.1.14
     6Stable tag: 1.1.15
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.1.15 =
     70
     71- Better sanitize taxonomy name as suggested by @ldeejay
     72
     73= 1.1.14 =
     74
     75- Compatibility with future version of WP
    6876
    6977= 1.1.13 =
Note: See TracChangeset for help on using the changeset viewer.