Making WordPress.org


Ignore:
Timestamp:
07/29/2016 10:44:47 AM (10 years ago)
Author:
ocean90
Message:

Support: Use wporg-forums as the text domain for bbPress plugins.

We already use it for the theme.

See #1544.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-version-dropdown/inc/class-plugin.php

    r3737 r3739  
    7777                ?>
    7878                <p>
    79                         <label for="wp-version"><?php esc_html_e( 'Version:', 'wporg' ); ?></label><br />
    80                         <em><?php esc_html_e( 'Select the version of WordPress you are using.', 'wporg' ); ?></em><br />
     79                        <label for="wp-version"><?php esc_html_e( 'Version:', 'wporg-forums' ); ?></label><br />
     80                        <em><?php esc_html_e( 'Select the version of WordPress you are using.', 'wporg-forums' ); ?></em><br />
    8181
    8282                        <select name="<?php echo esc_attr( self::META_KEY ); ?>" id="wp-version">
    … …  
    8686                        </select>
    8787
    88                         <label for="wp-other-version"><?php esc_html_e( 'Enter a different WordPress version here:', 'wporg' ); ?></label>
     88                        <label for="wp-other-version"><?php esc_html_e( 'Enter a different WordPress version here:', 'wporg-forums' ); ?></label>
    8989                        <input type="text" name="wp_other_version" id="wp-other-version" value="<?php echo esc_attr( $other_version ); ?>">
    9090                </p>
    … …  
    111111        public function enqueue_scripts() {
    112112                if ( bbp_is_single_forum() || bbp_is_single_topic() || bbp_is_topic_edit() ) {
    113                         wp_enqueue_script( 'wporg-bbp-version-dropdown', plugins_url( 'wporg-bbp-version-dropdown.js', dirname( __FILE__ ) ), array( 'jquery' ) );
     113                        wp_enqueue_script( 'wporg-bbp-version-dropdown', plugins_url( 'wporg-bbp-version-dropdown.js', __DIR__ ), array( 'jquery' ), '20160729', true );
    114114                }
    115115        }
    … …  
    157157                        array( '0' => '' ),
    158158                        apply_filters( 'wporg_bbp_get_wp_versions', array() ),
    159                         array( 'other' => __( 'Other:', 'wporg' ) )
     159                        array( 'other' => __( 'Other:', 'wporg-forums' ) )
    160160                );
    161161                return $versions;
Note: See TracChangeset for help on using the changeset viewer.