Changeset 7354 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-post-types/classes/class-helphub-post-types.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.php
r7306 r7354 127 127 require_once( dirname( __FILE__ ) . '/class-helphub-post-types-taxonomy.php' ); 128 128 129 $this->post_types['post'] = new HelpHub_Post_Types_Post_Type( 'post', __( 'Post', 'wporg-forums' ), __( 'Posts', 'wporg-forums' ), array( 130 'menu_icon' => 'dashicons-post', 131 ) ); 132 $this->post_types['helphub_article'] = new HelpHub_Post_Types_Post_Type( 'helphub_article', __( 'Article', 'wporg-forums' ), __( 'Articles', 'wporg-forums' ), array( 133 'menu_icon' => 'dashicons-media-document', 134 ) ); 135 $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type( 'helphub_version', __( 'WordPress Version', 'wporg-forums' ), __( 'WordPress Versions', 'wporg-forums' ), array( 136 'menu_icon' => 'dashicons-wordpress', 137 ) ); 129 $this->post_types['post'] = new HelpHub_Post_Types_Post_Type( 130 'post', __( 'Post', 'wporg-forums' ), __( 'Posts', 'wporg-forums' ), array( 131 'menu_icon' => 'dashicons-post', 132 ) 133 ); 134 $this->post_types['helphub_article'] = new HelpHub_Post_Types_Post_Type( 135 'helphub_article', __( 'Article', 'wporg-forums' ), __( 'Articles', 'wporg-forums' ), array( 136 'menu_icon' => 'dashicons-media-document', 137 ) 138 ); 139 $this->post_types['helphub_version'] = new HelpHub_Post_Types_Post_Type( 140 'helphub_version', __( 'WordPress Version', 'wporg-forums' ), __( 'WordPress Versions', 'wporg-forums' ), array( 141 'menu_icon' => 'dashicons-wordpress', 142 ) 143 ); 138 144 139 145 /* Post Types - End */ … … 174 180 * Load the localisation file. 175 181 * 176 * @access public177 * @since 1.0.0182 * @access public 183 * @since 1.0.0 178 184 */ 179 185 public function load_plugin_textdomain() { … … 182 188 183 189 /** 184 * Make sure category archive actually loads185 *186 * @accesspublic187 * @since1.1.0188 */190 * Make sure category archive actually loads 191 * 192 * @access public 193 * @since 1.1.0 194 */ 189 195 public function fix_archive_category( WP_Query $query ) { 190 196 if ( ! is_admin() && is_category() && $query->is_main_query() ) { … … 197 203 * 198 204 * @access public 199 * @since 1.0.0200 * @return void205 * @since 1.0.0 206 * @return void 201 207 */ 202 208 public function enqueue_admin_styles() { … … 213 219 endif; 214 220 endif; 215 wp_localize_script( 'helphub-post-types-admin', 'HelphubAdmin', 221 wp_localize_script( 222 'helphub-post-types-admin', 'HelphubAdmin', 216 223 array( 217 224 'default_title' => __( 'Upload', 'wporg-forums' ), … … 220 227 ); 221 228 222 wp_localize_script( 'helphub-post-types-gallery', 'HelphubGallery', 229 wp_localize_script( 230 'helphub-post-types-gallery', 'HelphubGallery', 223 231 array( 224 232 'gallery_title' => __( 'Add Images to Product Gallery', 'wporg-forums' ),
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)