Changeset 47808 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r47219 r47808 64 64 global $shortcode_tags; 65 65 66 if ( '' == trim( $tag ) ) {66 if ( '' === trim( $tag ) ) { 67 67 $message = __( 'Invalid shortcode name: Empty name given.' ); 68 68 _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); … … 387 387 388 388 foreach ( $textarr as &$element ) { 389 if ( '' == $element || '<' !== $element[0] ) {389 if ( '' === $element || '<' !== $element[0] ) { 390 390 continue; 391 391 } … … 512 512 * @param string $text 513 513 * @return array|string List of attribute values. 514 * Returns empty array if trim( $text ) == '""'.515 * Returns empty string if trim( $text ) == ''.514 * Returns empty array if '""' === trim( $text ). 515 * Returns empty string if '' === trim( $text ). 516 516 * All other matches are checked for not empty(). 517 517 */
Note: See TracChangeset
for help on using the changeset viewer.