mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -627,8 +627,12 @@ wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
|
||||
do_action( 'edit_form_after_title', $post );
|
||||
|
||||
if ( post_type_supports($post_type, 'editor') ) {
|
||||
$_wp_editor_expand_class = '';
|
||||
if ( $_wp_editor_expand ) {
|
||||
$_wp_editor_expand_class = ' wp-editor-expand';
|
||||
}
|
||||
?>
|
||||
<div id="postdivrich" class="postarea<?php if ( $_wp_editor_expand ) { echo ' wp-editor-expand'; } ?>">
|
||||
<div id="postdivrich" class="postarea<?php echo $_wp_editor_expand_class; ?>">
|
||||
|
||||
<?php wp_editor( $post->post_content, 'content', array(
|
||||
'_content_editor_dfw' => $_content_editor_dfw,
|
||||
|
||||
Reference in New Issue
Block a user