Ticket #48906: 48906.diff
| File 48906.diff, 2.5 KB (added by , 6 years ago) |
|---|
-
src/wp-content/themes/twentytwenty/inc/template-tags.php
263 263 * @type string 'author' 264 264 * @type string 'post-date' 265 265 * @type string 'comments' 266 * @type string 'sticky'266 * @type string 'sticky' 267 267 * } 268 268 */ 269 $post_meta = apply_filters(269 $post_meta = apply_filters( 270 270 'twentytwenty_post_meta_location_single_top', 271 271 array( 272 272 'author', … … 275 275 'sticky', 276 276 ) 277 277 ); 278 278 279 $post_meta_wrapper_classes = ' post-meta-single post-meta-single-top'; 279 280 280 281 } elseif ( 'single-bottom' === $location ) { … … 290 291 * @type string 'tags' 291 292 * } 292 293 */ 293 $post_meta = apply_filters(294 $post_meta = apply_filters( 294 295 'twentytwenty_post_meta_location_single_bottom', 295 296 array( 296 297 'tags', 297 298 ) 298 299 ); 300 299 301 $post_meta_wrapper_classes = ' post-meta-single post-meta-single-bottom'; 300 302 301 303 } … … 326 328 * Allow output of additional post meta info to be added by child themes and plugins. 327 329 * 328 330 * @since Twenty Twenty 1.0 331 * @since Twenty Twenty 1.1 Added the `$post_meta` and `$location` parameters. 329 332 * 330 * @param int $post_ID Post ID. 333 * @param int $post_id Post ID. 334 * @param array $post_meta An array of post meta information. 335 * @param string $location The location where the meta is shown. 336 * Accepts 'single-top' or 'single-bottom'. 331 337 */ 332 do_action( 'twentytwenty_start_of_post_meta_list', $post_id );338 do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location ); 333 339 334 340 // Author. 335 341 if ( in_array( 'author', $post_meta, true ) ) { … … 449 455 * Allow output of additional post meta info to be added by child themes and plugins. 450 456 * 451 457 * @since Twenty Twenty 1.0 458 * @since Twenty Twenty 1.1 Added the `$post_meta` and `$location` parameters. 452 459 * 453 * @param int $post_ID Post ID. 460 * @param int $post_id Post ID. 461 * @param array $post_meta An array of post meta information. 462 * @param string $location The location where the meta is shown. 463 * Accepts 'single-top' or 'single-bottom'. 454 464 */ 455 do_action( 'twentytwenty_end_of_post_meta_list', $post_id );465 do_action( 'twentytwenty_end_of_post_meta_list', $post_id, $post_meta, $location ); 456 466 457 467 ?> 458 468