Changeset 51019
- Timestamp:
- 05/25/2021 11:42:15 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r51003 r51019 132 132 133 133 // Format strings for display. 134 foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description', 'link_notes', 'bloginfo', 'wp_title', ' widget_title' ) as $filter ) {134 foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description', 'link_notes', 'bloginfo', 'wp_title', 'document_title', 'widget_title' ) as $filter ) { 135 135 add_filter( $filter, 'wptexturize' ); 136 136 add_filter( $filter, 'convert_chars' ); … … 139 139 140 140 // Format WordPress. 141 foreach ( array( 'the_content', 'the_title', 'wp_title' ) as $filter ) {141 foreach ( array( 'the_content', 'the_title', 'wp_title', 'document_title' ) as $filter ) { 142 142 add_filter( $filter, 'capital_P_dangit', 11 ); 143 143 } -
trunk/src/wp-includes/general-template.php
r50912 r51019 1239 1239 1240 1240 $title = implode( " $sep ", array_filter( $title ) ); 1241 $title = wptexturize( $title ); 1242 $title = convert_chars( $title ); 1243 $title = esc_html( $title ); 1244 $title = capital_P_dangit( $title ); 1241 1242 /** 1243 * Filters the document title. 1244 * 1245 * @since 5.8.0 1246 * 1247 * @param string $title Document title. 1248 */ 1249 $title = apply_filters( 'document_title', $title ); 1245 1250 1246 1251 return $title;
Note: See TracChangeset
for help on using the changeset viewer.