Changeset 47550 for trunk/src/wp-admin/admin-ajax.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-ajax.php
r47198 r47550 147 147 148 148 // Register core Ajax calls. 149 if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get ) ) {149 if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get, true ) ) { 150 150 add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 ); 151 151 } 152 152 153 if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_post ) ) {153 if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_post, true ) ) { 154 154 add_action( 'wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1 ); 155 155 }
Note: See TracChangeset
for help on using the changeset viewer.