Making WordPress.org

Changeset 10931


Ignore:
Timestamp:
04/29/2021 03:30:56 AM (3 years ago)
Author:
dd32
Message:

Theme Directory: When adding themes to SVN, don't translate the commit message.

See #5720.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r10927 r10931  
    10671067        $password = escapeshellarg( THEME_DROPBOX_PASSWORD );
    10681068        $message  = escapeshellarg( sprintf(
    1069             __( 'New version of %1$s - %2$s', 'wporg-themes' ),
     1069            'New version of %1$s - %2$s', // Intentionally not translated.
    10701070            $this->theme->display( 'Name' ),
    10711071            $this->theme->display( 'Version' )
     
    10931093     */
    10941094    function add_to_svn_via_svn_import() {
    1095         $import_msg = empty( $this->theme_post ) ?  __( 'New theme: %1$s - %2$s', 'wporg-themes' ) : __( 'New version of %1$s - %2$s', 'wporg-themes' );
     1095        $import_msg = empty( $this->theme_post ) ?  'New theme: %1$s - %2$s' : 'New version of %1$s - %2$s'; // Intentionally not translated
    10961096        $import_msg = escapeshellarg( sprintf( $import_msg, $this->theme->display( 'Name' ), $this->theme->display( 'Version' ) ) );
    10971097        $svn_path   = escapeshellarg( "https://themes.svn.wordpress.org/{$this->theme_slug}/{$this->theme->display( 'Version' )}" );
    10981098        $theme_path = escapeshellarg( $this->theme_dir );
    1099         $svn        = escapeshellarg( self::SVN );
    11001099        $password   = escapeshellarg( THEME_DROPBOX_PASSWORD );
    11011100
    1102         $last_line = $this->exec_with_notify( "{$svn} --non-interactive --username themedropbox --password {$password} --no-auto-props -m {$import_msg} import {$theme_path} {$svn_path}" );
     1101        $last_line = $this->exec_with_notify( self::SVN . " --non-interactive --username themedropbox --password {$password} --no-auto-props -m {$import_msg} import {$theme_path} {$svn_path}" );
    11031102
    11041103        if ( preg_match( '/Committed revision (\d+)\./i', $last_line, $m ) ) {
Note: See TracChangeset for help on using the changeset viewer.