WordPress.org

Make WordPress Core

Ticket #48295: 48295-updated.patch

File 48295-updated.patch, 1.1 KB (added by manikmist09, 10 months ago)

Cleaned path fixing typo

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

    From 83d820ee31f92b64547e49e1469db46440051e61 Mon Sep 17 00:00:00 2001
    From: MD Sultan Nasir Uddin <manikdrmc@gmail.com>
    Date: Sat, 12 Oct 2019 22:10:17 +0600
    Subject: [PATCH] Fix typo & grammer
    
    ---
     .../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..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 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 ) );
    547547