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/post-template.php

    r28498 r28514  
    12271227     * @var string
    12281228     */
    1229     var $tree_type = 'page';
     1229    public $tree_type = 'page';
    12301230
    12311231    /**
     
    12351235     * @var array
    12361236     */
    1237     var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
     1237    public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
    12381238
    12391239    /**
     
    12451245     * @param array $args
    12461246     */
    1247     function start_lvl( &$output, $depth = 0, $args = array() ) {
     1247    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    12481248        $indent = str_repeat("\t", $depth);
    12491249        $output .= "\n$indent<ul class='children'>\n";
     
    12581258     * @param array $args
    12591259     */
    1260     function end_lvl( &$output, $depth = 0, $args = array() ) {
     1260    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    12611261        $indent = str_repeat("\t", $depth);
    12621262        $output .= "$indent</ul>\n";
     
    12731273     * @param array $args
    12741274     */
    1275     function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
     1275    public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
    12761276        if ( $depth ) {
    12771277            $indent = str_repeat( "\t", $depth );
     
    13541354     * @param array $args
    13551355     */
    1356     function end_el( &$output, $page, $depth = 0, $args = array() ) {
     1356    public function end_el( &$output, $page, $depth = 0, $args = array() ) {
    13571357        $output .= "</li>\n";
    13581358    }
     
    13721372     * @var string
    13731373     */
    1374     var $tree_type = 'page';
     1374    public $tree_type = 'page';
    13751375
    13761376    /**
     
    13801380     * @var array
    13811381     */
    1382     var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
     1382    public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
    13831383
    13841384    /**
     
    13921392     * @param int $id
    13931393     */
    1394     function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
     1394    public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
    13951395        $pad = str_repeat('&nbsp;', $depth * 3);
    13961396
Note: See TracChangeset for help on using the changeset viewer.