Changeset 56021
- Timestamp:
- 06/25/2023 10:48:28 AM (5 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r56005 r56021 804 804 $result = ''; 805 805 806 if ( false !== strpos( $text, '<!--' ) && false !== strpos( $text, '--->' ) ) {806 if ( str_contains( $text, '<!--' ) && str_contains( $text, '--->' ) ) { 807 807 $text = preg_replace_callback( '%<!--(.*?)--->%', '_filter_block_content_callback', $text ); 808 808 } -
trunk/src/wp-includes/formatting.php
r55990 r56021 4464 4464 * starting with /, # or ?, or a PHP file). 4465 4465 */ 4466 if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '/', '#', '?' ), true ) && 4467 ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) ) { 4466 if ( ! str_contains( $url, ':' ) && ! in_array( $url[0], array( '/', '#', '?' ), true ) && 4467 ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) 4468 ) { 4468 4469 $url = 'http://' . $url; 4469 4470 } -
trunk/src/wp-includes/link-template.php
r56019 r56021 223 223 224 224 $category = ''; 225 if ( str pos( $permalink, '%category%' ) !== false) {225 if ( str_contains( $permalink, '%category%' ) ) { 226 226 $cats = get_the_category( $post->ID ); 227 227 if ( $cats ) { … … 261 261 262 262 $author = ''; 263 if ( str pos( $permalink, '%author%' ) !== false) {263 if ( str_contains( $permalink, '%author%' ) ) { 264 264 $authordata = get_userdata( $post->post_author ); 265 265 $author = $authordata->user_nicename; … … 503 503 } 504 504 505 if ( strpos( $parentlink, '?' ) === false) {505 if ( ! str_contains( $parentlink, '?' ) ) { 506 506 $link = user_trailingslashit( trailingslashit( $parentlink ) . '%postname%' ); 507 507 }
Note: See TracChangeset
for help on using the changeset viewer.