WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#35461 closed defect (bug) (fixed)

class-wp-plugins-list-table.php search strip_tags warning

Reported by: pross Owned by: swissspidy
Milestone: 4.5 Priority: normal
Severity: normal Version: 4.6
Component: Plugins Keywords:
Focuses: administration Cc:

Description

Searching for any string on the installed plugins page results in the following warning:

WARNING: wp-admin/includes/class-wp-plugins-list-table.php:281 - strip_tags() expects parameter 1 to be string, array given

Tested on 4.5 trunk with PHP 5.6 and PHP7

Change History (4)

#1 @swissspidy
4 years ago

#31025 already has a fix for that and is commit-ready

Last edited 4 years ago by swissspidy (previous) (diff)

#2 @swissspidy
4 years ago

  • Owner set to swissspidy
  • Status changed from new to accepted

#3 @swissspidy
4 years ago

  • Component changed from General to Plugins
  • Focuses administration added
  • Milestone changed from Awaiting Review to 4.5

#4 @swissspidy
4 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 36301:

Plugins: Prevent a warning when searching in the plugins list table.

After [36182], plugin data contains compatibility info from the API, which is an array and cannot be searched.

Fixes #35461.

Note: See TracTickets for help on using tickets.