mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-19 09:53:44 +03:00
Fix phpcs errors
This commit is contained in:
parent
a5bf51cc58
commit
30b7c0786e
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace WordPressdotorg\Five_for_the_Future\Theme;
|
namespace WordPressdotorg\Five_for_the_Future\Theme;
|
||||||
|
|
||||||
// If we don't have any posts to display for the archive, then send a 404 status. See #meta4151
|
// If we don't have any posts to display for the archive, then send a 404 status. See #meta4151.
|
||||||
if ( ! have_posts() ) {
|
if ( ! have_posts() ) {
|
||||||
status_header( 404 );
|
status_header( 404 );
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
|
@ -64,7 +64,7 @@ function setup() {
|
||||||
'core/group',
|
'core/group',
|
||||||
array(
|
array(
|
||||||
'name' => 'wporg-parallelogram',
|
'name' => 'wporg-parallelogram',
|
||||||
'label' => __( 'Parallelogram' ),
|
'label' => __( 'Parallelogram', 'wporg-5ftf' ),
|
||||||
'style_handle' => 'wporg-style',
|
'style_handle' => 'wporg-style',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -73,14 +73,12 @@ function setup() {
|
||||||
'core/paragraph',
|
'core/paragraph',
|
||||||
array(
|
array(
|
||||||
'name' => 'wporg-tldr',
|
'name' => 'wporg-tldr',
|
||||||
'label' => __( 'TL;DR summary paragraph' ),
|
'label' => __( 'Summary paragraph', 'wporg-5ftf' ),
|
||||||
'style_handle' => 'wporg-style',
|
'style_handle' => 'wporg-style',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// todo also setup block styles for other things, like the quote symbol, etc.
|
||||||
// todo also setup block styles for other things, like the quote symbol, etc
|
|
||||||
|
|
||||||
}
|
}
|
||||||
add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
|
add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@ namespace WordPressdotorg\Five_for_the_Future\Theme;
|
||||||
global $wporg_global_header_options;
|
global $wporg_global_header_options;
|
||||||
$GLOBALS['pagetitle'] = wp_get_document_title();
|
$GLOBALS['pagetitle'] = wp_get_document_title();
|
||||||
|
|
||||||
if ( ! isset( $wporg_global_header_options[ 'in_wrapper' ] ) ) {
|
if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
|
||||||
$wporg_global_header_options[ 'in_wrapper' ] = '';
|
$wporg_global_header_options['in_wrapper'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$wporg_global_header_options[ 'in_wrapper' ] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-5ftf' ) . '</a>';
|
$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-5ftf' ) . '</a>';
|
||||||
|
|
||||||
require WPORGPATH . 'header.php';
|
require WPORGPATH . 'header.php';
|
||||||
|
|
||||||
|
@ -48,10 +48,12 @@ require WPORGPATH . 'header.php';
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div id="primary-menu" class="menu">
|
<div id="primary-menu" class="menu">
|
||||||
<?php wp_nav_menu( array(
|
<?php
|
||||||
|
wp_nav_menu( array(
|
||||||
'theme_location' => 'primary',
|
'theme_location' => 'primary',
|
||||||
'menu_id' => 'primary-menu',
|
'menu_id' => 'primary-menu',
|
||||||
) ); ?>
|
) );
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</nav><!-- #site-navigation -->
|
</nav><!-- #site-navigation -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in a new issue