mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +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:
@@ -91,14 +91,16 @@ $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : -1;
|
||||
function setup_config_display_header( $body_classes = array() ) {
|
||||
$body_classes = (array) $body_classes;
|
||||
$body_classes[] = 'wp-core-ui';
|
||||
$dir_attr = '';
|
||||
if ( is_rtl() ) {
|
||||
$body_classes[] = 'rtl';
|
||||
$dir_attr = ' dir="rtl"';
|
||||
}
|
||||
|
||||
header( 'Content-Type: text/html; charset=utf-8' );
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
Reference in New Issue
Block a user