CS: Fix code layout of nested function calls with associative arrays.

This commit is contained in:
jrfnl 2017-04-03 00:38:36 +02:00
parent 8cefd8f258
commit a65be48368
4 changed files with 41 additions and 7 deletions

View file

@ -19,8 +19,18 @@
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php
/* translators: 1: link to WP admin new post page. */
printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) );
printf(
wp_kses(
/* translators: 1: link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'post-new.php' ) )
);
?></p>
<?php elseif ( is_search() ) : ?>

View file

@ -29,8 +29,15 @@
<div class="entry-content">
<?php
the_content( sprintf(
/* translators: %s: Name of current post. */
wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', '_s' ), array( 'span' => array( 'class' => array() ) ) ),
wp_kses(
/* translators: %s: Name of current post. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
) );