🎨 Add trailing commas (#3032)

This commit is contained in:
Joshua Fredrickson
2022-04-27 13:27:04 -05:00
committed by GitHub
parent 828e5709e9
commit 112bec8628

View File

@@ -40,7 +40,7 @@ add_action('after_setup_theme', function () {
'clean-up', 'clean-up',
'nav-walker', 'nav-walker',
'nice-search', 'nice-search',
'relative-urls' 'relative-urls',
]); ]);
/** /**
@@ -55,7 +55,7 @@ add_action('after_setup_theme', function () {
* @link https://developer.wordpress.org/reference/functions/register_nav_menus/ * @link https://developer.wordpress.org/reference/functions/register_nav_menus/
*/ */
register_nav_menus([ register_nav_menus([
'primary_navigation' => __('Primary Navigation', 'sage') 'primary_navigation' => __('Primary Navigation', 'sage'),
]); ]);
/** /**
@@ -93,7 +93,7 @@ add_action('after_setup_theme', function () {
'gallery', 'gallery',
'search-form', 'search-form',
'script', 'script',
'style' 'style',
]); ]);
/** /**
@@ -113,16 +113,16 @@ add_action('widgets_init', function () {
'before_widget' => '<section class="widget %1$s %2$s">', 'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>', 'after_widget' => '</section>',
'before_title' => '<h3>', 'before_title' => '<h3>',
'after_title' => '</h3>' 'after_title' => '</h3>',
]; ];
register_sidebar([ register_sidebar([
'name' => __('Primary', 'sage'), 'name' => __('Primary', 'sage'),
'id' => 'sidebar-primary' 'id' => 'sidebar-primary',
] + $config); ] + $config);
register_sidebar([ register_sidebar([
'name' => __('Footer', 'sage'), 'name' => __('Footer', 'sage'),
'id' => 'sidebar-footer' 'id' => 'sidebar-footer',
] + $config); ] + $config);
}); });