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.php

    r7306 r7354  
    127127                require_once( dirname( __FILE__ ) . '/class-helphub-post-types-taxonomy.php' );
    128128
    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                );
    138144
    139145                /* Post Types - End */
     
    174180         * Load the localisation file.
    175181         *
    176          * @access  public
    177          * @since   1.0.0
     182         * @access public
     183         * @since 1.0.0
    178184         */
    179185        public function load_plugin_textdomain() {
     
    182188
    183189        /**
    184         * Make sure category archive actually loads
    185         *
    186         * @access public
    187         * @since  1.1.0
    188         */
     190         * Make sure category archive actually loads
     191         *
     192         * @access public
     193         * @since 1.1.0
     194         */
    189195        public function fix_archive_category( WP_Query $query ) {
    190196                if ( ! is_admin() && is_category() && $query->is_main_query() ) {
     
    197203         *
    198204         * @access public
    199          * @since   1.0.0
    200          * @return   void
     205         * @since 1.0.0
     206         * @return void
    201207         */
    202208        public function enqueue_admin_styles() {
     
    213219                        endif;
    214220                endif;
    215                 wp_localize_script( 'helphub-post-types-admin', 'HelphubAdmin',
     221                wp_localize_script(
     222                        'helphub-post-types-admin', 'HelphubAdmin',
    216223                        array(
    217224                                'default_title'  => __( 'Upload', 'wporg-forums' ),
     
    220227                );
    221228
    222                 wp_localize_script( 'helphub-post-types-gallery', 'HelphubGallery',
     229                wp_localize_script(
     230                        'helphub-post-types-gallery', 'HelphubGallery',
    223231                        array(
    224232                                'gallery_title'  => __( 'Add Images to Product Gallery', 'wporg-forums' ),
Note: See TracChangeset for help on using the changeset viewer.