Make WordPress Core

Changeset 25588


Ignore:
Timestamp:
09/23/2013 11:28:41 PM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for the Walker_Comment class in wp-includes/comment-template.php

Fixes #25388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r25584 r25588  
    14741474class Walker_Comment extends Walker {
    14751475    /**
     1476     * What the class handles.
     1477     *
    14761478     * @see Walker::$tree_type
     1479     *
    14771480     * @since 2.7.0
    14781481     * @var string
     
    14811484
    14821485    /**
     1486     * DB fields to use.
     1487     *
    14831488     * @see Walker::$db_fields
     1489     *
    14841490     * @since 2.7.0
    14851491     * @var array
     
    14881494
    14891495    /**
     1496     * Start the list before the elements are added.
     1497     *
    14901498     * @see Walker::start_lvl()
     1499     *
    14911500     * @since 2.7.0
    14921501     *
     
    15121521
    15131522    /**
     1523     * End the list of items after the elements are added.
     1524     *
    15141525     * @see Walker::end_lvl()
     1526     *
    15151527     * @since 2.7.0
    15161528     *
    15171529     * @param string $output Passed by reference. Used to append additional content.
    1518      * @param int $depth Depth of comment.
    1519      * @param array $args Will only append content if style argument value is 'ol' or 'ul'.
     1530     * @param int    $depth Depth of comment.
     1531     * @param array  $args  Will only append content if style argument value is 'ol' or 'ul'.
    15201532     */
    15211533    function end_lvl( &$output, $depth = 0, $args = array() ) {
     
    15361548
    15371549    /**
     1550     * Traverse elements to create list from elements.
     1551     *
    15381552     * This function is designed to enhance Walker::display_element() to
    15391553     * display children of higher nesting levels than selected inline on
     
    15521566     *  2.2
    15531567     *
     1568     * @see Walker::display_element()
     1569     *
     1570     * @since 2.7.0
     1571     *
     1572     * @param object $element           Data object.
     1573     * @param array  $children_elements List of elements to continue traversing.
     1574     * @param int    $max_depth         Max depth to traverse.
     1575     * @param int    $depth             Depth of current element.
     1576     * @param array  $args              An array of arguments. @see wp_list_comments()
     1577     * @param string $output            Passed by reference. Used to append additional content.
     1578     * @return null Null on failure with no changes to parameters.
    15541579     */
    15551580    function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
     
    15751600
    15761601    /**
     1602     * Start the element output.
     1603     *
    15771604     * @see Walker::start_el()
     1605     *
    15781606     * @since 2.7.0
    15791607     *
    1580      * @param string $output Passed by reference. Used to append additional content.
     1608     * @param string $output  Passed by reference. Used to append additional content.
    15811609     * @param object $comment Comment data object.
    1582      * @param int $depth Depth of comment in reference to parents.
    1583      * @param array $args
     1610     * @param int    $depth  Depth of comment in reference to parents.
     1611     * @param array  $args    An array of arguments. @see wp_list_comments()
    15841612     */
    15851613    function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
     
    16031631
    16041632    /**
     1633     * Ends the element output, if needed.
     1634     *
    16051635     * @see Walker::end_el()
     1636     *
    16061637     * @since 2.7.0
    16071638     *
    1608      * @param string $output Passed by reference. Used to append additional content.
    1609      * @param object $comment
    1610      * @param int $depth Depth of comment.
    1611      * @param array $args
     1639     * @param string $output  Passed by reference. Used to append additional content.
     1640     * @param object $comment The comment object. Default current comment.
     1641     * @param int    $depth  Depth of comment.
     1642     * @param array  $args    An array of arguments. @see wp_list_comments()
    16121643     */
    16131644    function end_el( &$output, $comment, $depth = 0, $args = array() ) {
     
    16231654
    16241655    /**
    1625      * @since 3.6
     1656     * Output a pingback comment.
     1657     *
    16261658     * @access protected
    1627      *
    1628      * @param object $comment
    1629      * @param int $depth Depth of comment.
    1630      * @param array $args
     1659     * @since 3.6.0
     1660     *
     1661     * @param object $comment The comment object.
     1662     * @param int    $depth   Depth of comment.
     1663     * @param array  $args    An array of arguments. @see wp_list_comments()
    16311664     */
    16321665    protected function ping( $comment, $depth, $args ) {
     
    16411674
    16421675    /**
    1643      * @since 3.6
     1676     * Output a single comment.
     1677     *
    16441678     * @access protected
     1679     * @since 3.6.0
    16451680     *
    16461681     * @param object $comment Comment to display.
    1647      * @param int $depth Depth of comment.
    1648      * @param array $args Optional args.
     1682     * @param int    $depth  Depth of comment.
     1683     * @param array  $args    An array of arguments. @see wp_list_comments()
    16491684     */
    16501685    protected function comment( $comment, $depth, $args ) {
     
    16891724
    16901725    /**
    1691      * @since 3.6
     1726     * Output a comment in the HTML5 format.
     1727     *
    16921728     * @access protected
     1729     * @since 3.6.0
    16931730     *
    16941731     * @param object $comment Comment to display.
    1695      * @param int $depth Depth of comment.
    1696      * @param array $args Optional args.
     1732     * @param int    $depth  Depth of comment.
     1733     * @param array  $args    An array of arguments. @see wp_list_comments()
    16971734     */
    16981735    protected function html5_comment( $comment, $depth, $args ) {
Note: See TracChangeset for help on using the changeset viewer.