2
2
/**
3
3
* Twenty Fourteen functions and definitions
4
4
*
5
- * Set up the theme and provides some helper functions, which are used in the
5
+ * Sets up the theme and provides some helper functions, which are used in the
6
6
* theme as custom template tags. Others are attached to action and filter
7
7
* hooks in WordPress to change core functionality.
8
8
*
@@ -223,7 +223,7 @@ function twentyfourteen_setup() {
223
223
add_action ( 'after_setup_theme ' , 'twentyfourteen_setup ' );
224
224
225
225
/**
226
- * Adjust content_width value for image attachment template.
226
+ * Adjusts content_width value for image attachment template.
227
227
*
228
228
* @since Twenty Fourteen 1.0
229
229
*/
@@ -264,7 +264,7 @@ function twentyfourteen_has_featured_posts() {
264
264
}
265
265
266
266
/**
267
- * Register three Twenty Fourteen widget areas.
267
+ * Registers three Twenty Fourteen widget areas.
268
268
*
269
269
* @since Twenty Fourteen 1.0
270
270
*/
@@ -310,7 +310,7 @@ function twentyfourteen_widgets_init() {
310
310
311
311
if ( ! function_exists ( 'twentyfourteen_font_url ' ) ) :
312
312
/**
313
- * Register Lato font for Twenty Fourteen.
313
+ * Registers Lato font for Twenty Fourteen.
314
314
*
315
315
* @since Twenty Fourteen 1.0
316
316
* @since Twenty Fourteen 3.6 Replaced Google URL with self-hosted fonts.
@@ -332,7 +332,7 @@ function twentyfourteen_font_url() {
332
332
endif ;
333
333
334
334
/**
335
- * Enqueue scripts and styles for the front end.
335
+ * Enqueues scripts and styles for the front end.
336
336
*
337
337
* @since Twenty Fourteen 1.0
338
338
*/
@@ -401,7 +401,7 @@ function twentyfourteen_scripts() {
401
401
add_action ( 'wp_enqueue_scripts ' , 'twentyfourteen_scripts ' );
402
402
403
403
/**
404
- * Enqueue font stylesheet to admin screen for custom header display.
404
+ * Enqueues font stylesheet to admin screen for custom header display.
405
405
*
406
406
* @since Twenty Fourteen 1.0
407
407
*/
@@ -412,7 +412,7 @@ function twentyfourteen_admin_fonts() {
412
412
add_action ( 'admin_print_scripts-appearance_page_custom-header ' , 'twentyfourteen_admin_fonts ' );
413
413
414
414
/**
415
- * Add preconnect for Google Fonts.
415
+ * Adds preconnect for Google Fonts.
416
416
*
417
417
* @since Twenty Fourteen 1.9
418
418
* @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted.
@@ -438,7 +438,7 @@ function twentyfourteen_resource_hints( $urls, $relation_type ) {
438
438
// add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
439
439
440
440
/**
441
- * Enqueue styles for the block-based editor.
441
+ * Enqueues styles for the block-based editor.
442
442
*
443
443
* @since Twenty Fourteen 2.3
444
444
*/
@@ -453,7 +453,7 @@ function twentyfourteen_block_editor_styles() {
453
453
454
454
if ( ! function_exists ( 'twentyfourteen_the_attached_image ' ) ) :
455
455
/**
456
- * Print the attached image with a link to the next attached image.
456
+ * Prints the attached image with a link to the next attached image.
457
457
*
458
458
* @since Twenty Fourteen 1.0
459
459
*/
@@ -521,7 +521,7 @@ function twentyfourteen_the_attached_image() {
521
521
522
522
if ( ! function_exists ( 'twentyfourteen_list_authors ' ) ) :
523
523
/**
524
- * Print a list of all site contributors who published at least one post.
524
+ * Prints a list of all site contributors who published at least one post.
525
525
*
526
526
* @since Twenty Fourteen 1.0
527
527
*/
@@ -583,7 +583,7 @@ function twentyfourteen_list_authors() {
583
583
endif ;
584
584
585
585
/**
586
- * Extend the default WordPress body classes.
586
+ * Extends the default WordPress body classes.
587
587
*
588
588
* Adds body classes to denote:
589
589
* 1. Single or multiple authors.
@@ -640,7 +640,7 @@ function twentyfourteen_body_classes( $classes ) {
640
640
add_filter ( 'body_class ' , 'twentyfourteen_body_classes ' );
641
641
642
642
/**
643
- * Extend the default WordPress post classes.
643
+ * Extends the default WordPress post classes.
644
644
*
645
645
* Adds a post class to denote:
646
646
* Non-password protected page with a post thumbnail.
@@ -660,7 +660,7 @@ function twentyfourteen_post_classes( $classes ) {
660
660
add_filter ( 'post_class ' , 'twentyfourteen_post_classes ' );
661
661
662
662
/**
663
- * Create a nicely formatted and more specific title element text for output
663
+ * Creates a nicely formatted and more specific title element text for output
664
664
* in head of document, based on current view.
665
665
*
666
666
* @since Twenty Fourteen 1.0
@@ -729,7 +729,7 @@ function twentyfourteen_widget_tag_cloud_args( $args ) {
729
729
require get_template_directory () . '/inc/customizer.php ' ;
730
730
731
731
/**
732
- * Register block patterns and pattern categories.
732
+ * Registers block patterns and pattern categories.
733
733
*
734
734
* @since Twenty Fourteen 4.1
735
735
*/
@@ -750,7 +750,7 @@ function twentyfourteen_register_block_patterns() {
750
750
}
751
751
752
752
/**
753
- * Add an `is_customize_preview` function if it is missing.
753
+ * Adds an `is_customize_preview` function if it is missing.
754
754
*
755
755
* Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
756
756
* `is_customize_preview` function was introduced.
0 commit comments