Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

#62691 closed defect (bug) (duplicate)

convert_smilies has an Uncaught TypeError

Reported by: roybellingan's profile roybellingan Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7.1
Component: Formatting Keywords:
Focuses: Cc:

Description

Latest wordpress still has this bug
https://wordpress.stackexchange.com/a/409087

I would suggest to use something like

<?php
                if(! ($value instanceof Countable)){
                        $stop = 0;
                }else{
                        $stop    = count( $textarr ); // Loop stuff.
                }

Change History (2)

#1 @roybellingan
4 weeks ago

Sorry forget to say this is in wp-includes/formatting.php around line 3840

#2 @SergeyBiryukov
4 weeks ago

  • Component changed from General to Formatting
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #51019.

Note: See TracTickets for help on using tickets.