Changeset 41584 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 09/24/2017 02:21:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r41289 r41584 3888 3888 return strcmp( $a->$_menu_item_sort_prop, $b->$_menu_item_sort_prop ); 3889 3889 } 3890 3891 /** 3892 * Retrieves the Press This bookmarklet link. 3893 * 3894 * @since 2.6.0 3895 * @deprecated 4.9.0 3896 * 3897 */ 3898 function get_shortcut_link() { 3899 _deprecated_function( __FUNCTION__, '4.9.0' ); 3900 3901 $link = ''; 3902 3903 /** 3904 * Filters the Press This bookmarklet link. 3905 * 3906 * @since 2.6.0 3907 * @deprecated 4.9.0 3908 * 3909 * @param string $link The Press This bookmarklet link. 3910 */ 3911 return apply_filters( 'shortcut_link', $link ); 3912 } 3913 3914 /** 3915 * Ajax handler for saving a post from Press This. 3916 * 3917 * @since 4.2.0 3918 * @deprecated 4.9.0 3919 */ 3920 function wp_ajax_press_this_save_post() { 3921 _deprecated_function( __FUNCTION__, '4.9.0' ); 3922 if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) { 3923 include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' ); 3924 $wp_press_this = new WP_Press_This_Plugin(); 3925 $wp_press_this->save_post(); 3926 } else { 3927 wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) ); 3928 } 3929 } 3930 3931 /** 3932 * Ajax handler for creating new category from Press This. 3933 * 3934 * @since 4.2.0 3935 * @deprecated 4.9.0 3936 */ 3937 function wp_ajax_press_this_add_category() { 3938 _deprecated_function( __FUNCTION__, '4.9.0' ); 3939 if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) { 3940 include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' ); 3941 $wp_press_this = new WP_Press_This_Plugin(); 3942 $wp_press_this->add_category(); 3943 } else { 3944 wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) ); 3945 } 3946 }
Note: See TracChangeset
for help on using the changeset viewer.