Ticket #22260: 22260.2.diff
| File 22260.2.diff, 17.0 KB (added by , 14 years ago) |
|---|
-
wp-signup.php
382 382 $i18n_signup['user'] = _x('user', 'Multisite active signup type'); 383 383 384 384 if ( is_super_admin() ) 385 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “% s” registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '</div>';385 echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%1$s” registrations. To change or disable registration go to your <a href="%2$s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '</div>'; 386 386 387 387 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 388 388 -
wp-includes/class-phpmailer.php
638 638 $this->MIMEHeader = str_replace("\r\n", "\n", $header_dkim) . $this->MIMEHeader; 639 639 } 640 640 641 $this->SentMIMEMessage = sprintf("% s%s\r\n\r\n%s",$this->MIMEHeader,$mailHeader,$this->MIMEBody);641 $this->SentMIMEMessage = sprintf("%1$s%2$s\r\n\r\n%3$s",$this->MIMEHeader,$mailHeader,$this->MIMEBody); 642 642 return true; 643 643 644 644 } catch (phpmailerException $e) { … … 685 685 */ 686 686 protected function SendmailSend($header, $body) { 687 687 if ($this->Sender != '') { 688 $sendmail = sprintf("% s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));688 $sendmail = sprintf("%1$s -oi -f %2$s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); 689 689 } else { 690 690 $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 691 691 } … … 1224 1224 if($this->MessageID != '') { 1225 1225 $result .= $this->HeaderLine('Message-ID', $this->MessageID); 1226 1226 } else { 1227 $result .= sprintf("Message-ID: <% s@%s>%s", $uniq_id, $this->ServerHostname(), $this->LE);1227 $result .= sprintf("Message-ID: <%1$s@%2$s>%3$s", $uniq_id, $this->ServerHostname(), $this->LE); 1228 1228 } 1229 1229 $result .= $this->HeaderLine('X-Priority', $this->Priority); 1230 1230 if($this->XMailer) { … … 1444 1444 $encoding = $this->Encoding; 1445 1445 } 1446 1446 $result .= $this->TextLine('--' . $boundary); 1447 $result .= sprintf("Content-Type: % s; charset=\"%s\"", $contentType, $charSet);1447 $result .= sprintf("Content-Type: %1$s; charset=\"%2$s\"", $contentType, $charSet); 1448 1448 $result .= $this->LE; 1449 1449 $result .= $this->HeaderLine('Content-Transfer-Encoding', $encoding); 1450 1450 $result .= $this->LE; … … 1587 1587 if ( $disposition == 'inline' && isset($cidUniq[$cid]) ) { continue; } 1588 1588 $cidUniq[$cid] = true; 1589 1589 1590 $mime[] = sprintf("--% s%s", $boundary, $this->LE);1591 $mime[] = sprintf("Content-Type: %s; name=\"% s\"%s", $type, $this->EncodeHeader($this->SecureHeader($name)), $this->LE);1592 $mime[] = sprintf("Content-Transfer-Encoding: % s%s", $encoding, $this->LE);1590 $mime[] = sprintf("--%1$s%2$s", $boundary, $this->LE); 1591 $mime[] = sprintf("Content-Type: %s; name=\"%1$s\"%2$s", $type, $this->EncodeHeader($this->SecureHeader($name)), $this->LE); 1592 $mime[] = sprintf("Content-Transfer-Encoding: %1$s%2$s", $encoding, $this->LE); 1593 1593 1594 1594 if($disposition == 'inline') { 1595 $mime[] = sprintf("Content-ID: <% s>%s", $cid, $this->LE);1595 $mime[] = sprintf("Content-ID: <%1$s>%2$s", $cid, $this->LE); 1596 1596 } 1597 1597 1598 $mime[] = sprintf("Content-Disposition: % s; filename=\"%s\"%s", $disposition, $this->EncodeHeader($this->SecureHeader($name)), $this->LE.$this->LE);1598 $mime[] = sprintf("Content-Disposition: %1$s; filename=\"%2$s\"%3$s", $disposition, $this->EncodeHeader($this->SecureHeader($name)), $this->LE.$this->LE); 1599 1599 1600 1600 // Encode as string attachment 1601 1601 if($bString) { … … 1614 1614 } 1615 1615 } 1616 1616 1617 $mime[] = sprintf("--% s--%s", $boundary, $this->LE);1617 $mime[] = sprintf("--%1$s--%2$s", $boundary, $this->LE); 1618 1618 1619 1619 return implode("", $mime); 1620 1620 } … … 2135 2135 $tzs = ($tz < 0) ? '-' : '+'; 2136 2136 $tz = abs($tz); 2137 2137 $tz = (int)($tz/3600)*100 + ($tz%3600)/60; 2138 $result = sprintf("% s %s%04d", date('D, j M Y H:i:s'), $tzs, $tz);2138 $result = sprintf("%1$s %2$s%04d", date('D, j M Y H:i:s'), $tzs, $tz); 2139 2139 2140 2140 return $result; 2141 2141 } -
wp-includes/class-wp-customize-control.php
299 299 $dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown ); 300 300 301 301 printf( 302 '<label class="customize-control-select"><span class="customize-control-title">% s</span> %s</label>',302 '<label class="customize-control-select"><span class="customize-control-title">%1$s</span> %2$s</label>', 303 303 $this->label, 304 304 $dropdown 305 305 ); -
wp-admin/edit-comments.php
144 144 <h2><?php 145 145 if ( $post_id ) 146 146 echo sprintf(__('Comments on “%s”'), 147 sprintf('<a href="% s">%s</a>',147 sprintf('<a href="%1$s">%2$s</a>', 148 148 get_edit_post_link($post_id), 149 149 wp_html_excerpt(_draft_or_post_title($post_id), 50) 150 150 ) -
wp-admin/includes/ajax-actions.php
924 924 $_POST['post_type'] = $post->post_type; 925 925 $_POST['post_status'] = 'draft'; 926 926 $now = current_time('timestamp', 1); 927 $_POST['post_title'] = sprintf('Draft created on % s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now));927 $_POST['post_title'] = sprintf('Draft created on %1$s at %2$s', date(get_option('date_format'), $now), date(get_option('time_format'), $now)); 928 928 929 929 if ( $pid = edit_post() ) { 930 930 if ( is_wp_error( $pid ) ) { … … 1016 1016 'id' => $user_id, 1017 1017 'data' => $wp_list_table->single_row( $user_object, '', $role ), 1018 1018 'supplemental' => array( 1019 'show-link' => sprintf(__( 'User <a href="#% s">%s</a> added' ), "user-$user_id", $user_object->user_login),1019 'show-link' => sprintf(__( 'User <a href="#%1$s">%2$s</a> added' ), "user-$user_id", $user_object->user_login), 1020 1020 'role' => $role, 1021 1021 ) 1022 1022 ) ); -
wp-admin/includes/class-wp-list-table.php
384 384 $month = zeroise( $arc_row->month, 2 ); 385 385 $year = $arc_row->year; 386 386 387 printf( "<option % s value='%s'>%s</option>\n",387 printf( "<option %1$s value='%2$s'>%3$s</option>\n", 388 388 selected( $m, $year . $month, false ), 389 389 esc_attr( $arc_row->year . $month ), 390 390 /* translators: 1: month name, 2: 4-digit year */ … … 503 503 if ( $current == $total_pages ) 504 504 $disable_last = ' disabled'; 505 505 506 $page_links[] = sprintf( "<a class='% s' title='%s' href='%s'>%s</a>",506 $page_links[] = sprintf( "<a class='%1$s' title='%2$s' href='%3$s'>%4$s</a>", 507 507 'first-page' . $disable_first, 508 508 esc_attr__( 'Go to the first page' ), 509 509 esc_url( remove_query_arg( 'paged', $current_url ) ), 510 510 '«' 511 511 ); 512 512 513 $page_links[] = sprintf( "<a class='% s' title='%s' href='%s'>%s</a>",513 $page_links[] = sprintf( "<a class='%1$s' title='%2$s' href='%3$s'>%4$s</a>", 514 514 'prev-page' . $disable_first, 515 515 esc_attr__( 'Go to the previous page' ), 516 516 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), … … 520 520 if ( 'bottom' == $which ) 521 521 $html_current_page = $current; 522 522 else 523 $html_current_page = sprintf( "<input class='current-page' title='% s' type='text' name='paged' value='%s' size='%d' />",523 $html_current_page = sprintf( "<input class='current-page' title='%1$s' type='text' name='paged' value='%2$s' size='%3$d' />", 524 524 esc_attr__( 'Current page' ), 525 525 $current, 526 526 strlen( $total_pages ) … … 529 529 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 530 530 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>'; 531 531 532 $page_links[] = sprintf( "<a class='% s' title='%s' href='%s'>%s</a>",532 $page_links[] = sprintf( "<a class='%1$s' title='%2$s' href='%3$s'>%4$s</a>", 533 533 'next-page' . $disable_last, 534 534 esc_attr__( 'Go to the next page' ), 535 535 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 536 536 '›' 537 537 ); 538 538 539 $page_links[] = sprintf( "<a class='% s' title='%s' href='%s'>%s</a>",539 $page_links[] = sprintf( "<a class='%1$s' title='%2$s' href='%3$s'>%4$s</a>", 540 540 'last-page' . $disable_last, 541 541 esc_attr__( 'Go to the last page' ), 542 542 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), -
wp-admin/includes/class-wp-ms-themes-list-table.php
214 214 $url = 'themes.php'; 215 215 216 216 if ( 'search' != $type ) { 217 $status_links[$type] = sprintf( "<a href='% s' %s>%s</a>",217 $status_links[$type] = sprintf( "<a href='%1$s' %2$s>%3$s</a>", 218 218 esc_url( add_query_arg('theme_status', $type, $url) ), 219 219 ( $type == $status ) ? ' class="current"' : '', 220 220 sprintf( $text, number_format_i18n( $count ) ) -
wp-admin/includes/deprecated.php
578 578 'add_args' => $args 579 579 ) ); 580 580 if ( $this->paging_text ) { 581 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying % s–%s of %s' ) . '</span>%s',581 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %1$s–%2$s of %3$s' ) . '</span>%4$s', 582 582 number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), 583 583 number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), 584 584 number_format_i18n( $this->total_users_for_query ), -
wp-admin/includes/class-wp-plugins-list-table.php
220 220 } 221 221 222 222 if ( 'search' != $type ) { 223 $status_links[$type] = sprintf( "<a href='% s' %s>%s</a>",223 $status_links[$type] = sprintf( "<a href='%1$s' %2$s>%3$s</a>", 224 224 add_query_arg('plugin_status', $type, 'plugins.php'), 225 225 ( $type == $status ) ? ' class="current"' : '', 226 226 sprintf( $text, number_format_i18n( $count ) ) -
wp-admin/includes/class-wp-filesystem-ftpext.php
165 165 166 166 // chmod the file or directory 167 167 if ( ! function_exists('ftp_chmod') ) 168 return (bool)@ftp_site($this->link, sprintf('CHMOD % o %s', $mode, $file));168 return (bool)@ftp_site($this->link, sprintf('CHMOD %1$o %2$s', $mode, $file)); 169 169 return (bool)@ftp_chmod($this->link, $mode, $file); 170 170 } 171 171 function chown($file, $owner, $recursive = false ) { -
wp-admin/includes/class-wp-filesystem-ssh2.php
184 184 if ( ! $this->exists($file) ) 185 185 return false; 186 186 if ( ! $recursive || ! $this->is_dir($file) ) 187 return $this->run_command(sprintf('chgrp % o %s', $mode, escapeshellarg($file)), true);188 return $this->run_command(sprintf('chgrp -R % o %s', $mode, escapeshellarg($file)), true);187 return $this->run_command(sprintf('chgrp %1$o %2$s', $mode, escapeshellarg($file)), true); 188 return $this->run_command(sprintf('chgrp -R %1$o %2$s', $mode, escapeshellarg($file)), true); 189 189 } 190 190 191 191 function chmod($file, $mode = false, $recursive = false) { … … 202 202 } 203 203 204 204 if ( ! $recursive || ! $this->is_dir($file) ) 205 return $this->run_command(sprintf('chmod % o %s', $mode, escapeshellarg($file)), true);206 return $this->run_command(sprintf('chmod -R % o %s', $mode, escapeshellarg($file)), true);205 return $this->run_command(sprintf('chmod %1$o %2$s', $mode, escapeshellarg($file)), true); 206 return $this->run_command(sprintf('chmod -R %1$o %2$s', $mode, escapeshellarg($file)), true); 207 207 } 208 208 209 209 function chown($file, $owner, $recursive = false ) { 210 210 if ( ! $this->exists($file) ) 211 211 return false; 212 212 if ( ! $recursive || ! $this->is_dir($file) ) 213 return $this->run_command(sprintf('chown % o %s', $mode, escapeshellarg($file)), true);214 return $this->run_command(sprintf('chown -R % o %s', $mode, escapeshellarg($file)), true);213 return $this->run_command(sprintf('chown %1$o %2$s', $mode, escapeshellarg($file)), true); 214 return $this->run_command(sprintf('chown -R %1$o %2$s', $mode, escapeshellarg($file)), true); 215 215 } 216 216 217 217 function owner($file) { -
wp-admin/plugins.php
364 364 $invalid = validate_active_plugins(); 365 365 if ( !empty($invalid) ) 366 366 foreach ( $invalid as $plugin_file => $error ) 367 echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>% s</code> has been <strong>deactivated</strong> due to an error: %s'), esc_html($plugin_file), $error->get_error_message()) . '</p></div>';367 echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%1$s</code> has been <strong>deactivated</strong> due to an error: %2$s'), esc_html($plugin_file), $error->get_error_message()) . '</p></div>'; 368 368 ?> 369 369 370 370 <?php if ( isset($_GET['error']) ) : -
wp-admin/edit.php
58 58 if ( 'delete_all' == $doaction ) { 59 59 $post_status = preg_replace('/[^a-z0-9_-]+/i', '', $_REQUEST['post_status']); 60 60 if ( get_post_status_object($post_status) ) // Check the post status exists first 61 $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=% s AND post_status = %s", $post_type, $post_status ) );61 $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%1$s AND post_status = %2$s", $post_type, $post_status ) ); 62 62 $doaction = 'delete'; 63 63 } elseif ( isset( $_REQUEST['media'] ) ) { 64 64 $post_ids = $_REQUEST['media']; -
wp-admin/press-this.php
608 608 if ( $selection ) 609 609 $content .= __('via '); 610 610 611 $content .= sprintf( "<a href='% s'>%s</a>.</p>", esc_url( $url ), esc_html( $title ) );611 $content .= sprintf( "<a href='%1$s'>%2$s</a>.</p>", esc_url( $url ), esc_html( $title ) ); 612 612 } 613 613 614 614 remove_action( 'media_buttons', 'media_buttons' ); -
wp-admin/update-core.php
26 26 static $first_pass = true; 27 27 28 28 $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ? 29 $update->current : sprintf("% s–<strong>%s</strong>", $update->current, $update->locale);29 $update->current : sprintf("%1$s–<strong>%2$s</strong>", $update->current, $update->locale); 30 30 $current = false; 31 31 if ( !isset($update->response) || 'latest' == $update->response ) 32 32 $current = true; … … 161 161 echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>'; 162 162 } else { 163 163 list( $normalized_version ) = explode( '-', $wp_version ); 164 echo '<p>' . sprintf( __( '<a href="% s">Learn more about WordPress %s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '</p>';164 echo '<p>' . sprintf( __( '<a href="%1$s">Learn more about WordPress %2$s</a>.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '</p>'; 165 165 } 166 166 dismissed_updates(); 167 167 }