[wp-trac] [WordPress Trac] #62454: [ wp-includes/shortcodes.php - do_shortcode() ] - fallback in case content is not a string

WordPress Trac noreply at wordpress.org
Tue Nov 19 11:07:54 UTC 2024


#62454: [ wp-includes/shortcodes.php - do_shortcode() ] - fallback in case content
is not a string
------------------------------------+------------------------------
 Reporter:  riccardodicurti         |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Shortcodes              |     Version:
 Severity:  trivial                 |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, thanks for the ticket!

 This looks similar to the discussions in #17299, #18927, #23767, and
 #27489 (those tickets are unrelated to this particular function, but they
 suggest a similar enhancement for other functions). The consensus was that
 we should not hide warnings caused by developer errors, unless there is a
 strong reason. It would just make debugging harder.

 If a valid parameter generates a warning, we should certainly fix that.
 However, in case of an invalid parameter, I think the warning (or an error
 on PHP 8.0+) is to be expected.

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


More information about the wp-trac mailing list