mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
Theme: Apply coding standards
This commit is contained in:
parent
019b814675
commit
add3f255fb
|
@ -125,7 +125,7 @@ function scripts() {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'wporg-style',
|
'wporg-style',
|
||||||
get_theme_file_uri( '/css/style.css' ),
|
get_theme_file_uri( '/css/style.css' ),
|
||||||
[ 'dashicons', 'open-sans' ],
|
array( 'dashicons', 'open-sans' ),
|
||||||
filemtime( __DIR__ . '/css/style.css' )
|
filemtime( __DIR__ . '/css/style.css' )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ add_action( 'wp_body_open', __NAMESPACE__ . '\nojs_body_tag' );
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function loader_src( $src, $handle ) {
|
function loader_src( $src, $handle ) {
|
||||||
$cdn_urls = [
|
$cdn_urls = array(
|
||||||
'dashicons',
|
'dashicons',
|
||||||
'wp-embed',
|
'wp-embed',
|
||||||
'jquery-core',
|
'jquery-core',
|
||||||
|
@ -205,7 +205,7 @@ function loader_src( $src, $handle ) {
|
||||||
'wporg-plugins-stats',
|
'wporg-plugins-stats',
|
||||||
'wporg-plugins-client',
|
'wporg-plugins-client',
|
||||||
'wporg-plugins-faq',
|
'wporg-plugins-faq',
|
||||||
];
|
);
|
||||||
|
|
||||||
if ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ) {
|
if ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ) {
|
||||||
return $src;
|
return $src;
|
||||||
|
@ -217,7 +217,7 @@ function loader_src( $src, $handle ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove version argument.
|
// Remove version argument.
|
||||||
if ( in_array( $handle, [ 'open-sans' ], true ) ) {
|
if ( in_array( $handle, array( 'open-sans' ), true ) ) {
|
||||||
$src = remove_query_arg( 'ver', $src );
|
$src = remove_query_arg( 'ver', $src );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue