Plugin Directory

Changeset 2421130


Ignore:
Timestamp:
11/18/2020 10:03:03 PM (5 years ago)
Author:
graffino
Message:

Remove 'All' from taxonomy names as suggested by @gnowland

Location:
custom-post-type-maker/trunk
Files:
4 edited

Legend:

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

    r2404133 r2421130  
    11# Changelog
     2
     3## 1.1.12
     4
     5- Remove 'All' from taxonomy names as suggested by @gnowland
    26
    37## 1.1.11
  • custom-post-type-maker/trunk/README.md

    r2404133 r2421130  
    2828
    2929## Changelog
     30
     31## 1.1.12
     32
     33- Remove 'All' from taxonomy names as suggested by @gnowland
    3034
    3135## 1.1.11
  • custom-post-type-maker/trunk/class-cptm.php

    r2404133 r2421130  
    44Plugin URI: https://github.com/Graffino/custom-post-type-maker-ui
    55Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way.
    6 Version: 1.1.11
     6Version: 1.1.12
    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.11
     34 * @version   1.1.12
    3535 */
    3636
     
    6262        $this->dir     = plugins_url( '', __FILE__ );
    6363        $this->path    = plugin_dir_path( __FILE__ );
    64         $this->version = '1.1.11';
     64        $this->version = '1.1.12';
    6565
    6666        // actions
     
    110110        );
    111111
    112         register_post_type( 'cptm', array(
    113             'labels'          => $labels,
    114             'public'          => false,
    115             'show_ui'         => true,
    116             '_builtin'        => false,
    117             'capability_type' => 'page',
    118             'hierarchical'    => false,
    119             'rewrite'         => false,
    120             'query_var'       => 'cptm',
    121             'supports'        => array(
    122                 'title',
    123             ),
    124             'show_in_menu'    => false,
    125         ));
     112        register_post_type(
     113            'cptm',
     114            array(
     115                'labels'          => $labels,
     116                'public'          => false,
     117                'show_ui'         => true,
     118                '_builtin'        => false,
     119                'capability_type' => 'page',
     120                'hierarchical'    => false,
     121                'rewrite'         => false,
     122                'query_var'       => 'cptm',
     123                'supports'        => array(
     124                    'title',
     125                ),
     126                'show_in_menu'    => false,
     127            )
     128        );
    126129
    127130        // Create cptm_tax post type
     
    139142        );
    140143
    141         register_post_type( 'cptm_tax', array(
    142             'labels'          => $labels,
    143             'public'          => false,
    144             'show_ui'         => true,
    145             '_builtin'        => false,
    146             'capability_type' => 'page',
    147             'hierarchical'    => false,
    148             'rewrite'         => false,
    149             'query_var'       => 'cptm_tax',
    150             'supports'        => array(
    151                 'title',
    152             ),
    153             'show_in_menu'    => false,
    154         ));
     144        register_post_type(
     145            'cptm_tax',
     146            array(
     147                'labels'          => $labels,
     148                'public'          => false,
     149                'show_ui'         => true,
     150                '_builtin'        => false,
     151                'capability_type' => 'page',
     152                'hierarchical'    => false,
     153                'rewrite'         => false,
     154                'query_var'       => 'cptm_tax',
     155                'supports'        => array(
     156                    'title',
     157                ),
     158                'show_in_menu'    => false,
     159            )
     160        );
    155161
    156162        // Add image size for the Custom Post Type icon
     
    410416                            'search_items'               => __( 'Search ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    411417                            'popular_items'              => __( 'Popular ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    412                             'all_items'                  => __( 'All ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
     418                            'all_items'                  => __( $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    413419                            'parent_item'                => __( 'Parent ' . $cptm_taxonomy['cptm_tax_singular_name'], 'custom-post-type-maker' ),
    414420                            'parent_item_colon'          => __( 'Parent ' . $cptm_taxonomy['cptm_tax_singular_name'], 'custom-post-type-maker' . ':' ),
     
    420426                            'add_or_remove_items'        => __( 'Add or remove ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    421427                            'choose_from_most_used'      => __( 'Choose from the most used ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    422                             'menu_name'                  => __( 'All ' . $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
     428                            'menu_name'                  => __( $cptm_taxonomy['cptm_tax_label'], 'custom-post-type-maker' ),
    423429                        );
    424430
     
    10021008                    <input type="checkbox" tabindex="12" name="cptm_tax_post_types[]" id="cptm_tax_post_types_page" value="page" <?php checked( $cptm_tax_post_types_page, 'page' ); ?> /> <label for="cptm_tax_post_types_page"><?php _e( 'Pages', 'custom-post-type-maker' ); ?></label><br />
    10031009                    <?php
    1004                     $post_types = get_post_types( array(
    1005                         'public'   => true,
    1006                         '_builtin' => false,
    1007                     ));
     1010                    $post_types = get_post_types(
     1011                        array(
     1012                            'public'   => true,
     1013                            '_builtin' => false,
     1014                        )
     1015                    );
    10081016
    10091017                    $i = 13;
     
    13271335
    13281336            // Get all public Custom Post Types
    1329             $post_types = get_post_types( array(
    1330                 'public'   => true,
    1331                 '_builtin' => false,
    1332             ), 'objects' );
     1337            $post_types = get_post_types(
     1338                array(
     1339                    'public'   => true,
     1340                    '_builtin' => false,
     1341                ),
     1342                'objects'
     1343            );
    13331344            // Get all Custom Post Types created by Custom Post Type Maker
    13341345            $cptm_posts = get_posts( array( 'post_type' => 'cptm' ) );
     
    14311442
    14321443            // Get all public custom Taxonomies
    1433             $taxonomies = get_taxonomies( array(
    1434                 'public'   => true,
    1435                 '_builtin' => false,
    1436             ), 'objects' );
     1444            $taxonomies = get_taxonomies(
     1445                array(
     1446                    'public'   => true,
     1447                    '_builtin' => false,
     1448                ),
     1449                'objects'
     1450            );
    14371451            // Get all custom Taxonomies created by Custom Post Type Maker
    14381452            $cptm_tax_posts = get_posts( array( 'post_type' => 'cptm_tax' ) );
  • custom-post-type-maker/trunk/readme.txt

    r2404133 r2421130  
    6767== Changelog ==
    6868
     69= 1.1.12 =
     70
     71- Remove 'All' from taxonomy names as suggested by @gnowland
     72
    6973= 1.1.11 =
    7074
Note: See TracChangeset for help on using the changeset viewer.