Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#35813 closed defect (bug) (wontfix)

Warning during register shortcode with array tag

Reported by: sebastian.pisula Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


Warning: trim() expects parameter 1 to be string, array given in /wp-includes/shortcodes.php on line 92

I think that should be new condition:

if ( ! is_string( $tag ) ) { }

Attachments (1)

35813.patch (743 bytes) - added by sebastian.pisula 6 years ago.

Download all attachments as: .zip

Change History (2)

#1 @dd32
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Generally we leave these PHP warnings alone as a message to the Developer, we don't need to have a custom error message in these cases.

Note: See TracTickets for help on using tickets.