Changeset 53157 for trunk/src/wp-includes/blocks/post-navigation-link.php
- Timestamp:
- 04/12/2022 03:10:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-navigation-link.php
r52069 r53157 19 19 } 20 20 21 // Get the na gigation type to show the proper link. Available options are `next|previous`.21 // Get the navigation type to show the proper link. Available options are `next|previous`. 22 22 $navigation_type = isset( $attributes['type'] ) ? $attributes['type'] : 'next'; 23 23 // Allow only `next` and `previous` in `$navigation_type`. … … 50 50 if ( ! $attributes['linkLabel'] ) { 51 51 if ( $label ) { 52 $format = '<span class="post-navigation-link__label">' . $label. '</span> %link';52 $format = '<span class="post-navigation-link__label">' . wp_kses_post( $label ) . '</span> %link'; 53 53 } 54 54 $link = '%title'; … … 56 56 // If the label link option is enabled and there is a custom label, display it before the title. 57 57 if ( $label ) { 58 $link = '<span class="post-navigation-link__label">' . $label . '</span> <span class="post-navigation-link__title">%title</title>';58 $link = '<span class="post-navigation-link__label">' . wp_kses_post( $label ) . '</span> <span class="post-navigation-link__title">%title</span>'; 59 59 } else { 60 60 /* … … 65 65 $link = sprintf( 66 66 '<span class="post-navigation-link__label">%1$s</span> <span class="post-navigation-link__title">%2$s</span>', 67 $label,67 wp_kses_post( $label ), 68 68 '%title' 69 69 );
Note: See TracChangeset
for help on using the changeset viewer.