]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-walker.php
WordPress 4.2.4-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-walker.php
index 25191641c0cfd9ae3eeaab8108b6470f16d805ee..f1d759789244115730fab602dc7285bb02801d7f 100644 (file)
@@ -25,19 +25,17 @@ class Walker {
         * DB fields to use.
         *
         * @since 2.1.0
-        * @access protected
         * @var array
         */
-       protected $db_fields;
+       public $db_fields;
 
        /**
         * Max number of pages walked by the paged walker
         *
         * @since 2.7.0
-        * @access protected
         * @var int
         */
-       protected $max_pages = 1;
+       public $max_pages = 1;
 
        /**
         * Whether the current element has children or not.
@@ -45,62 +43,9 @@ class Walker {
         * To be used in start_el().
         *
         * @since 4.0.0
-        * @access protected
         * @var bool
         */
-       protected $has_children;
-
-       /**
-        * Make private properties readable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to get.
-        * @return mixed Property.
-        */
-       public function __get( $name ) {
-               return $this->$name;
-       }
-
-       /**
-        * Make private properties settable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name  Property to set.
-        * @param mixed  $value Property value.
-        * @return mixed Newly-set property.
-        */
-       public function __set( $name, $value ) {
-               return $this->$name = $value;
-       }
-
-       /**
-        * Make private properties checkable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to check if set.
-        * @return bool Whether the property is set.
-        */
-       public function __isset( $name ) {
-               return isset( $this->$name );
-       }
-
-       /**
-        * Make private properties un-settable for backwards compatibility.
-        *
-        * @since 4.0.0
-        * @access public
-        *
-        * @param string $name Property to unset.
-        */
-       public function __unset( $name ) {
-               unset( $this->$name );
-       }
+       public $has_children;
 
        /**
         * Starts the list before the elements are added.