[wp-trac] [WordPress Trac] #58218: Unused local variable $parent_post_type in class-wp-rest-revisions-controller.php

WordPress Trac noreply at wordpress.org
Fri Apr 28 10:03:27 UTC 2023


#58218: Unused local variable $parent_post_type in class-wp-rest-revisions-
controller.php
---------------------------------------------+-----------------------------
 Reporter:  Soean                            |       Owner:  SergeyBiryukov
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.3
Component:  REST API                         |     Version:  5.5
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch commit good-first-bug  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55696" 55696]:
 {{{
 #!CommitTicketReference repository="" revision="55696"
 REST API: Remove unused variable from the permissions check for deleting a
 revision.

 `WP_REST_Revisions_Controller::delete_item_permissions_check()` no longer
 uses the value of the `$parent_post_type` variable anywhere.

 Follow-up to [45812], [47547], [47850].

 Props Soean, mukesh27.
 Fixes #58218.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58218#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list