WordPress.org

Make WordPress Core

Ticket #48295: Fix-typo.patch

File Fix-typo.patch, 1.0 KB (added by manikmist09, 8 months ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    From ca2f689cf00b2bf9a72fc8c9ed979e4dc7179825 Mon Sep 17 00:00:00 2001
    From: MD Sultan Nasir Uddin <manikdrmc@gmail.com>
    Date: Sat, 12 Oct 2019 21:51:12 +0600
    Subject: [PATCH] Fix typo
    
    ---
     .../rest-api/endpoints/class-wp-rest-terms-controller.php       | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
    index 6783ea9..ac13f2b 100644
    a b class WP_REST_Terms_Controller extends WP_REST_Controller { 
    541541
    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 has something to update.
    545545                if ( ! empty( $prepared_term ) ) {
    546546                        $update = wp_update_term( $term->term_id, $term->taxonomy, wp_slash( (array) $prepared_term ) );
    547547