Make WordPress Core

Ticket #17414: 17414.001.diff

File 17414.001.diff, 4.0 KB (added by duck_, 14 years ago)
  • wp-includes/class-http.php

     
    192192        }
    193193
    194194        /**
    195          * Tests which transports are capabable of supporting the request.
     195         * Tests which transports are capable of supporting the request.
    196196         *
    197197         * @since 3.2.0
    198198         * @access private
     
    247247                if ( !$class )
    248248                        return new WP_Error( 'http_failure', __( 'There are no HTTP transports available which can complete the requested request.' ) );
    249249
    250                 // Transport claims to support request, Instantate it and give it a whirl.
     250                // Transport claims to support request, instantiate it and give it a whirl.
    251251                if ( empty( $transports[$class] ) )
    252252                        $transports[$class] = new $class;
    253253
  • wp-includes/l10n.php

     
    186186 * @param string $domain Optional. Domain to retrieve the translated text
    187187 * @return string Translated context string without pipe
    188188 */
    189 function _x( $single, $context, $domain = 'default' ) {
    190         return translate_with_gettext_context( $single, $context, $domain );
     189function _x( $text, $context, $domain = 'default' ) {
     190        return translate_with_gettext_context( $text, $context, $domain );
    191191}
    192192
    193193/**
     
    201201 * @param string $domain Optional. Domain to retrieve the translated text
    202202 * @return string Translated context string without pipe
    203203 */
    204 function _ex( $single, $context, $domain = 'default' ) {
    205         echo _x( $single, $context, $domain );
     204function _ex( $text, $context, $domain = 'default' ) {
     205        echo _x( $text, $context, $domain );
    206206}
    207207
    208208function esc_attr_x( $single, $context, $domain = 'default' ) {
     
    270270 *  $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count );
    271271 *
    272272 * @since 2.5
    273  * @param string $single Single form to be i18ned
     273 * @param string $singular Single form to be i18ned
    274274 * @param string $plural Plural form to be i18ned
    275  * @return array array($single, $plural)
     275 * @return array array($singular, $plural)
    276276 */
    277277function _n_noop( $singular, $plural ) {
    278278        return array( 0 => $singular, 1 => $plural, 'singular' => $singular, 'plural' => $plural, 'context' => null );
  • wp-includes/formatting.php

     
    12271227 *
    12281228 * @since 2.0.0
    12291229 *
    1230  * @param array|string $value The array or string to be striped.
     1230 * @param array|string $value The array or string to be stripped.
    12311231 * @return array|string Stripped array (or string in the callback).
    12321232 */
    12331233function stripslashes_deep($value) {
     
    27582758 * This function by default only applies to <a> tags, however this can be
    27592759 * modified by the 3rd param.
    27602760 *
    2761  * <b>NOTE:</b> Any current target attributed will be striped and replaced.
     2761 * <b>NOTE:</b> Any current target attributed will be stripped and replaced.
    27622762 *
    27632763 * @since 2.7.0
    27642764 *
  • wp-admin/plugins.php

     
    5959                                update_option('recently_activated', $recent);
    6060                        }
    6161                        if ( isset($_GET['from']) && 'import' == $_GET['from'] ) {
    62                                 wp_redirect( self_admin_url("import.php?import=" . str_replace('-importer', '', dirname($plugin))) ); // overrides the ?error=true one above and redirects to the Imports page, striping the -importer suffix
     62                                wp_redirect( self_admin_url("import.php?import=" . str_replace('-importer', '', dirname($plugin))) ); // overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix
    6363                        } else {
    6464                                wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above
    6565                        }