mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-23 19:33:44 +03:00
Auto-fix some PHPCS errors
This commit is contained in:
parent
bb12bce7ab
commit
bd9019556b
|
@ -29,13 +29,13 @@ function get_pledge_meta_config( $context = '' ) {
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_text_field',
|
'sanitize_callback' => 'sanitize_text_field',
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_SANITIZE_STRING
|
'php_filter' => FILTER_SANITIZE_STRING,
|
||||||
),
|
),
|
||||||
'org-name' => array(
|
'org-name' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_text_field',
|
'sanitize_callback' => 'sanitize_text_field',
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'php_filter' => FILTER_SANITIZE_STRING
|
'php_filter' => FILTER_SANITIZE_STRING,
|
||||||
),
|
),
|
||||||
'org-url' => array(
|
'org-url' => array(
|
||||||
'single' => true,
|
'single' => true,
|
||||||
|
@ -47,7 +47,7 @@ function get_pledge_meta_config( $context = '' ) {
|
||||||
'single' => true,
|
'single' => true,
|
||||||
'sanitize_callback' => 'sanitize_email',
|
'sanitize_callback' => 'sanitize_email',
|
||||||
'show_in_rest' => false,
|
'show_in_rest' => false,
|
||||||
'php_filter' => FILTER_VALIDATE_EMAIL
|
'php_filter' => FILTER_VALIDATE_EMAIL,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* This file handles the operations related to setting up a custom post type. We change change the filename, namespace,
|
* This file handles the operations related to setting up a custom post type. We change change the filename,
|
||||||
* etc. once we have a better idea of what the CPT will be called.
|
* namespace, etc. once we have a better idea of what the CPT will be called.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// todo normalize text domain across all files
|
// todo normalize text domain across all files
|
||||||
|
|
|
@ -60,7 +60,7 @@ function enqueue_scripts() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$inline_script = sprintf( "var fiveFutureCompanies = %s;", wp_json_encode( $companies ) );
|
$inline_script = sprintf( 'var fiveFutureCompanies = %s;', wp_json_encode( $companies ) );
|
||||||
|
|
||||||
wp_enqueue_style( '5ftf-front-end' );
|
wp_enqueue_style( '5ftf-front-end' );
|
||||||
wp_enqueue_script( '5ftf-list' );
|
wp_enqueue_script( '5ftf-list' );
|
||||||
|
@ -78,7 +78,7 @@ function render_shortcode() {
|
||||||
// If this is reached, then refactor the page to lazy-load, etc.
|
// If this is reached, then refactor the page to lazy-load, etc.
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
require_once( dirname( __DIR__ ) . '/views/front-end.php' );
|
require_once dirname( __DIR__ ) . '/views/front-end.php';
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<section class="people">
|
<section class="people">
|
||||||
<h3>
|
<h3>
|
||||||
<?php _e( "Thank you to all of the companies that participate in Five for the Future.", 'wordpressdotorg' ); ?>
|
<?php _e( 'Thank you to all of the companies that participate in Five for the Future.', 'wordpressdotorg' ); ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<?php /*
|
<?php /*
|
||||||
|
|
Loading…
Reference in a new issue