wp_ajax_press_this_save_post

The timeline below displays how wordpress function wp_ajax_press_this_save_post has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Ajax handler for saving a post from Press This.
 *
 * @since 4.2.0
 * @deprecated 4.9.0
 */
function wp_ajax_press_this_save_post()
{
    _deprecated_function(__FUNCTION__, '4.9.0');
    if (is_plugin_active('press-this/press-this-plugin.php')) {
        include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
        $wp_press_this = new WP_Press_This_Plugin();
        $wp_press_this->save_post();
    } else {
        wp_send_json_error(array('errorMessage' => __('The Press This plugin is required.')));
    }
}

WordPress Version: 4.9

/**
* Ajax handler for saving a post from Press This.
*
* @since 4.2.0
* @deprecated 4.9.0
*/
function wp_ajax_press_this_save_post()
{
    _deprecated_function(__FUNCTION__, '4.9.0');
    if (is_plugin_active('press-this/press-this-plugin.php')) {
        include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
        $wp_press_this = new WP_Press_This_Plugin();
        $wp_press_this->save_post();
    } else {
        wp_send_json_error(array('errorMessage' => __('The Press This plugin is required.')));
    }
}

WordPress Version: 4.7

/**
 * Ajax handler for saving a post from Press This.
 *
 * @since 4.2.0
 */
function wp_ajax_press_this_save_post()
{
    include ABSPATH . 'wp-admin/includes/class-wp-press-this.php';
    $wp_press_this = new WP_Press_This();
    $wp_press_this->save_post();
}

WordPress Version: 4.6

/**
 * Ajax handler for saving a post from Press This.
 *
 * @since 4.2.0
 *
 * @global WP_Press_This $wp_press_this
 */
function wp_ajax_press_this_save_post()
{
    if (empty($GLOBALS['wp_press_this'])) {
        include ABSPATH . 'wp-admin/includes/class-wp-press-this.php';
    }
    $GLOBALS['wp_press_this']->save_post();
}

WordPress Version: 4.3

/**
 * AJAX handler for saving a post from Press This.
 *
 * @since 4.2.0
 *
 * @global WP_Press_This $wp_press_this
 */
function wp_ajax_press_this_save_post()
{
    if (empty($GLOBALS['wp_press_this'])) {
        include ABSPATH . 'wp-admin/includes/class-wp-press-this.php';
    }
    $GLOBALS['wp_press_this']->save_post();
}

WordPress Version: 4.2

/**
 * AJAX handler for saving a post from Press This.
 *
 * @since 4.2.0
 */
function wp_ajax_press_this_save_post()
{
    if (empty($GLOBALS['wp_press_this'])) {
        include ABSPATH . 'wp-admin/includes/class-wp-press-this.php';
    }
    $GLOBALS['wp_press_this']->save_post();
}