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

View File

@@ -1702,6 +1702,11 @@ echo "<$heading_tag id='request-filesystem-credentials-title'>" . __( 'Connectio
echo ' ';
}
_e('If you do not remember your credentials, you should contact your web host.');
$password_value = '';
if ( defined('FTP_PASS') ) {
$password_value = '*****';
}
?></p>
<label for="hostname">
<span class="field-title"><?php _e( 'Hostname' ) ?></span>
@@ -1716,7 +1721,7 @@ echo "<$heading_tag id='request-filesystem-credentials-title'>" . __( 'Connectio
<div class="ftp-password">
<label for="password">
<span class="field-title"><?php echo $label_pass; ?></span>
<input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> />
<input name="password" type="password" id="password" value="<?php echo $password_value; ?>"<?php disabled( defined('FTP_PASS') ); ?> />
<em><?php if ( ! defined('FTP_PASS') ) _e( 'This password will not be stored on the server.' ); ?></em>
</label>
</div>