WordPress.org

Make WordPress Core

Ticket #48295: 48295.patch

File 48295.patch, 1.0 KB (added by manikmist09, 8 months ago)

Fix typo & grammer

  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    From d3cc2db9f7dd0070e53093e8898aaa116c9aa415 Mon Sep 17 00:00:00 2001
    From: MD Sultan Nasir Uddin <manikdrmc@gmail.com>
    Date: Sat, 12 Oct 2019 22:03:36 +0600
    Subject: [PATCH] Fix type
    
    ---
     .../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 ac13f2b..5b0f845 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 has 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 ) );
    547547