Making WordPress.org


Ignore:
Timestamp:
01/06/2015 06:09:30 PM (10 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Improve docblock and inline docs for make_doclink_clickable()

File:
1 edited

Legend:

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

    r1045 r1091  
    4545
    4646    /**
    47      * Makes phpDoc @link references clickable.
     47     * Makes phpDoc @see and @link references clickable.
    4848     *
    49      * Handles these five different types of links:
     49     * Handles these six different types of links:
    5050     *
    5151     * - {@link http://en.wikipedia.org/wiki/ISO_8601}
    52      * - {@link WP_Rewrite::$index}
    53      * - {@link WP_Query::query()}
    54      * - {@link esc_attr()}
     52     * - {@see WP_Rewrite::$index}
     53     * - {@see WP_Query::query()}
     54     * - {@see esc_attr()}
     55     * - {@see 'pre_get_search_form'}
    5556     * - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
     57     *
     58     * Note: Though @see and @link are semantically different in meaning, that isn't always
     59     * the case with use so this function handles them identically.
    5660     *
    5761     * @param  string $content The content.
     
    103107                else {
    104108
    105                     // Link to class variable: {@link WP_Rewrite::$index}
     109                    // Link to class variable: {@see WP_Rewrite::$index}
    106110                    if ( false !== strpos( $link, '::$' ) ) {
    107111                        // Nothing to link to currently.
    108112                    }
    109113
    110                     // Link to class method: {@link WP_Query::query()}
     114                    // Link to class method: {@see WP_Query::query()}
    111115                    elseif ( false !== strpos( $link, '::' ) ) {
    112116                        $link = '<a href="' .
     
    126130                    }
    127131
    128                     // Link to function: {@link esc_attr()}
     132                    // Link to function: {@see esc_attr()}
    129133                    else {
    130134                        $link = '<a href="' .
Note: See TracChangeset for help on using the changeset viewer.