WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43312, comment 1


Ignore:
Timestamp:
02/14/2018 10:23:52 AM (20 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43312, comment 1

    initial v1  
    11Hi @andrei0x309, welcome to WordPress Trac! Thanks for the report.
    22
    3 To clarify, the suggested change is to replace `count( $allowed_html[ strtolower( $element ) ] ) == 0` with `empty( $allowed_html[ strtolower( $element ) ] )`.
     3To clarify, the warning is `Warning: count(): Parameter must be an array or an object that implements Countable`, and the suggested change is to replace `count( $allowed_html[ strtolower( $element ) ] ) == 0` with `empty( $allowed_html[ strtolower( $element ) ] )`,