Making WordPress.org

Ticket #2306: 2306.patch

File 2306.patch, 935 bytes (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

     
    143143
    144144                // Do not allow themes with WordPress and Theme in the theme name.
    145145                if ( false !== strpos( $this->theme_slug, 'wordpress' ) || false !== strpos( $this->theme_slug, 'theme' ) ) {
    146                         return __( 'You cannot use WordPress or theme in your theme name.', 'wporg-themes' );
     146                        /* translators: 1: 'WordPress', 2: 'theme' */
     147                        return sprintf( __( 'You cannot use %1$s or %2$s in your theme name.', 'wporg-themes' ),
     148                                'WordPress',
     149                                'theme'
     150                        );
    147151                }
    148152
    149153                // Populate author.