Skip to content

Commit 29ff2f8

Browse files
committed
Twenty Twenty-Five: Remove redundant comments for conditionally-defined functions.
This also improves consistency with other themes. Follow-up to [59146]. Fixes #64265. See #64226. Props hbhalodia, huzaifaalmesbah. git-svn-id: https://develop.svn.wordpress.org/trunk@61272 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6663b8d commit 29ff2f8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/wp-content/themes/twentytwentyfive/functions.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* @since Twenty Twenty-Five 1.0
1010
*/
1111

12-
// Adds theme support for post formats.
1312
if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) :
1413
/**
1514
* Adds theme support for post formats.
@@ -24,7 +23,6 @@ function twentytwentyfive_post_format_setup() {
2423
endif;
2524
add_action( 'after_setup_theme', 'twentytwentyfive_post_format_setup' );
2625

27-
// Enqueues editor-style.css in the editors.
2826
if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) :
2927
/**
3028
* Enqueues editor-style.css in the editors.
@@ -39,7 +37,6 @@ function twentytwentyfive_editor_style() {
3937
endif;
4038
add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' );
4139

42-
// Enqueues the theme stylesheet on the front.
4340
if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) :
4441
/**
4542
* Enqueues the theme stylesheet on the front.
@@ -67,7 +64,6 @@ function twentytwentyfive_enqueue_styles() {
6764
endif;
6865
add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );
6966

70-
// Registers custom block styles.
7167
if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) :
7268
/**
7369
* Registers custom block styles.
@@ -96,7 +92,6 @@ function twentytwentyfive_block_styles() {
9692
endif;
9793
add_action( 'init', 'twentytwentyfive_block_styles' );
9894

99-
// Registers pattern categories.
10095
if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) :
10196
/**
10297
* Registers pattern categories.
@@ -126,7 +121,6 @@ function twentytwentyfive_pattern_categories() {
126121
endif;
127122
add_action( 'init', 'twentytwentyfive_pattern_categories' );
128123

129-
// Registers block binding sources.
130124
if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) :
131125
/**
132126
* Registers the post format block binding source.
@@ -147,7 +141,6 @@ function twentytwentyfive_register_block_bindings() {
147141
endif;
148142
add_action( 'init', 'twentytwentyfive_register_block_bindings' );
149143

150-
// Registers block binding callback function for the post format name.
151144
if ( ! function_exists( 'twentytwentyfive_format_binding' ) ) :
152145
/**
153146
* Callback function for the post format name block binding source.

0 commit comments

Comments
 (0)