Changeset 7354 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types-taxonomy.php
- Timestamp:
- 07/02/2018 12:47:04 PM (8 years ago)
- 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 81 81 public function __construct( $post_type = array(), $token = 'thing-category', $singular = '', $plural = '', $args = array() ) { 82 82 $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 ); 86 86 87 87 if ( '' === $this->singular ) { … … 106 106 private function _get_default_args() { 107 107 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( 117 117 'slug' => str_replace( 'helphub_', '', esc_attr( $this->token ) ), 118 118 ), … … 131 131 'name' => sprintf( _x( '%s', 'taxonomy general name', 'wporg-forums' ), $this->plural ), /* @codingStandardsIgnoreLine */ 132 132 '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 ), 134 135 /* 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 ), 136 137 /* 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 ), 138 139 /* 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 ), 140 141 /* 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 ), 142 143 /* 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 ), 144 145 /* 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 ), 146 147 /* 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, 149 150 ); 150 151 } // End _get_default_labels()
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)