Use self_admin_url() to simplify admin URL generation.

No need to check if is_network_admin() and switch between network_admin_url() and admin_url(). Turns out, WordPress already has a utility function that does that.
This commit is contained in:
Yahnis Elsts 2016-01-09 18:41:56 +02:00
parent d600e14f5d
commit 080dc83ac5
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ class PluginUpdateChecker_2_3 {
'puc_check_for_updates' => 1,
'puc_slug' => $this->slug,
),
is_network_admin() ? network_admin_url('plugins.php') : admin_url('plugins.php')
self_admin_url('plugins.php')
),
'puc_check_for_updates'
);