From 4d80fcb73334b1c503f5e6137963b7d45f54fbc8 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Tue, 4 May 2021 08:49:04 -0700 Subject: [PATCH] Theme: Apply coding standards. --- themes/wporg-5ftf/archive-5ftf_pledge.php | 2 +- themes/wporg-5ftf/template-parts/content-5ftf_pledge.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/wporg-5ftf/archive-5ftf_pledge.php b/themes/wporg-5ftf/archive-5ftf_pledge.php index 1b9db42..adac10a 100644 --- a/themes/wporg-5ftf/archive-5ftf_pledge.php +++ b/themes/wporg-5ftf/archive-5ftf_pledge.php @@ -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(); ?> diff --git a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php index e493098..0eca18a 100644 --- a/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php +++ b/themes/wporg-5ftf/template-parts/content-5ftf_pledge.php @@ -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 best` should keep "best" but remove the formatting. $content = wp_trim_words( $content, 55, $more_text ); $total_hours = $pledge->{ PledgeMeta\META_PREFIX . 'pledge-total-hours' };