Changeset 61436
- Timestamp:
- 01/05/2026 06:02:34 AM (7 days ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
-
formatting.php (modified) (2 diffs)
-
kses.php (modified) (1 diff)
-
shortcodes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r61273 r61436 2643 2643 $tag = strtolower( $tag_name ); 2644 2644 $is_single_tag = in_array( $tag, $single_tags, true ); 2645 $pre_attribute_ws = isset( $regex[4] ) ? $regex[4] :'';2646 $attributes = trim( isset( $regex[5] ) ? $regex[5] :$regex[3] );2645 $pre_attribute_ws = $regex[4] ?? ''; 2646 $attributes = trim( $regex[5] ?? $regex[3] ); 2647 2647 $has_self_closer = str_ends_with( $attributes, '/' ); 2648 2648 … … 5284 5284 if ( preg_match( '/^%(\d+)\$/', $fragment, $matches ) ) { 5285 5285 $index = $matches[1] - 1; // 0-based array vs 1-based sprintf() arguments. 5286 $arg = isset( $args[ $index ] ) ? $args[ $index ] :'';5286 $arg = $args[ $index ] ?? ''; 5287 5287 $fragment = str_replace( "%{$matches[1]}$", '%', $fragment ); 5288 5288 } else { 5289 $arg = isset( $args[ $arg_index ] ) ? $args[ $arg_index ] :'';5289 $arg = $args[ $arg_index ] ?? ''; 5290 5290 ++$arg_index; 5291 5291 } -
trunk/src/wp-includes/kses.php
r61051 r61436 3034 3034 $upload_info = wp_upload_dir( null, false ); 3035 3035 $parsed_url = wp_parse_url( $upload_info['url'] ); 3036 $upload_host = isset( $parsed_url['host'] ) ? $parsed_url['host'] :'';3036 $upload_host = $parsed_url['host'] ?? ''; 3037 3037 $upload_port = isset( $parsed_url['port'] ) ? ':' . $parsed_url['port'] : ''; 3038 3038 -
trunk/src/wp-includes/shortcodes.php
r61139 r61436 430 430 } 431 431 432 $content = isset( $m[5] ) ? $m[5] :null;432 $content = $m[5] ?? null; 433 433 434 434 $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
Note: See TracChangeset
for help on using the changeset viewer.