Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r11180 r11204  
    140140                    <?php
    141141                        foreach ( (array)$plugins as $plugin )
    142                             echo '<input type="hidden" name="checked[]" value="' . attr($plugin) . '" />';
     142                            echo '<input type="hidden" name="checked[]" value="' . esc_attr($plugin) . '" />';
    143143                    ?>
    144144                    <?php wp_nonce_field('bulk-manage-plugins') ?>
    145                     <input type="submit" name="submit" value="<?php _ea('Yes, Delete these files') ?>" class="button" />
     145                    <input type="submit" name="submit" value="<?php esc_attr_e('Yes, Delete these files') ?>" class="button" />
    146146                </form>
    147147                <form method="post" action="<?php echo clean_url(wp_get_referer()); ?>" style="display:inline;">
    148                     <input type="submit" name="submit" value="<?php _ea('No, Return me to the plugin list') ?>" class="button" />
     148                    <input type="submit" name="submit" value="<?php esc_attr_e('No, Return me to the plugin list') ?>" class="button" />
    149149                </form>
    150150
     
    195195    <?php
    196196        if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
    197     <iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&amp;plugin=' . attr($plugin) . '&amp;_wpnonce=' . attr($_GET['_error_nonce'])); ?>"></iframe>
     197    <iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&amp;plugin=' . esc_attr($plugin) . '&amp;_wpnonce=' . esc_attr($_GET['_error_nonce'])); ?>"></iframe>
    198198    <?php
    199199        }
     
    370370        echo "
    371371    <tr class='$class'>
    372         <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attr($plugin_file) . "' /></th>
     372        <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>
    373373        <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>";
    374374        $i = 0;
     
    414414    <?php endif; ?>
    415415        </select>
    416         <input type="submit" name="doaction_active" value="<?php _ea('Apply'); ?>" class="button-secondary action" />
     416        <input type="submit" name="doaction_active" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary action" />
    417417    <?php if( 'recent' == $context ) : ?>
    418         <input type="submit" name="clear-recent-list" value="<?php _ea('Clear List') ?>" class="button-secondary" />
     418        <input type="submit" name="clear-recent-list" value="<?php esc_attr_e('Clear List') ?>" class="button-secondary" />
    419419    <?php endif; ?>
    420420    </div>
     
    427427    <label class="invisible" for="plugin-search-input"><?php _e( 'Search Plugins' ); ?>:</label>
    428428    <input type="text" id="plugin-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    429     <input type="submit" value="<?php _ea( 'Search Plugins' ); ?>" class="button" />
     429    <input type="submit" value="<?php esc_attr_e( 'Search Plugins' ); ?>" class="button" />
    430430</p>
    431431</form>
     
    433433<form method="post" action="<?php echo admin_url('plugins.php') ?>">
    434434<?php wp_nonce_field('bulk-manage-plugins') ?>
    435 <input type="hidden" name="plugin_status" value="<?php echo attr($status) ?>" />
    436 <input type="hidden" name="paged" value="<?php echo attr($page) ?>" />
     435<input type="hidden" name="plugin_status" value="<?php echo esc_attr($status) ?>" />
     436<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
    437437
    438438<ul class="subsubsub">
Note: See TracChangeset for help on using the changeset viewer.