WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2017 04:08:42 AM (20 months ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r42112 r42217  
    17031703    }
    17041704    _e('If you do not remember your credentials, you should contact your web host.');
     1705
     1706    $password_value = '';
     1707    if ( defined('FTP_PASS') ) {
     1708        $password_value = '*****';
     1709    }
    17051710?></p>
    17061711<label for="hostname">
     
    17171722    <label for="password">
    17181723        <span class="field-title"><?php echo $label_pass; ?></span>
    1719         <input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> />
     1724        <input name="password" type="password" id="password" value="<?php echo $password_value; ?>"<?php disabled( defined('FTP_PASS') ); ?> />
    17201725        <em><?php if ( ! defined('FTP_PASS') ) _e( 'This password will not be stored on the server.' ); ?></em>
    17211726    </label>
Note: See TracChangeset for help on using the changeset viewer.