Making WordPress.org

Ticket #1243: meta-1243.patch

File meta-1243.patch, 1.8 KB (added by SergeyBiryukov, 9 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

     
    119119                // Let's check some theme headers, shall we?
    120120
    121121                if ( ! $this->theme_name = $this->theme->get( 'Name' ) ) {
    122                         return __( "The theme has no name. Add it to style.css and upload the theme again. <a href='https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet'>Theme Style Sheets</a>", 'wporg-themes' );
     122                        return sprintf( __( 'The theme has no name. Add it to style.css and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), __( 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet', 'wporg-themes' ) );
    123123                }
    124124
    125125                // determine the theme slug based on the name of the theme in the stylesheet
     
    137137
    138138                $theme_description = $this->strip_non_utf8( (string) $this->theme->get( 'Description' ) );
    139139                if ( empty( $theme_description ) ) {
    140                         return sprintf( __( 'The theme has no description. Add it to <code>style.css</code> and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet' );
     140                        return sprintf( __( 'The theme has no description. Add it to <code>style.css</code> and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), __( 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet', 'wporg-themes' ) );
    141141                }
    142142
    143143                if ( ! $this->theme->get( 'Tags' ) ) {