Clean up spaces, tabs, indentation, and bracket formatting
This commit is contained in:
@@ -6,10 +6,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
/**
|
||||
* SportsPress Admin.
|
||||
*
|
||||
* @class SP_Admin_AJAX
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @class SP_Admin_AJAX
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin
|
||||
* @version 1.7
|
||||
*/
|
||||
class SP_Admin_AJAX {
|
||||
@@ -59,10 +59,10 @@ class SP_Admin_AJAX {
|
||||
function save_inline_results() {
|
||||
check_ajax_referer( 'sp-save-inline-results', 'nonce' );
|
||||
|
||||
$id = sp_array_value( $_POST, 'post_id' );
|
||||
$id = sp_array_value( $_POST, 'post_id' );
|
||||
$results = sp_array_value( $_POST, 'results' );
|
||||
|
||||
if ( sp_update_main_results ( $id, $results ) ) {
|
||||
if ( sp_update_main_results( $id, $results ) ) {
|
||||
wp_send_json_success();
|
||||
} else {
|
||||
wp_send_json_error();
|
||||
|
||||
Reference in New Issue
Block a user