Changeset 1091 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
- Timestamp:
- 01/06/2015 06:09:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r1045 r1091 45 45 46 46 /** 47 * Makes phpDoc @ link references clickable.47 * Makes phpDoc @see and @link references clickable. 48 48 * 49 * Handles these fivedifferent types of links:49 * Handles these six different types of links: 50 50 * 51 51 * - {@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'} 55 56 * - {@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. 56 60 * 57 61 * @param string $content The content. … … 103 107 else { 104 108 105 // Link to class variable: {@ linkWP_Rewrite::$index}109 // Link to class variable: {@see WP_Rewrite::$index} 106 110 if ( false !== strpos( $link, '::$' ) ) { 107 111 // Nothing to link to currently. 108 112 } 109 113 110 // Link to class method: {@ linkWP_Query::query()}114 // Link to class method: {@see WP_Query::query()} 111 115 elseif ( false !== strpos( $link, '::' ) ) { 112 116 $link = '<a href="' . … … 126 130 } 127 131 128 // Link to function: {@ linkesc_attr()}132 // Link to function: {@see esc_attr()} 129 133 else { 130 134 $link = '<a href="' .
Note: See TracChangeset
for help on using the changeset viewer.