Skip to content

Commit 9e5b97b

Browse files
committed
Fix simple liniting issues
1 parent a2420a0 commit 9e5b97b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

themes/osi/functions.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,19 @@ function osi_register_ai_menu() {
576576
}
577577
add_action( 'after_setup_theme', 'osi_register_ai_menu' );
578578

579-
function mytheme_full_width_editor( $editor_settings ) {
579+
/**
580+
* Enqueue the full-width editor styles for the AI template.
581+
*
582+
* @param array $editor_settings The editor settings.
583+
*
584+
* @return array
585+
*/
586+
function osi_full_width_editor( array $editor_settings ): array {
580587
if ( get_page_template_slug() === 'templates/ai-wide.php' ) {
581588
$editor_settings['styles'][] = array(
582589
'css' => '.wp-block { max-width: 1140px !important; }',
583590
);
584591
}
585592
return $editor_settings;
586593
}
587-
add_filter( 'block_editor_settings_all', 'mytheme_full_width_editor' );
594+
add_filter( 'block_editor_settings_all', 'osi_full_width_editor' );

themes/osi/templates/ai-wide.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main">
1313
<section class="content--page" id="content-page">
1414
<?php
15-
// get_template_part( 'template-parts/breadcrumbs' );
16-
1715
while ( have_posts() ) :
1816
the_post();
1917
get_template_part( 'template-parts/content', 'page-no-header' );

0 commit comments

Comments
 (0)