Changeset 38077 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 07/17/2016 04:14:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r38076 r38077 1427 1427 1428 1428 if ( ! $term ) 1429 return new IXR_Error( 403, __( 'Invalid term ID ' ) );1429 return new IXR_Error( 403, __( 'Invalid term ID.' ) ); 1430 1430 1431 1431 $terms[$taxonomy][] = (int) $term_id; … … 1874 1874 1875 1875 if ( ! taxonomy_exists( $content_struct['taxonomy'] ) ) 1876 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );1876 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 1877 1877 1878 1878 $taxonomy = get_taxonomy( $content_struct['taxonomy'] ); … … 1961 1961 1962 1962 if ( ! taxonomy_exists( $content_struct['taxonomy'] ) ) 1963 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );1963 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 1964 1964 1965 1965 $taxonomy = get_taxonomy( $content_struct['taxonomy'] ); … … 1979 1979 1980 1980 if ( ! $term ) 1981 return new IXR_Error( 404, __( 'Invalid term ID ' ) );1981 return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 1982 1982 1983 1983 if ( isset( $content_struct['name'] ) ) { … … 2057 2057 2058 2058 if ( ! taxonomy_exists( $taxonomy ) ) 2059 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );2059 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 2060 2060 2061 2061 $taxonomy = get_taxonomy( $taxonomy ); … … 2070 2070 2071 2071 if ( ! $term ) 2072 return new IXR_Error( 404, __( 'Invalid term ID ' ) );2072 return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 2073 2073 2074 2074 $result = wp_delete_term( $term_id, $taxonomy->name ); … … 2128 2128 2129 2129 if ( ! taxonomy_exists( $taxonomy ) ) 2130 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );2130 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 2131 2131 2132 2132 $taxonomy = get_taxonomy( $taxonomy ); … … 2141 2141 2142 2142 if ( ! $term ) 2143 return new IXR_Error( 404, __( 'Invalid term ID ' ) );2143 return new IXR_Error( 404, __( 'Invalid term ID.' ) ); 2144 2144 2145 2145 return $this->_prepare_term( $term ); … … 2186 2186 2187 2187 if ( ! taxonomy_exists( $taxonomy ) ) 2188 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );2188 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 2189 2189 2190 2190 $taxonomy = get_taxonomy( $taxonomy ); … … 2281 2281 2282 2282 if ( ! taxonomy_exists( $taxonomy ) ) 2283 return new IXR_Error( 403, __( 'Invalid taxonomy ' ) );2283 return new IXR_Error( 403, __( 'Invalid taxonomy.' ) ); 2284 2284 2285 2285 $taxonomy = get_taxonomy( $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.