Make WordPress Core

Ticket #41974: 41974.diff

File 41974.diff, 2.4 KB (added by Rahmohn, 4 years ago)
  • src/wp-includes/class-wp-customize-manager.php

     
    23562356                if ( $update_transactionally && $invalid_setting_count > 0 ) {
    23572357                        $response = array(
    23582358                                'setting_validities' => $setting_validities,
    2359                                 /* translators: placeholder is number of invalid settings */
     2359                                /* translators: %s: number of invalid settings */
    23602360                                'message' => sprintf( _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ),
    23612361                        );
    23622362                        return new WP_Error( 'transaction_fail', '', $response );
     
    41884188                if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
    41894189                        $section_description .= '<p>';
    41904190                        $section_description .= sprintf(
    4191                                 /* translators: placeholder is link to user profile */
     4191                                /* translators: %s: link to user profile */
    41924192                                __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
    41934193                                sprintf(
    41944194                                        ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
  • src/wp-includes/widgets/class-wp-widget-custom-html.php

     
    176176
    177177                $l10n = array(
    178178                        'errorNotice' => wp_array_slice_assoc(
    179                                 /* translators: placeholder is error count */
     179                                /* translators: %d: error count */
    180180                                _n_noop( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.' ),
    181181                                array( 'singular', 'plural' )
    182182                        ),
     
    257257                if ( 'false' !== wp_get_current_user()->syntax_highlighting ) {
    258258                        $content .= '<p>';
    259259                        $content .= sprintf(
    260                                 /* translators: placeholder is link to user profile */
     260                                /* translators: %s: link to user profile */
    261261                                __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ),
    262262                                sprintf(
    263263                                        ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',