json_register_scripts - wpApiOptions.nonce is now WP_API_Settings.nonce

json_register_scripts used wp_localize_script to output the nonce.
The original name was wpApiOptions now it is WP_API_Settings.

--old--
wp_localize_script( 'wp-api', 'wpApiOptions', array( 'base' => json_url(), 'nonce' => wp_create_nonce( 'wp_json' ) ) );

--new--
$settings = array( 'root' => esc_url_raw( get_json_url() ), 'nonce' => wp_create_nonce( 'wp_json' ) );
wp_localize_script( 'wp-api', 'WP_API_Settings', $settings );