General: Reformat inline if () statements inside HTML tags.

This pattern occurs a handful of times across the codebase:

`<div class="foo<?php if ( $bar ) { echo ' baz'; } ?>">`

Unfortunately, it doesn't really play nicely with `phpcbf`, so all instances need to be removed in preperation for auto code formatting.

See #41057.



git-svn-id: https://develop.svn.wordpress.org/trunk@42217 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2017-11-23 04:08:42 +00:00
parent d88bb052f0
commit f797c252d9
20 changed files with 220 additions and 53 deletions
+6 -2
View File
@@ -183,6 +183,10 @@ printf( __('Comments should be displayed with the %s comments at the top of each
// the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that?
$show_avatars = get_option( 'show_avatars' );
$show_avatars_class = '';
if ( ! $show_avatars ) {
$show_avatars_class = ' hide-if-js';
}
?>
<table class="form-table">
@@ -195,7 +199,7 @@ $show_avatars = get_option( 'show_avatars' );
</label>
</fieldset></td>
</tr>
<tr class="avatar-settings<?php if ( ! $show_avatars ) echo ' hide-if-js'; ?>">
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
<th scope="row"><?php _e('Maximum Rating'); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend>
@@ -218,7 +222,7 @@ endforeach;
</fieldset></td>
</tr>
<tr class="avatar-settings<?php if ( ! $show_avatars ) echo ' hide-if-js'; ?>">
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
<th scope="row"><?php _e('Default Avatar'); ?></th>
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>