Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55085 closed defect (bug) (worksforme)

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

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

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 2 years ago.

Download all attachments as: .zip

Change History (6)

2 years ago

#1 follow-up: @sabernhardt
2 years ago

  • Component changed from Posts, Post Types to 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
2 years ago

  • Keywords reporter-feedback added

#3 in reply to: ↑ 1 @code9fair
2 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
2 years ago

  • Keywords close added
  • Resolution set to worksforme
  • Status changed from new to closed

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

#5 @desrosj
2 years ago

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