Make WordPress Core

Ticket #39176: 39176.patch

File 39176.patch, 1019 bytes (added by ramiy, 8 years ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

     
    374374                        $parent = get_term( (int) $request['parent'], $this->taxonomy );
    375375
    376376                        if ( ! $parent ) {
    377                                 return new WP_Error( 'rest_term_invalid', __( "Parent term doesn't exist." ), array( 'status' => 400 ) );
     377                                return new WP_Error( 'rest_term_invalid', __( 'Parent term does not exist.' ), array( 'status' => 400 ) );
    378378                        }
    379379                }
    380380
     
    481481                        $parent = get_term( (int) $request['parent'], $this->taxonomy );
    482482
    483483                        if ( ! $parent ) {
    484                                 return new WP_Error( 'rest_term_invalid', __( "Parent term doesn't exist." ), array( 'status' => 400 ) );
     484                                return new WP_Error( 'rest_term_invalid', __( 'Parent term does not exist.' ), array( 'status' => 400 ) );
    485485                        }
    486486                }
    487487