mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user