Make WordPress Core


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

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-links-opml.php

    r7991 r11109  
    3030<opml version="1.0">
    3131    <head>
    32         <title>Links for <?php echo attribute_escape(get_bloginfo('name', 'display').$cat_name); ?></title>
     32        <title>Links for <?php echo attr(get_bloginfo('name', 'display').$cat_name); ?></title>
    3333        <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated>
    3434    </head>
     
    4545
    4646?>
    47 <outline type="category" title="<?php echo attribute_escape($catname); ?>">
     47<outline type="category" title="<?php echo attr($catname); ?>">
    4848<?php
    4949
    5050    $bookmarks = get_bookmarks("category={$cat->term_id}");
    5151    foreach ((array) $bookmarks as $bookmark) {
    52         $title = attribute_escape(apply_filters('link_title', $bookmark->link_name));
     52        $title = attr(apply_filters('link_title', $bookmark->link_name));
    5353?>
    54     <outline text="<?php echo $title; ?>" type="link" xmlUrl="<?php echo attribute_escape($bookmark->link_rss); ?>" htmlUrl="<?php echo attribute_escape($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" />
     54    <outline text="<?php echo $title; ?>" type="link" xmlUrl="<?php echo attr($bookmark->link_rss); ?>" htmlUrl="<?php echo attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" />
    5555<?php
    5656
Note: See TracChangeset for help on using the changeset viewer.