Changeset 1502 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
- Timestamp:
- 04/23/2015 05:52:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r1501 r1502 126 126 $this->theme_slug = sanitize_title_with_dashes( $this->theme_name ); 127 127 128 // Make sure it doesn't use a slug deemed not to be used by the public. 129 if ( $this->has_reserved_slug() ) { 130 return sprintf( __( 'Sorry, the theme name %s is reserved for use by WordPress Core. Please change the name of your theme in <code>style.css</ code> and upload it again.', 'wporg-themes' ), '<code>' . $this->theme_slug . '</code>' ); 131 } 128 $this->author = wp_get_current_user(); 129 130 // Make sure it doesn't use a slug deemed not to be used by the public. 131 if ( $this->has_reserved_slug() ) { 132 return sprintf( __( 'Sorry, the theme name %s is reserved for use by WordPress Core. Please change the name of your theme in <code>style.css</code> and upload it again.', 'wporg-themes' ), '<code>' . $this->theme_slug . '</code>' ); 133 } 132 134 133 135 // populate the theme post and author 134 136 $this->theme_post = $this->get_theme_post(); 135 $this->author = wp_get_current_user();136 137 137 138 $theme_description = $this->strip_non_utf8( (string) $this->theme->get( 'Description' ) );
Note: See TracChangeset
for help on using the changeset viewer.