WordPress.org

Make WordPress Core

Changeset 20996


Ignore:
Timestamp:
06/05/12 16:25:05 (23 months ago)
Author:
nacin
Message:

Combine 'Invalid term ID.' into the 'Invalid term ID' string. props pavelevap. fixes #20809.

File:
1 edited

Legend:

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

    r20972 r20996  
    15801580 
    15811581        if ( ! $term ) 
    1582             return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 
     1582            return new IXR_Error( 404, __( 'Invalid term ID' ) ); 
    15831583 
    15841584        if ( isset( $content_struct['name'] ) ) { 
     
    16671667 
    16681668        if ( ! $term ) 
    1669             return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 
     1669            return new IXR_Error( 404, __( 'Invalid term ID' ) ); 
    16701670 
    16711671        $result = wp_delete_term( $term_id, $taxonomy->name ); 
     
    17341734 
    17351735        if ( ! $term ) 
    1736             return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 
     1736            return new IXR_Error( 404, __( 'Invalid term ID' ) ); 
    17371737 
    17381738        return $this->_prepare_term( $term ); 
Note: See TracChangeset for help on using the changeset viewer.