WordPress.org

Make WordPress Core

Changeset 17925


Ignore:
Timestamp:
05/14/2011 09:50:20 AM (11 years ago)
Author:
westi
Message:

Fix typos and inconsistencies in PHPdoc / function declarations. See #17414 props duck_

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r17900 r17925  
    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
  • trunk/wp-includes/class-http.php

    r17914 r17925  
    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
     
    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;
  • trunk/wp-includes/formatting.php

    r17920 r17925  
    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 */
     
    27492749 * modified by the 3rd param.
    27502750 *
    2751  * <b>NOTE:</b> Any current target attributed will be striped and replaced.
     2751 * <b>NOTE:</b> Any current target attributed will be stripped and replaced.
    27522752 *
    27532753 * @since 2.7.0
  • trunk/wp-includes/l10n.php

    r16438 r17925  
    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
     
    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
     
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.