[wp-trac] [WordPress Trac] #45929: Potential assignment to empty string

WordPress Trac noreply at wordpress.org
Wed Oct 11 06:41:44 UTC 2023


#45929: Potential assignment to empty string
-------------------------------------------------+-------------------------
 Reporter:  jugglinmike                          |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.4
Component:  Shortcodes                           |     Version:  5.0.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch changes-requested good-    |     Focuses:
  first-bug has-unit-tests close                 |
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 I don't think we should cater for cases where plugins call shortcode
 functions directly with invalid or missing arguments. Let's focus on the
 case where the parser currently returns an empty string, and make sure it
 returns an empty array instead. That's what we have #59249 for.

 So again suggesting to close this in favor of #59249

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


More information about the wp-trac mailing list