- Timestamp:
- 07/02/2021 07:07:01 PM (4 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r51319 r51320 104 104 */ 105 105 function twenty_twenty_one_can_show_post_thumbnail() { 106 /** 107 * Filters whether post thumbnail can be displayed. 108 * 109 * @since Twenty Twenty-One 1.0 110 * 111 * @param bool $show_post_thumbnail Whether to show post thumbnail. 112 */ 106 113 return apply_filters( 107 114 'twenty_twenty_one_can_show_post_thumbnail', … … 122 129 123 130 /** 124 * Creates continue reading text 131 * Creates continue reading text. 132 * 133 * @since Twenty Twenty-One 1.0 125 134 */ 126 135 function twenty_twenty_one_continue_reading_text() { … … 135 144 136 145 /** 137 * Create the continue reading link for excerpt. 146 * Creates the continue reading link for excerpt. 147 * 148 * @since Twenty Twenty-One 1.0 138 149 */ 139 150 function twenty_twenty_one_continue_reading_link_excerpt() { … … 147 158 148 159 /** 149 * Create the continue reading link. 160 * Creates the continue reading link. 161 * 162 * @since Twenty Twenty-One 1.0 150 163 */ 151 164 function twenty_twenty_one_continue_reading_link() { … … 160 173 if ( ! function_exists( 'twenty_twenty_one_post_title' ) ) { 161 174 /** 162 * Add a title to posts and pages that are missing titles.175 * Adds a title to posts and pages that are missing titles. 163 176 * 164 177 * @since Twenty Twenty-One 1.0 … … 190 203 * Changes the default navigation arrows to svg icons 191 204 * 205 * @since Twenty Twenty-One 1.0 206 * 192 207 * @param string $calendar_output The generated HTML of the calendar. 193 208 * @return string … … 205 220 * Return CSS for non-latin language, if available, or null 206 221 * 207 * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor". 222 * @since Twenty Twenty-One 1.0 223 * 224 * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor". 208 225 * @return string 209 226 */ … … 213 230 $locale = get_bloginfo( 'language' ); 214 231 215 // Define fallback fonts for non-latin languages. 232 /** 233 * Filters the fallback fonts for non-latin languages. 234 * 235 * @since Twenty Twenty-One 1.0 236 * 237 * @param array $font_family An array of locales and font families. 238 */ 216 239 $font_family = apply_filters( 217 240 'twenty_twenty_one_get_localized_font_family_types', … … 283 306 } 284 307 285 // Define elements to apply fallback fonts to. 308 /** 309 * Filters the elements to apply fallback fonts to. 310 * 311 * @since Twenty Twenty-One 1.0 312 * 313 * @param array $elements An array of elements for "front-end", "block-editor", or "classic-editor". 314 */ 286 315 $elements = apply_filters( 287 316 'twenty_twenty_one_get_localized_font_family_elements', … … 369 398 370 399 if ( $blocks_content ) { 400 /** This filter is documented in wp-includes/post-template.php */ 371 401 echo apply_filters( 'the_content', $blocks_content ); // phpcs:ignore WordPress.Security.EscapeOutput 372 402 return true;
Note: See TracChangeset
for help on using the changeset viewer.