Changeset 5279
- Timestamp:
- 04/07/2017 11:33:44 AM (8 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
r4891 r5279 142 142 $this->theme_slug = sanitize_title_with_dashes( $this->theme_name ); 143 143 144 $this->author = wp_get_current_user(); 144 // Do not allow themes with WordPress and Theme in the theme name. 145 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' ); 147 } 148 149 // Populate author. 150 $this->author = wp_get_current_user(); 145 151 146 152 // Make sure it doesn't use a slug deemed not to be used by the public. … … 153 159 } 154 160 155 // populate the theme post and author161 // Populate the theme post. 156 162 $this->theme_post = $this->get_theme_post(); 157 163 … … 568 574 $this->trac_ticket->description .= "\nTheme Check Results:\n" . $theme_check_results; 569 575 } 570 576 571 577 } 572 578
Note: See TracChangeset
for help on using the changeset viewer.