Making WordPress.org


Ignore:
Timestamp:
04/23/2015 05:52:50 PM (10 years ago)
Author:
Otto42
Message:

Correct code spacing, fix author detection

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  
    126126        $this->theme_slug = sanitize_title_with_dashes( $this->theme_name );
    127127
    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        }
    132134   
    133135        // populate the theme post and author
    134136        $this->theme_post = $this->get_theme_post();
    135         $this->author     = wp_get_current_user();
    136137
    137138        $theme_description = $this->strip_non_utf8( (string) $this->theme->get( 'Description' ) );
Note: See TracChangeset for help on using the changeset viewer.