← All changes
|
wp-includes/database/parser/class-wp-parser-node.php
+3
-1
2.2.21
→
3.0.2
View file →
| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * A node corresponds to the related grammar rule that was matched by the parser. |
| 8 | 8 | * Each node can contain children, consisting of other nodes and grammar tokens. |
| 9 | 9 | * In this way, a parser node constitutes a recursive structure that represents |
| 10 | 10 | * a parse (sub)tree at each level of the full grammar tree. |
| 11 | + * | |
| 12 | + * @access private | |
| 11 | 13 | */ |
| 12 | 14 | class WP_Parser_Node { |
| 13 | 15 | /** |
| 14 | 16 | * @TODO: Review and document these properties and their visibility. |
| @@ -14,9 +16,9 @@ | ||
| 14 | 16 | * @TODO: Review and document these properties and their visibility. |
| 15 | 17 | */ |
| 16 | 18 | public $rule_id; |
| 17 | 19 | public $rule_name; |
| 18 | - private $children = array(); | |
| 20 | + protected $children = array(); | |
| 19 | 21 | |
| 20 | 22 | public function __construct( $rule_id, $rule_name ) { |
| 21 | 23 | $this->rule_id = $rule_id; |
| 22 | 24 | $this->rule_name = $rule_name; |