[wp-trac] [WordPress Trac] #41457: WP_REST_Comments_Controller::check_read_post_permission() counts an uncountable value

WordPress Trac noreply at wordpress.org
Wed Oct 4 15:37:50 UTC 2017


#41457: WP_REST_Comments_Controller::check_read_post_permission() counts an
uncountable value
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
     Type:  defect (bug)                         |  johnbillion
 Priority:  normal                               |      Status:  closed
Component:  Comments                             |   Milestone:  4.9
 Severity:  normal                               |     Version:  4.7
 Keywords:  needs-unit-tests has-patch needs-    |  Resolution:  fixed
  testing                                        |     Focuses:  rest-api
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * owner:   => johnbillion
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41735"]:
 {{{
 #!CommitTicketReference repository="" revision="41735"
 REST API: Avoid counting an uncountable type when checking read
 permissions for comment posts.

 This avoids deprecated notices from showing in PHP 7.2 and above.

 Props ayeshrajans
 Fixes #41457
 }}}

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


More information about the wp-trac mailing list