Making WordPress.org


Ignore:
Timestamp:
01/12/2018 09:37:09 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Append heretofore unshown @see tags from docblocks to list at end of description.

Fixes #3165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r6259 r6383  
    13301330
    13311331        /**
     1332         * Gets list of additional resources linked via `@see` tags.
     1333         *
     1334         * @param  null|WP_Post Optional. The post.
     1335         * @return array
     1336         */
     1337        function get_see_tags( $post = null ) {
     1338                $post = get_post( $post );
     1339
     1340                $tags = get_post_meta( $post->ID, '_wp-parser_tags', true );
     1341
     1342                return wp_list_filter( $tags, array( 'name' => 'see' ) );
     1343        }
     1344
     1345        /**
    13321346         * Should the search bar be shown?
    13331347         *
Note: See TracChangeset for help on using the changeset viewer.