Code Duplication    Length = 11-12 lines in 2 locations

inc/template-tags.php 1 location

@@ 278-289 (lines=12) @@
275
add_action( 'widgets_init', 'footer_widgets_init' );
276
277
//Blog sidebar widgets
278
function blog_widgets_init() {
279
280
		register_sidebar( array(
281
		'name' => 'Blog Sidebar',
282
		'description'   => __( 'Widgets displayed at blog page.', 'lighthouse' ),
283
		'id' => 'blog_widgets',
284
		'before_widget' => '<div id="%1$s" class="widget %2$s">',
285
		'after_widget' => '</div>',
286
		'before_title' => '<h3 class="widget-title">',
287
		'after_title' => '</h3>',
288
	) );
289
}
290
add_action( 'widgets_init', 'blog_widgets_init' );

functions.php 1 location

@@ 126-136 (lines=11) @@
123
 *
124
 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
125
 */
126
function lighthouse_widgets_init() {
127
	register_sidebar( array(
128
		'name'          => esc_html__( 'Sidebar', 'lighthouse' ),
129
		'id'            => 'sidebar-1',
130
		'description'   => '',
131
		'before_widget' => '<section id="%1$s" class="widget %2$s">',
132
		'after_widget'  => '</section>',
133
		'before_title'  => '<h2 class="widget-title">',
134
		'after_title'   => '</h2>',
135
	) );
136
}
137
add_action( 'widgets_init', 'lighthouse_widgets_init' );
138
139
/**