1 | <?php |
||
18 | abstract class BD_Page extends BD_Base_Page { |
||
19 | /** |
||
20 | * @var string Item Type. Possible values 'posts', 'pages', 'users' etc. |
||
21 | */ |
||
22 | protected $item_type; |
||
23 | |||
24 | /** |
||
25 | * Setup hooks. |
||
26 | * |
||
27 | * @since 5.5 |
||
28 | */ |
||
29 | protected function setup_hooks() { |
||
34 | |||
35 | /** |
||
36 | * Check for nonce before executing the action. |
||
37 | * |
||
38 | * @since 5.5 |
||
39 | * @param bool $result The current result. |
||
40 | * @param string $action Action name. |
||
41 | */ |
||
42 | public function nonce_check( $result, $action ) { |
||
52 | |||
53 | /** |
||
54 | * Add menu. |
||
55 | * |
||
56 | * @since 5.5 |
||
57 | */ |
||
58 | public function add_menu() { |
||
66 | |||
67 | /** |
||
68 | * Add settings Panel. |
||
69 | * |
||
70 | * @since 5.5 |
||
71 | */ |
||
72 | public function add_settings_panel() { |
||
86 | |||
87 | /** |
||
88 | * Register meta boxes. |
||
89 | * |
||
90 | * @since 5.5 |
||
91 | */ |
||
92 | public function add_meta_boxes() { |
||
101 | |||
102 | /** |
||
103 | * Add additional nonce fields. |
||
104 | * |
||
105 | * @since 5.5.4 |
||
106 | */ |
||
107 | protected function render_nonce_fields() { |
||
114 | |||
115 | /** |
||
116 | * Render meta boxes in body. |
||
117 | * |
||
118 | * @since 5.5.4 |
||
119 | */ |
||
120 | protected function render_body() { |
||
123 | |||
124 | /** |
||
125 | * Render footer. |
||
126 | * |
||
127 | * @since 5.5.4 |
||
128 | */ |
||
129 | protected function render_footer() { |
||
141 | } |
||
142 | ?> |
||
143 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.