Skip to content

Commit

Permalink
Remove global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 committed Oct 25, 2023
1 parent 9ffdd9d commit 8a7bea2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions includes/Admin/Admin_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,9 @@ private function get_available_plugins() {
*
* @since n.e.x.t
*
* @global array $available_plugins The list of available plugins.
* @global string $selected_plugin_basename The selected plugin basename.
* @global array $categories An array of categories.
* @global mixed $user_settings The user interface setting value.
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function render_page() {
global $available_plugins, $selected_plugin_basename, $categories, $user_settings;

$available_plugins = $this->get_available_plugins();

$selected_plugin_basename = filter_input( INPUT_GET, 'plugin', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
Expand Down

0 comments on commit 8a7bea2

Please sign in to comment.