WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2014 05:59:07 AM (6 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/nav-menu-template.php

    r28330 r28514  
    2222     * @var string
    2323     */
    24     var $tree_type = array( 'post_type', 'taxonomy', 'custom' );
     24    public $tree_type = array( 'post_type', 'taxonomy', 'custom' );
    2525
    2626    /**
     
    3232     * @var array
    3333     */
    34     var $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_id' );
     34    public $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_id' );
    3535
    3636    /**
     
    4545     * @param array  $args   An array of arguments. @see wp_nav_menu()
    4646     */
    47     function start_lvl( &$output, $depth = 0, $args = array() ) {
     47    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    4848        $indent = str_repeat("\t", $depth);
    4949        $output .= "\n$indent<ul class=\"sub-menu\">\n";
     
    6161     * @param array  $args   An array of arguments. @see wp_nav_menu()
    6262     */
    63     function end_lvl( &$output, $depth = 0, $args = array() ) {
     63    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    6464        $indent = str_repeat("\t", $depth);
    6565        $output .= "$indent</ul>\n";
     
    7979     * @param int    $id     Current item ID.
    8080     */
    81     function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
     81    public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    8282        $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    8383
     
    187187     * @param array  $args   An array of arguments. @see wp_nav_menu()
    188188     */
    189     function end_el( &$output, $item, $depth = 0, $args = array() ) {
     189    public function end_el( &$output, $item, $depth = 0, $args = array() ) {
    190190        $output .= "</li>\n";
    191191    }
Note: See TracChangeset for help on using the changeset viewer.