mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +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:
+12
-3
@@ -166,7 +166,16 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
|
||||
) );
|
||||
?>
|
||||
</p>
|
||||
<?php endif; // Languages. ?>
|
||||
<?php
|
||||
endif; // Languages.
|
||||
|
||||
$blog_public_on_checked = $blog_public_off_checked = '';
|
||||
if ( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) {
|
||||
$blog_public_off_checked = 'checked="checked"';
|
||||
} else {
|
||||
$blog_public_on_checked = 'checked="checked"';
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="privacy">
|
||||
<p class="privacy-intro">
|
||||
@@ -174,11 +183,11 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
|
||||
<?php _e( 'Allow search engines to index this site.' ); ?>
|
||||
<br style="clear:both" />
|
||||
<label class="checkbox" for="blog_public_on">
|
||||
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> />
|
||||
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php echo $blog_public_on_checked; ?> />
|
||||
<strong><?php _e( 'Yes' ); ?></strong>
|
||||
</label>
|
||||
<label class="checkbox" for="blog_public_off">
|
||||
<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if ( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> />
|
||||
<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php echo $blog_public_off_checked; ?> />
|
||||
<strong><?php _e( 'No' ); ?></strong>
|
||||
</label>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user