Theme: Apply coding standards.

This commit is contained in:
Ian Dunn 2021-05-04 08:49:04 -07:00
parent 7174ae2fb6
commit 4d80fcb733
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ if ( ! have_posts() ) {
}
$new_pledge_link = get_permalink( get_page_by_path( 'for-organizations' ) );
$pledge_order = isset( $_GET['order'] ) ? $_GET['order'] : '';
$pledge_order = isset( $_GET['order'] ) ? $_GET['order'] : '';
get_header(); ?>

View file

@ -8,7 +8,7 @@ namespace WordPressdotorg\Five_for_the_Future\Theme;
use WordPressDotOrg\FiveForTheFuture\{Contributor, PledgeMeta };
$pledge = get_post();
$data = array();
$data = array();
foreach ( PledgeMeta\get_pledge_meta_config() as $key => $config ) {
$data[ $key ] = get_post_meta( get_the_ID(), PledgeMeta\META_PREFIX . $key, $config['single'] );
@ -34,7 +34,7 @@ $more_text = sprintf(
);
$content = apply_filters( 'the_content', $data['org-description'] );
$content = strip_tags( $content );
$content = strip_tags( $content ); // phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags_strip_tags -- `we're the <strong>best</strong>` should keep "best" but remove the formatting.
$content = wp_trim_words( $content, 55, $more_text );
$total_hours = $pledge->{ PledgeMeta\META_PREFIX . 'pledge-total-hours' };