WordPress.org

Make WordPress Core

Changeset 46469


Ignore:
Timestamp:
10/13/2019 02:40:05 AM (5 weeks ago)
Author:
peterwilsoncc
Message:

Docs: Correct comment typo in WP_REST_Terms_Controller::update_item().

Props manikmist09.
Fixes #48295. See #47110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r46098 r46469  
    542542        $prepared_term = $this->prepare_item_for_database( $request );
    543543
    544         // Only update the term if we haz something to update.
     544        // Only update the term if we have something to update.
    545545        if ( ! empty( $prepared_term ) ) {
    546546            $update = wp_update_term( $term->term_id, $term->taxonomy, wp_slash( (array) $prepared_term ) );
Note: See TracChangeset for help on using the changeset viewer.