Changeset 25480
- Timestamp:
- 09/18/2013 05:30:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-links-opml.php
r25001 r25480 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 <?php 32 /** 33 * Fires in the OPML header. 34 * 35 * @since 3.0.0 36 */ 37 do_action( 'opml_head' ); 38 ?> 32 39 </head> 33 40 <body> … … 39 46 40 47 foreach ( (array)$cats as $cat ) : 41 $catname = apply_filters('link_category', $cat->name); 48 /** 49 * Filter the OPML outline link category name. 50 * 51 * @since 2.2.0 52 * 53 * @param string $catname The OPML outline category name. 54 */ 55 $catname = apply_filters( 'link_category', $cat->name ); 42 56 43 57 ?> … … 46 60 $bookmarks = get_bookmarks(array("category" => $cat->term_id)); 47 61 foreach ( (array)$bookmarks as $bookmark ) : 48 $title = apply_filters('link_title', $bookmark->link_name); 62 /** 63 * Filter the OPML outline link title text. 64 * 65 * @since 2.2.0 66 * 67 * @param string $title The OPML outline title text. 68 */ 69 $title = apply_filters( 'link_title', $bookmark->link_name ); 49 70 ?> 50 71 <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; ?>" />
Note: See TracChangeset
for help on using the changeset viewer.