Make WordPress Core

Changeset 25480


Ignore:
Timestamp:
09/18/2013 05:30:23 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Inline documentation for hooks in wp-links-opml.php.

props netweb.
see #25229.

File:
1 edited

Legend:

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

    r25001 r25480  
    2929        <title><?php printf( __('Links for %s'), esc_attr(get_bloginfo('name', 'display')) ); ?></title>
    3030        <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        ?>
    3239    </head>
    3340    <body>
     
    3946
    4047foreach ( (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 );
    4256
    4357?>
     
    4660    $bookmarks = get_bookmarks(array("category" => $cat->term_id));
    4761    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 );
    4970?>
    5071    <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.