WordPress/wp-admin/network
Scott Taylor cd7c0f0b0d Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types.
Implementing this removes 27 uses of direct superglobal access in the admin.

For more reading:
https://codeclimate.com/github/WordPress/WordPress/wp-admin/edit-comments.php

See #33837.

Built from https://develop.svn.wordpress.org/trunk@34059


git-svn-id: http://core.svn.wordpress.org/trunk@34027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-11 21:08:26 +00:00
..
about.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
admin.php Priority fixes for various existing hook documentation. 2014-04-12 00:01:15 +00:00
credits.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
edit.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/network/*. 2014-11-30 11:21:22 +00:00
freedoms.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
index.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
menu.php Move network update submenu items to the Network Dashboard menu item 2015-05-19 17:00:29 +00:00
plugin-editor.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
plugin-install.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
plugins.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
profile.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
settings.php Move `network_settings_add_js()` from `wp-admin/network/settings.php` to `wp-admin/includes/ms.php`. 2015-09-10 22:24:24 +00:00
setup.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
site-info.php Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types. 2015-09-11 21:08:26 +00:00
site-new.php Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types. 2015-09-11 21:08:26 +00:00
site-settings.php Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types. 2015-09-11 21:08:26 +00:00
site-themes.php Multisite: Update help tab text for `site-info.php` to reference "site URL". 2015-09-05 20:53:24 +00:00
site-users.php Multisite: Update help tab text for `site-info.php` to reference "site URL". 2015-09-05 20:53:24 +00:00
sites.php Handle MS Sites bulk action verification separately from individual actions. 2015-07-13 17:24:24 +00:00
theme-editor.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
theme-install.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
themes.php `foreach` is a statement, not a function. 2015-08-25 20:28:22 +00:00
update-core.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
update.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
upgrade.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
user-edit.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
user-new.php Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types. 2015-09-11 21:08:26 +00:00
users.php Introduce `wp_validate_action( $action = '' )`, a helper function that checks `$_REQUEST` for `action` and returns it, or empty string if not present. If `$action` is passed, it checks to make sure they match before returning it, or an empty string. Strings are always returned to avoid returning multiple types. 2015-09-11 21:08:26 +00:00