Make WordPress Core


Ignore:
Timestamp:
05/19/2014 05:59:07 AM (11 years ago)
Author:
wonderboymusic
Message:

Add missing access modifiers to methods/members in Walker and subclasses. Add a magic __get() method.

See #27881, #22234.

File:
1 edited

Legend:

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

    r28431 r28514  
    15591559     * @var string
    15601560     */
    1561     var $tree_type = 'comment';
     1561    public $tree_type = 'comment';
    15621562
    15631563    /**
     
    15691569     * @var array
    15701570     */
    1571     var $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
     1571    public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
    15721572
    15731573    /**
     
    15821582     * @param array $args Uses 'style' argument for type of HTML list.
    15831583     */
    1584     function start_lvl( &$output, $depth = 0, $args = array() ) {
     1584    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    15851585        $GLOBALS['comment_depth'] = $depth + 1;
    15861586
     
    16091609     * @param array  $args   Will only append content if style argument value is 'ol' or 'ul'.
    16101610     */
    1611     function end_lvl( &$output, $depth = 0, $args = array() ) {
     1611    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    16121612        $GLOBALS['comment_depth'] = $depth + 1;
    16131613
     
    16571657     * @return null Null on failure with no changes to parameters.
    16581658     */
    1659     function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
     1659    public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
    16601660
    16611661        if ( !$element )
     
    16911691     * @param array  $args    An array of arguments.
    16921692     */
    1693     function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
     1693    public function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
    16941694        $depth++;
    16951695        $GLOBALS['comment_depth'] = $depth;
     
    17311731     * @param array  $args    An array of arguments.
    17321732     */
    1733     function end_el( &$output, $comment, $depth = 0, $args = array() ) {
     1733    public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
    17341734        if ( !empty( $args['end-callback'] ) ) {
    17351735            ob_start();
Note: See TracChangeset for help on using the changeset viewer.