Edit File by line
/home/barbar84/www/wp-inclu...
File: deprecated.php
*/
[3500] Fix | Delete
function preview_theme() {
[3501] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0' );
[3502] Fix | Delete
}
[3503] Fix | Delete
[3504] Fix | Delete
/**
[3505] Fix | Delete
* Private function to modify the current template when previewing a theme
[3506] Fix | Delete
*
[3507] Fix | Delete
* @since 2.9.0
[3508] Fix | Delete
* @deprecated 4.3.0
[3509] Fix | Delete
* @access private
[3510] Fix | Delete
*
[3511] Fix | Delete
* @return string
[3512] Fix | Delete
*/
[3513] Fix | Delete
function _preview_theme_template_filter() {
[3514] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0' );
[3515] Fix | Delete
return '';
[3516] Fix | Delete
}
[3517] Fix | Delete
[3518] Fix | Delete
/**
[3519] Fix | Delete
* Private function to modify the current stylesheet when previewing a theme
[3520] Fix | Delete
*
[3521] Fix | Delete
* @since 2.9.0
[3522] Fix | Delete
* @deprecated 4.3.0
[3523] Fix | Delete
* @access private
[3524] Fix | Delete
*
[3525] Fix | Delete
* @return string
[3526] Fix | Delete
*/
[3527] Fix | Delete
function _preview_theme_stylesheet_filter() {
[3528] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0' );
[3529] Fix | Delete
return '';
[3530] Fix | Delete
}
[3531] Fix | Delete
[3532] Fix | Delete
/**
[3533] Fix | Delete
* Callback function for ob_start() to capture all links in the theme.
[3534] Fix | Delete
*
[3535] Fix | Delete
* @since 2.6.0
[3536] Fix | Delete
* @deprecated 4.3.0
[3537] Fix | Delete
* @access private
[3538] Fix | Delete
*
[3539] Fix | Delete
* @param string $content
[3540] Fix | Delete
* @return string
[3541] Fix | Delete
*/
[3542] Fix | Delete
function preview_theme_ob_filter( $content ) {
[3543] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0' );
[3544] Fix | Delete
return $content;
[3545] Fix | Delete
}
[3546] Fix | Delete
[3547] Fix | Delete
/**
[3548] Fix | Delete
* Manipulates preview theme links in order to control and maintain location.
[3549] Fix | Delete
*
[3550] Fix | Delete
* Callback function for preg_replace_callback() to accept and filter matches.
[3551] Fix | Delete
*
[3552] Fix | Delete
* @since 2.6.0
[3553] Fix | Delete
* @deprecated 4.3.0
[3554] Fix | Delete
* @access private
[3555] Fix | Delete
*
[3556] Fix | Delete
* @param array $matches
[3557] Fix | Delete
* @return string
[3558] Fix | Delete
*/
[3559] Fix | Delete
function preview_theme_ob_filter_callback( $matches ) {
[3560] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0' );
[3561] Fix | Delete
return '';
[3562] Fix | Delete
}
[3563] Fix | Delete
[3564] Fix | Delete
/**
[3565] Fix | Delete
* Formats text for the rich text editor.
[3566] Fix | Delete
*
[3567] Fix | Delete
* The {@see 'richedit_pre'} filter is applied here. If `$text` is empty the filter will
[3568] Fix | Delete
* be applied to an empty string.
[3569] Fix | Delete
*
[3570] Fix | Delete
* @since 2.0.0
[3571] Fix | Delete
* @deprecated 4.3.0 Use format_for_editor()
[3572] Fix | Delete
* @see format_for_editor()
[3573] Fix | Delete
*
[3574] Fix | Delete
* @param string $text The text to be formatted.
[3575] Fix | Delete
* @return string The formatted text after filter is applied.
[3576] Fix | Delete
*/
[3577] Fix | Delete
function wp_richedit_pre($text) {
[3578] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' );
[3579] Fix | Delete
[3580] Fix | Delete
if ( empty( $text ) ) {
[3581] Fix | Delete
/**
[3582] Fix | Delete
* Filters text returned for the rich text editor.
[3583] Fix | Delete
*
[3584] Fix | Delete
* This filter is first evaluated, and the value returned, if an empty string
[3585] Fix | Delete
* is passed to wp_richedit_pre(). If an empty string is passed, it results
[3586] Fix | Delete
* in a break tag and line feed.
[3587] Fix | Delete
*
[3588] Fix | Delete
* If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre()
[3589] Fix | Delete
* return after being formatted.
[3590] Fix | Delete
*
[3591] Fix | Delete
* @since 2.0.0
[3592] Fix | Delete
* @deprecated 4.3.0
[3593] Fix | Delete
*
[3594] Fix | Delete
* @param string $output Text for the rich text editor.
[3595] Fix | Delete
*/
[3596] Fix | Delete
return apply_filters( 'richedit_pre', '' );
[3597] Fix | Delete
}
[3598] Fix | Delete
[3599] Fix | Delete
$output = convert_chars($text);
[3600] Fix | Delete
$output = wpautop($output);
[3601] Fix | Delete
$output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) );
[3602] Fix | Delete
[3603] Fix | Delete
/** This filter is documented in wp-includes/deprecated.php */
[3604] Fix | Delete
return apply_filters( 'richedit_pre', $output );
[3605] Fix | Delete
}
[3606] Fix | Delete
[3607] Fix | Delete
/**
[3608] Fix | Delete
* Formats text for the HTML editor.
[3609] Fix | Delete
*
[3610] Fix | Delete
* Unless $output is empty it will pass through htmlspecialchars before the
[3611] Fix | Delete
* {@see 'htmledit_pre'} filter is applied.
[3612] Fix | Delete
*
[3613] Fix | Delete
* @since 2.5.0
[3614] Fix | Delete
* @deprecated 4.3.0 Use format_for_editor()
[3615] Fix | Delete
* @see format_for_editor()
[3616] Fix | Delete
*
[3617] Fix | Delete
* @param string $output The text to be formatted.
[3618] Fix | Delete
* @return string Formatted text after filter applied.
[3619] Fix | Delete
*/
[3620] Fix | Delete
function wp_htmledit_pre($output) {
[3621] Fix | Delete
_deprecated_function( __FUNCTION__, '4.3.0', 'format_for_editor()' );
[3622] Fix | Delete
[3623] Fix | Delete
if ( !empty($output) )
[3624] Fix | Delete
$output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // Convert only '< > &'.
[3625] Fix | Delete
[3626] Fix | Delete
/**
[3627] Fix | Delete
* Filters the text before it is formatted for the HTML editor.
[3628] Fix | Delete
*
[3629] Fix | Delete
* @since 2.5.0
[3630] Fix | Delete
* @deprecated 4.3.0
[3631] Fix | Delete
*
[3632] Fix | Delete
* @param string $output The HTML-formatted text.
[3633] Fix | Delete
*/
[3634] Fix | Delete
return apply_filters( 'htmledit_pre', $output );
[3635] Fix | Delete
}
[3636] Fix | Delete
[3637] Fix | Delete
/**
[3638] Fix | Delete
* Retrieve permalink from post ID.
[3639] Fix | Delete
*
[3640] Fix | Delete
* @since 1.0.0
[3641] Fix | Delete
* @deprecated 4.4.0 Use get_permalink()
[3642] Fix | Delete
* @see get_permalink()
[3643] Fix | Delete
*
[3644] Fix | Delete
* @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
[3645] Fix | Delete
* @return string|false
[3646] Fix | Delete
*/
[3647] Fix | Delete
function post_permalink( $post_id = 0 ) {
[3648] Fix | Delete
_deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );
[3649] Fix | Delete
[3650] Fix | Delete
return get_permalink( $post_id );
[3651] Fix | Delete
}
[3652] Fix | Delete
[3653] Fix | Delete
/**
[3654] Fix | Delete
* Perform a HTTP HEAD or GET request.
[3655] Fix | Delete
*
[3656] Fix | Delete
* If $file_path is a writable filename, this will do a GET request and write
[3657] Fix | Delete
* the file to that path.
[3658] Fix | Delete
*
[3659] Fix | Delete
* @since 2.5.0
[3660] Fix | Delete
* @deprecated 4.4.0 Use WP_Http
[3661] Fix | Delete
* @see WP_Http
[3662] Fix | Delete
*
[3663] Fix | Delete
* @param string $url URL to fetch.
[3664] Fix | Delete
* @param string|bool $file_path Optional. File path to write request to. Default false.
[3665] Fix | Delete
* @param int $red Optional. The number of Redirects followed, Upon 5 being hit,
[3666] Fix | Delete
* returns false. Default 1.
[3667] Fix | Delete
* @return bool|string False on failure and string of headers if HEAD request.
[3668] Fix | Delete
*/
[3669] Fix | Delete
function wp_get_http( $url, $file_path = false, $red = 1 ) {
[3670] Fix | Delete
_deprecated_function( __FUNCTION__, '4.4.0', 'WP_Http' );
[3671] Fix | Delete
[3672] Fix | Delete
@set_time_limit( 60 );
[3673] Fix | Delete
[3674] Fix | Delete
if ( $red > 5 )
[3675] Fix | Delete
return false;
[3676] Fix | Delete
[3677] Fix | Delete
$options = array();
[3678] Fix | Delete
$options['redirection'] = 5;
[3679] Fix | Delete
[3680] Fix | Delete
if ( false == $file_path )
[3681] Fix | Delete
$options['method'] = 'HEAD';
[3682] Fix | Delete
else
[3683] Fix | Delete
$options['method'] = 'GET';
[3684] Fix | Delete
[3685] Fix | Delete
$response = wp_safe_remote_request( $url, $options );
[3686] Fix | Delete
[3687] Fix | Delete
if ( is_wp_error( $response ) )
[3688] Fix | Delete
return false;
[3689] Fix | Delete
[3690] Fix | Delete
$headers = wp_remote_retrieve_headers( $response );
[3691] Fix | Delete
$headers['response'] = wp_remote_retrieve_response_code( $response );
[3692] Fix | Delete
[3693] Fix | Delete
// WP_HTTP no longer follows redirects for HEAD requests.
[3694] Fix | Delete
if ( 'HEAD' == $options['method'] && in_array($headers['response'], array(301, 302)) && isset( $headers['location'] ) ) {
[3695] Fix | Delete
return wp_get_http( $headers['location'], $file_path, ++$red );
[3696] Fix | Delete
}
[3697] Fix | Delete
[3698] Fix | Delete
if ( false == $file_path )
[3699] Fix | Delete
return $headers;
[3700] Fix | Delete
[3701] Fix | Delete
// GET request - write it to the supplied filename.
[3702] Fix | Delete
$out_fp = fopen($file_path, 'w');
[3703] Fix | Delete
if ( !$out_fp )
[3704] Fix | Delete
return $headers;
[3705] Fix | Delete
[3706] Fix | Delete
fwrite( $out_fp, wp_remote_retrieve_body( $response ) );
[3707] Fix | Delete
fclose($out_fp);
[3708] Fix | Delete
clearstatcache();
[3709] Fix | Delete
[3710] Fix | Delete
return $headers;
[3711] Fix | Delete
}
[3712] Fix | Delete
[3713] Fix | Delete
/**
[3714] Fix | Delete
* Whether SSL login should be forced.
[3715] Fix | Delete
*
[3716] Fix | Delete
* @since 2.6.0
[3717] Fix | Delete
* @deprecated 4.4.0 Use force_ssl_admin()
[3718] Fix | Delete
* @see force_ssl_admin()
[3719] Fix | Delete
*
[3720] Fix | Delete
* @param string|bool $force Optional Whether to force SSL login. Default null.
[3721] Fix | Delete
* @return bool True if forced, false if not forced.
[3722] Fix | Delete
*/
[3723] Fix | Delete
function force_ssl_login( $force = null ) {
[3724] Fix | Delete
_deprecated_function( __FUNCTION__, '4.4.0', 'force_ssl_admin()' );
[3725] Fix | Delete
return force_ssl_admin( $force );
[3726] Fix | Delete
}
[3727] Fix | Delete
[3728] Fix | Delete
/**
[3729] Fix | Delete
* Retrieve path of comment popup template in current or parent template.
[3730] Fix | Delete
*
[3731] Fix | Delete
* @since 1.5.0
[3732] Fix | Delete
* @deprecated 4.5.0
[3733] Fix | Delete
*
[3734] Fix | Delete
* @return string Full path to comments popup template file.
[3735] Fix | Delete
*/
[3736] Fix | Delete
function get_comments_popup_template() {
[3737] Fix | Delete
_deprecated_function( __FUNCTION__, '4.5.0' );
[3738] Fix | Delete
[3739] Fix | Delete
return '';
[3740] Fix | Delete
}
[3741] Fix | Delete
[3742] Fix | Delete
/**
[3743] Fix | Delete
* Determines whether the current URL is within the comments popup window.
[3744] Fix | Delete
*
[3745] Fix | Delete
* For more information on this and similar theme functions, check out
[3746] Fix | Delete
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
[3747] Fix | Delete
* Conditional Tags} article in the Theme Developer Handbook.
[3748] Fix | Delete
*
[3749] Fix | Delete
* @since 1.5.0
[3750] Fix | Delete
* @deprecated 4.5.0
[3751] Fix | Delete
*
[3752] Fix | Delete
* @return false Always returns false.
[3753] Fix | Delete
*/
[3754] Fix | Delete
function is_comments_popup() {
[3755] Fix | Delete
_deprecated_function( __FUNCTION__, '4.5.0' );
[3756] Fix | Delete
[3757] Fix | Delete
return false;
[3758] Fix | Delete
}
[3759] Fix | Delete
[3760] Fix | Delete
/**
[3761] Fix | Delete
* Display the JS popup script to show a comment.
[3762] Fix | Delete
*
[3763] Fix | Delete
* @since 0.71
[3764] Fix | Delete
* @deprecated 4.5.0
[3765] Fix | Delete
*/
[3766] Fix | Delete
function comments_popup_script() {
[3767] Fix | Delete
_deprecated_function( __FUNCTION__, '4.5.0' );
[3768] Fix | Delete
}
[3769] Fix | Delete
[3770] Fix | Delete
/**
[3771] Fix | Delete
* Adds element attributes to open links in new tabs.
[3772] Fix | Delete
*
[3773] Fix | Delete
* @since 0.71
[3774] Fix | Delete
* @deprecated 4.5.0
[3775] Fix | Delete
*
[3776] Fix | Delete
* @param string $text Content to replace links to open in a new tab.
[3777] Fix | Delete
* @return string Content that has filtered links.
[3778] Fix | Delete
*/
[3779] Fix | Delete
function popuplinks( $text ) {
[3780] Fix | Delete
_deprecated_function( __FUNCTION__, '4.5.0' );
[3781] Fix | Delete
$text = preg_replace('/<a (.+?)>/i', "<a $1 target='_blank' rel='external'>", $text);
[3782] Fix | Delete
return $text;
[3783] Fix | Delete
}
[3784] Fix | Delete
[3785] Fix | Delete
/**
[3786] Fix | Delete
* The Google Video embed handler callback.
[3787] Fix | Delete
*
[3788] Fix | Delete
* Deprecated function that previously assisted in turning Google Video URLs
[3789] Fix | Delete
* into embeds but that service has since been shut down.
[3790] Fix | Delete
*
[3791] Fix | Delete
* @since 2.9.0
[3792] Fix | Delete
* @deprecated 4.6.0
[3793] Fix | Delete
*
[3794] Fix | Delete
* @return string An empty string.
[3795] Fix | Delete
*/
[3796] Fix | Delete
function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {
[3797] Fix | Delete
_deprecated_function( __FUNCTION__, '4.6.0' );
[3798] Fix | Delete
[3799] Fix | Delete
return '';
[3800] Fix | Delete
}
[3801] Fix | Delete
[3802] Fix | Delete
/**
[3803] Fix | Delete
* Retrieve path of paged template in current or parent template.
[3804] Fix | Delete
*
[3805] Fix | Delete
* @since 1.5.0
[3806] Fix | Delete
* @deprecated 4.7.0 The paged.php template is no longer part of the theme template hierarchy.
[3807] Fix | Delete
*
[3808] Fix | Delete
* @return string Full path to paged template file.
[3809] Fix | Delete
*/
[3810] Fix | Delete
function get_paged_template() {
[3811] Fix | Delete
_deprecated_function( __FUNCTION__, '4.7.0' );
[3812] Fix | Delete
[3813] Fix | Delete
return get_query_template( 'paged' );
[3814] Fix | Delete
}
[3815] Fix | Delete
[3816] Fix | Delete
/**
[3817] Fix | Delete
* Removes the HTML JavaScript entities found in early versions of Netscape 4.
[3818] Fix | Delete
*
[3819] Fix | Delete
* Previously, this function was pulled in from the original
[3820] Fix | Delete
* import of kses and removed a specific vulnerability only
[3821] Fix | Delete
* existent in early version of Netscape 4. However, this
[3822] Fix | Delete
* vulnerability never affected any other browsers and can
[3823] Fix | Delete
* be considered safe for the modern web.
[3824] Fix | Delete
*
[3825] Fix | Delete
* The regular expression which sanitized this vulnerability
[3826] Fix | Delete
* has been removed in consideration of the performance and
[3827] Fix | Delete
* energy demands it placed, now merely passing through its
[3828] Fix | Delete
* input to the return.
[3829] Fix | Delete
*
[3830] Fix | Delete
* @since 1.0.0
[3831] Fix | Delete
* @deprecated 4.7.0 Officially dropped security support for Netscape 4.
[3832] Fix | Delete
*
[3833] Fix | Delete
* @param string $string
[3834] Fix | Delete
* @return string
[3835] Fix | Delete
*/
[3836] Fix | Delete
function wp_kses_js_entities( $string ) {
[3837] Fix | Delete
_deprecated_function( __FUNCTION__, '4.7.0' );
[3838] Fix | Delete
[3839] Fix | Delete
return preg_replace( '%&\s*\{[^}]*(\}\s*;?|$)%', '', $string );
[3840] Fix | Delete
}
[3841] Fix | Delete
[3842] Fix | Delete
/**
[3843] Fix | Delete
* Sort categories by ID.
[3844] Fix | Delete
*
[3845] Fix | Delete
* Used by usort() as a callback, should not be used directly. Can actually be
[3846] Fix | Delete
* used to sort any term object.
[3847] Fix | Delete
*
[3848] Fix | Delete
* @since 2.3.0
[3849] Fix | Delete
* @deprecated 4.7.0 Use wp_list_sort()
[3850] Fix | Delete
* @access private
[3851] Fix | Delete
*
[3852] Fix | Delete
* @param object $a
[3853] Fix | Delete
* @param object $b
[3854] Fix | Delete
* @return int
[3855] Fix | Delete
*/
[3856] Fix | Delete
function _usort_terms_by_ID( $a, $b ) {
[3857] Fix | Delete
_deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
[3858] Fix | Delete
[3859] Fix | Delete
if ( $a->term_id > $b->term_id )
[3860] Fix | Delete
return 1;
[3861] Fix | Delete
elseif ( $a->term_id < $b->term_id )
[3862] Fix | Delete
return -1;
[3863] Fix | Delete
else
[3864] Fix | Delete
return 0;
[3865] Fix | Delete
}
[3866] Fix | Delete
[3867] Fix | Delete
/**
[3868] Fix | Delete
* Sort categories by name.
[3869] Fix | Delete
*
[3870] Fix | Delete
* Used by usort() as a callback, should not be used directly. Can actually be
[3871] Fix | Delete
* used to sort any term object.
[3872] Fix | Delete
*
[3873] Fix | Delete
* @since 2.3.0
[3874] Fix | Delete
* @deprecated 4.7.0 Use wp_list_sort()
[3875] Fix | Delete
* @access private
[3876] Fix | Delete
*
[3877] Fix | Delete
* @param object $a
[3878] Fix | Delete
* @param object $b
[3879] Fix | Delete
* @return int
[3880] Fix | Delete
*/
[3881] Fix | Delete
function _usort_terms_by_name( $a, $b ) {
[3882] Fix | Delete
_deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
[3883] Fix | Delete
[3884] Fix | Delete
return strcmp( $a->name, $b->name );
[3885] Fix | Delete
}
[3886] Fix | Delete
[3887] Fix | Delete
/**
[3888] Fix | Delete
* Sort menu items by the desired key.
[3889] Fix | Delete
*
[3890] Fix | Delete
* @since 3.0.0
[3891] Fix | Delete
* @deprecated 4.7.0 Use wp_list_sort()
[3892] Fix | Delete
* @access private
[3893] Fix | Delete
*
[3894] Fix | Delete
* @global string $_menu_item_sort_prop
[3895] Fix | Delete
*
[3896] Fix | Delete
* @param object $a The first object to compare
[3897] Fix | Delete
* @param object $b The second object to compare
[3898] Fix | Delete
* @return int -1, 0, or 1 if $a is considered to be respectively less than, equal to, or greater than $b.
[3899] Fix | Delete
*/
[3900] Fix | Delete
function _sort_nav_menu_items( $a, $b ) {
[3901] Fix | Delete
global $_menu_item_sort_prop;
[3902] Fix | Delete
[3903] Fix | Delete
_deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
[3904] Fix | Delete
[3905] Fix | Delete
if ( empty( $_menu_item_sort_prop ) )
[3906] Fix | Delete
return 0;
[3907] Fix | Delete
[3908] Fix | Delete
if ( ! isset( $a->$_menu_item_sort_prop ) || ! isset( $b->$_menu_item_sort_prop ) )
[3909] Fix | Delete
return 0;
[3910] Fix | Delete
[3911] Fix | Delete
$_a = (int) $a->$_menu_item_sort_prop;
[3912] Fix | Delete
$_b = (int) $b->$_menu_item_sort_prop;
[3913] Fix | Delete
[3914] Fix | Delete
if ( $a->$_menu_item_sort_prop == $b->$_menu_item_sort_prop )
[3915] Fix | Delete
return 0;
[3916] Fix | Delete
elseif ( $_a == $a->$_menu_item_sort_prop && $_b == $b->$_menu_item_sort_prop )
[3917] Fix | Delete
return $_a < $_b ? -1 : 1;
[3918] Fix | Delete
else
[3919] Fix | Delete
return strcmp( $a->$_menu_item_sort_prop, $b->$_menu_item_sort_prop );
[3920] Fix | Delete
}
[3921] Fix | Delete
[3922] Fix | Delete
/**
[3923] Fix | Delete
* Retrieves the Press This bookmarklet link.
[3924] Fix | Delete
*
[3925] Fix | Delete
* @since 2.6.0
[3926] Fix | Delete
* @deprecated 4.9.0
[3927] Fix | Delete
*
[3928] Fix | Delete
*/
[3929] Fix | Delete
function get_shortcut_link() {
[3930] Fix | Delete
_deprecated_function( __FUNCTION__, '4.9.0' );
[3931] Fix | Delete
[3932] Fix | Delete
$link = '';
[3933] Fix | Delete
[3934] Fix | Delete
/**
[3935] Fix | Delete
* Filters the Press This bookmarklet link.
[3936] Fix | Delete
*
[3937] Fix | Delete
* @since 2.6.0
[3938] Fix | Delete
* @deprecated 4.9.0
[3939] Fix | Delete
*
[3940] Fix | Delete
* @param string $link The Press This bookmarklet link.
[3941] Fix | Delete
*/
[3942] Fix | Delete
return apply_filters( 'shortcut_link', $link );
[3943] Fix | Delete
}
[3944] Fix | Delete
[3945] Fix | Delete
/**
[3946] Fix | Delete
* Ajax handler for saving a post from Press This.
[3947] Fix | Delete
*
[3948] Fix | Delete
* @since 4.2.0
[3949] Fix | Delete
* @deprecated 4.9.0
[3950] Fix | Delete
*/
[3951] Fix | Delete
function wp_ajax_press_this_save_post() {
[3952] Fix | Delete
_deprecated_function( __FUNCTION__, '4.9.0' );
[3953] Fix | Delete
if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) {
[3954] Fix | Delete
include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
[3955] Fix | Delete
$wp_press_this = new WP_Press_This_Plugin();
[3956] Fix | Delete
$wp_press_this->save_post();
[3957] Fix | Delete
} else {
[3958] Fix | Delete
wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) );
[3959] Fix | Delete
}
[3960] Fix | Delete
}
[3961] Fix | Delete
[3962] Fix | Delete
/**
[3963] Fix | Delete
* Ajax handler for creating new category from Press This.
[3964] Fix | Delete
*
[3965] Fix | Delete
* @since 4.2.0
[3966] Fix | Delete
* @deprecated 4.9.0
[3967] Fix | Delete
*/
[3968] Fix | Delete
function wp_ajax_press_this_add_category() {
[3969] Fix | Delete
_deprecated_function( __FUNCTION__, '4.9.0' );
[3970] Fix | Delete
if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) {
[3971] Fix | Delete
include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
[3972] Fix | Delete
$wp_press_this = new WP_Press_This_Plugin();
[3973] Fix | Delete
$wp_press_this->add_category();
[3974] Fix | Delete
} else {
[3975] Fix | Delete
wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) );
[3976] Fix | Delete
}
[3977] Fix | Delete
}
[3978] Fix | Delete
[3979] Fix | Delete
/**
[3980] Fix | Delete
* Return the user request object for the specified request ID.
[3981] Fix | Delete
*
[3982] Fix | Delete
* @since 4.9.6
[3983] Fix | Delete
* @deprecated 5.4.0 Use wp_get_user_request()
[3984] Fix | Delete
* @see wp_get_user_request()
[3985] Fix | Delete
*
[3986] Fix | Delete
* @param int $request_id The ID of the user request.
[3987] Fix | Delete
* @return WP_User_Request|false
[3988] Fix | Delete
*/
[3989] Fix | Delete
function wp_get_user_request_data( $request_id ) {
[3990] Fix | Delete
_deprecated_function( __FUNCTION__, '5.4.0', 'wp_get_user_request()' );
[3991] Fix | Delete
return wp_get_user_request( $request_id );
[3992] Fix | Delete
}
[3993] Fix | Delete
[3994] Fix | Delete
/**
[3995] Fix | Delete
* Filters 'img' elements in post content to add 'srcset' and 'sizes' attributes.
[3996] Fix | Delete
*
[3997] Fix | Delete
* @since 4.4.0
[3998] Fix | Delete
* @deprecated 5.5.0
[3999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function