mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-16 16:43:42 +03:00
Theme: Apply coding standards.
This commit is contained in:
parent
7174ae2fb6
commit
4d80fcb733
|
@ -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(); ?>
|
||||
|
||||
|
|
|
@ -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' };
|
||||
|
|
Loading…
Reference in a new issue