Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55085 closed defect (bug) (worksforme)

Editing custom post type show warning when activate author sreen element in screen option

Reported by: code9fair Owned by:
Priority: normal Milestone:
Component: Editor Version: 5.9
Severity: normal Keywords:
Cc: Focuses:

Description (last modified by sabernhardt)

panel: Author

Warning: array_filter() expects parameter 1 to be array, null given in \wp-includes\class-wp-user-query.php on line 452

Warning: array_keys() expects parameter 1 to be array, null given in \wordpress\wp-includes\class-wp-user-query.php on line 452

Warning: in_array() expects parameter 2 to be array, null given in \wordpress\wp-includes\class-wp-user-query.php on line 455

Attachments (1)

exb.jpg​ (82.5 KB ) - added by code9fair 5 years ago.

Download all attachments as: .zip

Change History (6)

#1 follow-up: @sabernhardt
5 years ago

  • Component Posts, Post Types → Role/Capability
  • Description modified (diff)
  • Focuses administration removed

Hi and thanks for the report!

Could you test whether this happens on regular post and page types in addition to a custom post type?

I also think this involves a plugin, so please try deactivating plugins until the errors disappear to locate the problem. (You probably need to keep two: the plugin that creates the custom post type plus Classic Editor or a similar plugin.)

#2 @azouamauriac
5 years ago

  • Keywords reporter-feedback added

#3 in reply to: ↑ 1 @code9fair
5 years ago

This happen when use custom post type with plugin. But use function register_post_type of WordPress to create this custom post type.

#4 @code9fair
5 years ago

  • Keywords close added
  • Resolution → worksforme
  • Status new → closed

It's happen because has new blank line in plugin file. When remove empty line the Warning line disappear.

#5 @desrosj
5 years ago

  • Component Role/Capability → Editor
  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.