Skip to content

Commit

Permalink
Merge pull request #53 from evemf/fix/php-notice-caused-by-deprecated…
Browse files Browse the repository at this point in the history
…-screen-icon

Fix for PHP notice caused by deprecated screen_icon.
  • Loading branch information
scribu committed Mar 15, 2020
2 parents 95b23ac + 6867c7c commit d35d512
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 d35d512

Please sign in to comment.