Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (15 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

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

    r11008 r11109  
    189189    $preview_link = clean_url( get_option('home') . '/');
    190190    $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) );
    191     $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) );
     191    $preview_text = attr( sprintf( __('Preview of "%s"'), $title ) );
    192192    $tags = $themes[$theme_name]['Tags'];
    193193    $thickbox_class = 'thickbox thickbox-preview';
    194194    $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
    195     $activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) );
     195    $activate_text = attr( sprintf( __('Activate "%s"'), $title ) );
    196196    $actions = array();
    197197    $actions[] = '<a href="' . $activate_link .  '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>';
    198     $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attribute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';
     198    $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';
    199199    if ( current_user_can('update_themes') )
    200200        $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&amp;template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>';
Note: See TracChangeset for help on using the changeset viewer.