Ticket #25229: wp-links-opml.3.diff
File wp-links-opml.3.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-links-opml.php
28 28 <head> 29 29 <title><?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?></title> 30 30 <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated> 31 <?php do_action('opml_head'); ?> 31 32 <?php 33 /** 34 * Fires in the OPML header. 35 * 36 * @since 3.0.0 37 */ 38 do_action( 'opml_head' ); 39 ?> 32 40 </head> 33 41 <body> 34 42 <?php … … 38 46 $cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat)); 39 47 40 48 foreach ( (array)$cats as $cat ) : 41 $catname = apply_filters('link_category', $cat->name);42 49 50 /** 51 * Filter the OPML outline link category name. 52 * 53 * @since 2.2.0 54 * 55 * @param string $catname The OPML outline category name. 56 */ 57 $catname = apply_filters( 'link_category', $cat->name ); 58 43 59 ?> 44 60 <outline type="category" title="<?php echo esc_attr($catname); ?>"> 45 61 <?php 46 62 $bookmarks = get_bookmarks(array("category" => $cat->term_id)); 47 63 foreach ( (array)$bookmarks as $bookmark ) : 48 $title = apply_filters('link_title', $bookmark->link_name); 64 65 /** 66 * Filter the OPML outline link title text. 67 * 68 * @since 2.2.0 69 * 70 * @param string $title The OPML outline title text. 71 */ 72 $title = apply_filters( 'link_title', $bookmark->link_name ); 49 73 ?> 50 74 <outline text="<?php echo esc_attr($title); ?>" type="link" xmlUrl="<?php echo esc_attr($bookmark->link_rss); ?>" htmlUrl="<?php echo esc_attr($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" /> 51 75 <?php