[wp-trac] [WordPress Trac] #36208: Comment queries should ignore comments associated with non-active custom post types

WordPress Trac noreply at wordpress.org
Mon Mar 11 00:32:03 UTC 2019


#36208: Comment queries should ignore comments associated with non-active custom
post types
-------------------------------------------------+-------------------------
 Reporter:  Clorith                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Comments                             |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch needs-unit-tests bulk-   |     Focuses:
  reopened                                       |  administration
-------------------------------------------------+-------------------------
Changes (by kal123):

 * keywords:  needs-patch, needs-unit-tests, bulk-reopened => needs-patch
     needs-unit-tests bulk-reopened


Comment:

 See this issue on 5.1 today:

 [11-Mar-2019 00:16:54 UTC] PHP Notice:  map_meta_cap was called
 <strong>incorrectly</strong>. The post type tribe-ea-record is not
 registered, so it may not be reliable to check the capability "read_post"
 against a post of that type. Please see <a
 href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in
 WordPress</a> for more information. (This message was added in version
 4.4.0.) in [wordpress path]/wp-includes/functions.php on line 4667

 I have removed the tribe plugins, and still see this message 98 times in
 the debug log.
 Happens every time I load the page.  About about 20 times per page load.

 First, print it ONCE, do NOT fill up the log, or the entire screen.  Rate
 Limit all your messages.

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


More information about the wp-trac mailing list