Making WordPress.org


Ignore:
Timestamp:
07/02/2018 12:47:04 PM (8 years ago)
Author:
netweb
Message:

Support Hub: Update Support Hub to latest changes via GitHub

References:

Props clorith, kenshino, netweb.
See #3485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php

    r7306 r7354  
    8181        public function __construct( $post_type = array(), $token = 'thing-category', $singular = '', $plural = '', $args = array() ) {
    8282                $this->post_type = $post_type;
    83                 $this->token = esc_attr( $token );
    84                 $this->singular = esc_html( $singular );
    85                 $this->plural = esc_html( $plural );
     83                $this->token     = esc_attr( $token );
     84                $this->singular  = esc_html( $singular );
     85                $this->plural    = esc_html( $plural );
    8686
    8787                if ( '' === $this->singular ) {
     
    106106        private function _get_default_args() {
    107107                return array(
    108                         'labels'                => $this->_get_default_labels(),
    109                         'public'                => true,
    110                         'hierarchical'          => true,
    111                         'show_ui'               => true,
    112                         'show_admin_column'     => true,
    113                         'query_var'             => true,
    114                         'show_in_nav_menus'     => false,
    115                         'show_tagcloud'         => false,
    116                         'rewrite'               => array(
     108                        'labels'            => $this->_get_default_labels(),
     109                        'public'            => true,
     110                        'hierarchical'      => true,
     111                        'show_ui'           => true,
     112                        'show_admin_column' => true,
     113                        'query_var'         => true,
     114                        'show_in_nav_menus' => false,
     115                        'show_tagcloud'     => false,
     116                        'rewrite'           => array(
    117117                                'slug' => str_replace( 'helphub_', '', esc_attr( $this->token ) ),
    118118                        ),
     
    131131                        'name'                => sprintf( _x( '%s', 'taxonomy general name', 'wporg-forums' ), $this->plural ), /* @codingStandardsIgnoreLine */
    132132                        'singular_name'       => sprintf( _x( '%s', 'taxonomy singular name', 'wporg-forums' ), $this->singular ), /* @codingStandardsIgnoreLine */
    133                         'search_items'        => sprintf( __( 'Search %s', 'wporg-forums' ), $this->plural ),
     133                        /* translators: %s: Plural of the search label. */
     134                        'search_items'      => sprintf( __( 'Search %s', 'wporg-forums' ), $this->plural ),
    134135                        /* translators: %s: Plural name of the post type. */
    135                         'all_items'           => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ),
     136                        'all_items'         => sprintf( __( 'All %s', 'wporg-forums' ), $this->plural ),
    136137                        /* translators: %s: Post type name. */
    137                         'parent_item'         => sprintf( __( 'Parent %s', 'wporg-forums' ), $this->singular ),
     138                        'parent_item'       => sprintf( __( 'Parent %s', 'wporg-forums' ), $this->singular ),
    138139                        /* translators: %s: Post type name. */
    139                         'parent_item_colon'   => sprintf( __( 'Parent %s:', 'wporg-forums' ), $this->singular ),
     140                        'parent_item_colon' => sprintf( __( 'Parent %s:', 'wporg-forums' ), $this->singular ),
    140141                        /* translators: %s: Post type name. */
    141                         'edit_item'           => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ),
     142                        'edit_item'         => sprintf( __( 'Edit %s', 'wporg-forums' ), $this->singular ),
    142143                        /* translators: %s: Post type name. */
    143                         'update_item'         => sprintf( __( 'Update %s', 'wporg-forums' ), $this->singular ),
     144                        'update_item'       => sprintf( __( 'Update %s', 'wporg-forums' ), $this->singular ),
    144145                        /* translators: %s: Post type name. */
    145                         'add_new_item'        => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ),
     146                        'add_new_item'      => sprintf( __( 'Add New %s', 'wporg-forums' ), $this->singular ),
    146147                        /* translators: %s: Post type name. */
    147                         'new_item_name'       => sprintf( __( 'New %s Name', 'wporg-forums' ), $this->singular ),
    148                         'menu_name'           => $this->plural,
     148                        'new_item_name'     => sprintf( __( 'New %s Name', 'wporg-forums' ), $this->singular ),
     149                        'menu_name'         => $this->plural,
    149150                );
    150151        } // End _get_default_labels()
Note: See TracChangeset for help on using the changeset viewer.