Make WordPress Core


Ignore:
Timestamp:
07/17/2016 04:14:27 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Add a full stop to "Invalid taxonomy" and "Invalid term ID" strings, for consistency with similar post-related messages.

See #18218, #32329.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r38076 r38077  
    14271427
    14281428                        if ( ! $term )
    1429                             return new IXR_Error( 403, __( 'Invalid term ID' ) );
     1429                            return new IXR_Error( 403, __( 'Invalid term ID.' ) );
    14301430
    14311431                        $terms[$taxonomy][] = (int) $term_id;
     
    18741874
    18751875        if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
    1876             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     1876            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    18771877
    18781878        $taxonomy = get_taxonomy( $content_struct['taxonomy'] );
     
    19611961
    19621962        if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
    1963             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     1963            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    19641964
    19651965        $taxonomy = get_taxonomy( $content_struct['taxonomy'] );
     
    19791979
    19801980        if ( ! $term )
    1981             return new IXR_Error( 404, __( 'Invalid term ID' ) );
     1981            return new IXR_Error( 404, __( 'Invalid term ID.' ) );
    19821982
    19831983        if ( isset( $content_struct['name'] ) ) {
     
    20572057
    20582058        if ( ! taxonomy_exists( $taxonomy ) )
    2059             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     2059            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    20602060
    20612061        $taxonomy = get_taxonomy( $taxonomy );
     
    20702070
    20712071        if ( ! $term )
    2072             return new IXR_Error( 404, __( 'Invalid term ID' ) );
     2072            return new IXR_Error( 404, __( 'Invalid term ID.' ) );
    20732073
    20742074        $result = wp_delete_term( $term_id, $taxonomy->name );
     
    21282128
    21292129        if ( ! taxonomy_exists( $taxonomy ) )
    2130             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     2130            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    21312131
    21322132        $taxonomy = get_taxonomy( $taxonomy );
     
    21412141
    21422142        if ( ! $term )
    2143             return new IXR_Error( 404, __( 'Invalid term ID' ) );
     2143            return new IXR_Error( 404, __( 'Invalid term ID.' ) );
    21442144
    21452145        return $this->_prepare_term( $term );
     
    21862186
    21872187        if ( ! taxonomy_exists( $taxonomy ) )
    2188             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     2188            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    21892189
    21902190        $taxonomy = get_taxonomy( $taxonomy );
     
    22812281
    22822282        if ( ! taxonomy_exists( $taxonomy ) )
    2283             return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
     2283            return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
    22842284
    22852285        $taxonomy = get_taxonomy( $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.