Changeset 37048
- Timestamp:
- 03/22/2016 05:33:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r35927 r37048 11 11 * HTML comment list class. 12 12 * 13 * @uses Walker14 13 * @since 2.7.0 14 * 15 * @see Walker 15 16 */ 16 17 class Walker_Comment extends Walker { 18 17 19 /** 18 20 * What the class handles. 19 21 * 22 * @since 2.7.0 23 * @access public 24 * @var string 25 * 20 26 * @see Walker::$tree_type 21 *22 * @since 2.7.023 * @var string24 27 */ 25 28 public $tree_type = 'comment'; 26 29 27 30 /** 28 * DB fields to use. 31 * Database fields to use. 32 * 33 * @since 2.7.0 34 * @access public 35 * @var array 29 36 * 30 37 * @see Walker::$db_fields 31 * 32 * @since 2.7.0 33 * @var array 38 * @todo Decouple this 34 39 */ 35 40 public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID'); 36 41 37 42 /** 38 * Start the list before the elements are added. 43 * Starts the list before the elements are added. 44 * 45 * @since 2.7.0 46 * @access public 39 47 * 40 48 * @see Walker::start_lvl() 41 *42 * @since 2.7.043 *44 49 * @global int $comment_depth 45 50 * … … 65 70 66 71 /** 67 * End the list of items after the elements are added. 72 * Ends the list of items after the elements are added. 73 * 74 * @since 2.7.0 75 * @access public 68 76 * 69 77 * @see Walker::end_lvl() 70 *71 * @since 2.7.072 *73 78 * @global int $comment_depth 74 79 * … … 94 99 95 100 /** 96 * Traverse elements to create list from elements.101 * Traverses elements to create list from elements. 97 102 * 98 103 * This function is designed to enhance Walker::display_element() to … … 112 117 * 2.2 113 118 * 119 * @since 2.7.0 120 * @access public 121 * 114 122 * @see Walker::display_element() 115 123 * @see wp_list_comments() 116 *117 * @since 2.7.0118 124 * 119 125 * @param object $element Data object. … … 148 154 149 155 /** 150 * Start the element output. 151 * 152 * @since 2.7.0 156 * Starts the element output. 157 * 158 * @since 2.7.0 159 * @access public 153 160 * 154 161 * @see Walker::start_el() 155 162 * @see wp_list_comments() 156 *157 163 * @global int $comment_depth 158 164 * @global WP_Comment $comment … … 195 201 * 196 202 * @since 2.7.0 203 * @access public 197 204 * 198 205 * @see Walker::end_el() … … 218 225 219 226 /** 220 * Output a pingback comment. 221 * 227 * Outputs a pingback comment. 228 * 229 * @since 3.6.0 222 230 * @access protected 223 * @since 3.6.0224 231 * 225 232 * @see wp_list_comments() … … 240 247 241 248 /** 242 * Output a single comment. 243 * 249 * Outputs a single comment. 250 * 251 * @since 3.6.0 244 252 * @access protected 245 * @since 3.6.0246 253 * 247 254 * @see wp_list_comments() … … 299 306 300 307 /** 301 * Output a comment in the HTML5 format. 302 * 308 * Outputs a comment in the HTML5 format. 309 * 310 * @since 3.6.0 303 311 * @access protected 304 * @since 3.6.0305 312 * 306 313 * @see wp_list_comments()
Note: See TracChangeset
for help on using the changeset viewer.