Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56709


Ignore:
Timestamp:
10/01/2022 01:05:00 PM (2 years ago)
Author:
davidbaumwald
Comment:

Hi @qq2094629698 and welcome to WordPress Trac! I did a search for this specific report, and I cannot find one that matches up exactly. So, thank you for reporting this! I am updating the ticket details for better discoverability for other contributors and users who may experience the same issue.

Tracing this in the 6.0 branch, this seems to point to https://core.trac.wordpress.org/browser/branches/6.0/src/wp-includes/formatting.php#L3415 which does implement count on a variable that could indeed be false.

Paging @jrf to see if this should be treated any differently than other type validation fixes(e.g. #54827) or attempt to track down at the source of where convert_smilies is being called.

If this requires a similar solution to #54827, we can also tag this with good-first-bug and needs-patch.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56709

    • Property Focuses ui accessibility javascript coding-standards removed
    • Property Component changed from Bootstrap/Load to Formatting
    • Property Version changed from 6.0.2 to
    • Property Keywords dev-feedback added
    • Property Severity changed from major to normal
  • Ticket #56709 – Description

    initial v1  
    1 As usual, I used the element to update the page. After clicking the update button, I clicked the update button for a few more times, and this problem occurred. The contents of my page were all gone, leaving only one line of errors, (Warning: count(): Parameter must be an array or an object that implements Countable in/www/wwwroot/www.xxxx.com/wp-includes/formatting php on line 3415
    2 
    3 )And the same is true for publishing new pages. Please help me, thank you!
     1As usual, I used the element to update the page. After clicking the update button, I clicked the update button for a few more times, and this problem occurred. The contents of my page were all gone, leaving only one line of errors, (`Warning: count(): Parameter must be an array or an object that implements Countable in/www/wwwroot/www.xxxx.com/wp-includes/formatting.php on line 3415`)And the same is true for publishing new pages. Please help me, thank you!
    42
    53I used to update the page several times every month. It used to be normal, but the problem didn't appear until today