Skip to content

Commit

Permalink
Fix for PHP notice caused by deprecated screen_icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evelia Molina committed Mar 13, 2020
1 parent 95b23ac commit 6867c7c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions AdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ protected function page_help() { }
*/
protected function page_header() {
echo "<div class='wrap'>\n";
screen_icon( $this->args['screen_icon'] );
echo html( 'h2', $this->args['page_title'] );
}

Expand Down Expand Up @@ -510,7 +509,6 @@ private function check_args() {
'toplevel' => '',
'position' => null,
'icon_url' => '',
'screen_icon' => '',
'parent' => 'options-general.php',
'capability' => 'manage_options',
'menu_title' => $this->args['page_title'],
Expand Down Expand Up @@ -581,4 +579,3 @@ public function _action_link( $links ) {
return $links;
}
}

0 comments on commit 6867c7c

Please sign in to comment.