Changeset 10931
- Timestamp:
- 04/29/2021 03:30:56 AM (3 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
r10927 r10931 1067 1067 $password = escapeshellarg( THEME_DROPBOX_PASSWORD ); 1068 1068 $message = escapeshellarg( sprintf( 1069 __( 'New version of %1$s - %2$s', 'wporg-themes' ),1069 'New version of %1$s - %2$s', // Intentionally not translated. 1070 1070 $this->theme->display( 'Name' ), 1071 1071 $this->theme->display( 'Version' ) … … 1093 1093 */ 1094 1094 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 1096 1096 $import_msg = escapeshellarg( sprintf( $import_msg, $this->theme->display( 'Name' ), $this->theme->display( 'Version' ) ) ); 1097 1097 $svn_path = escapeshellarg( "https://themes.svn.wordpress.org/{$this->theme_slug}/{$this->theme->display( 'Version' )}" ); 1098 1098 $theme_path = escapeshellarg( $this->theme_dir ); 1099 $svn = escapeshellarg( self::SVN );1100 1099 $password = escapeshellarg( THEME_DROPBOX_PASSWORD ); 1101 1100 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}" ); 1103 1102 1104 1103 if ( preg_match( '/Committed revision (\d+)\./i', $last_line, $m ) ) {
Note: See TracChangeset
for help on using the changeset viewer.