WordPress.org

Make WordPress Core

Ticket #3595: wp-links-opml.php.diff

File wp-links-opml.php.diff, 1.4 KB (added by jhodgdon, 11 years ago)

Diff file for wp-links-opml.php

  • E:/EclipseWork/WordPressDev/wp-links-opml.php

     
    2929        $cats = array (get_category($link_cat));
    3030
    3131foreach ((array) $cats as $cat) {
     32        $catname = apply_filters('link_category', $cat->cat_name);
     33
    3234?>
    33 <outline type="category" title="<?php echo attribute_escape($cat->cat_name); ?>">
     35<outline type="category" title="<?php echo attribute_escape($catname); ?>">
    3436<?php
    3537
    3638        $bookmarks = get_bookmarks("category={$cat->cat_ID}");
    3739        foreach ((array) $bookmarks as $bookmark) {
     40                $title = attribute_escape(apply_filters('link_title', $bookmark->link_name));
    3841?>
    39         <outline text="<?php echo attribute_escape($bookmark->link_name); ?>" 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; ?>" />
     42        <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; ?>" />
    4043<?php
    4144
    4245        }