Archived
Updates bonanza
This commit is contained in:
1 parent
d26191c9f8
commit
9d480fc3c5
1366 files changed
+220321
-90180
No files matched your search
@@ -13,8 +13,8 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @since 2.1
|
||||
* @deprecated 2.1
|
||||
* @since 2.1.0
|
||||
* @deprecated 2.1.0
|
||||
* @deprecated Use wp_editor().
|
||||
* @see wp_editor()
|
||||
*/
|
||||
@@ -27,8 +27,8 @@ function tinymce_include() {
|
||||
/**
|
||||
* Unused Admin function.
|
||||
*
|
||||
* @since 2.0
|
||||
* @deprecated 2.5
|
||||
* @since 2.0.0
|
||||
* @deprecated 2.5.0
|
||||
*
|
||||
*/
|
||||
function documentation_link() {
|
||||
@@ -106,6 +106,22 @@ function dropdown_link_categories( $default = 0 ) {
|
||||
wp_link_category_checklist( $link_id );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the real filesystem path to a file to edit within the admin.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @deprecated 2.9.0
|
||||
* @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
|
||||
*
|
||||
* @param string $file Filesystem path relative to the wp-content directory.
|
||||
* @return string Full filesystem path to edit.
|
||||
*/
|
||||
function get_real_file_to_edit( $file ) {
|
||||
_deprecated_function( __FUNCTION__, '2.9' );
|
||||
|
||||
return WP_CONTENT_DIR . $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
@@ -207,7 +223,7 @@ function codepress_footer_js() {
|
||||
/**
|
||||
* Determine whether to use CodePress.
|
||||
*
|
||||
* @since 2.8
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.0.0
|
||||
**/
|
||||
function use_codepress() {
|
||||
@@ -472,14 +488,13 @@ class WP_User_Search {
|
||||
function WP_User_Search ($search_term = '', $page = '', $role = '') {
|
||||
_deprecated_function( __FUNCTION__, '3.1', 'WP_User_Query' );
|
||||
|
||||
$this->search_term = stripslashes( $search_term );
|
||||
$this->search_term = wp_unslash( $search_term );
|
||||
$this->raw_page = ( '' == $page ) ? false : (int) $page;
|
||||
$this->page = (int) ( '' == $page ) ? 1 : $page;
|
||||
$this->role = $role;
|
||||
|
||||
$this->prepare_query();
|
||||
$this->query();
|
||||
$this->prepare_vars_for_template_usage();
|
||||
$this->do_paging();
|
||||
}
|
||||
|
||||
@@ -550,9 +565,7 @@ class WP_User_Search {
|
||||
* @since 2.1.0
|
||||
* @access public
|
||||
*/
|
||||
function prepare_vars_for_template_usage() {
|
||||
$this->search_term = stripslashes($this->search_term); // done with DB, from now on we want slashes gone
|
||||
}
|
||||
function prepare_vars_for_template_usage() {}
|
||||
|
||||
/**
|
||||
* {@internal Missing Short Description}}
|
||||
@@ -722,7 +735,7 @@ function wp_dashboard_quick_press_output() {
|
||||
|
||||
/**
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
* @deprecated Use wp_editor()
|
||||
* @see wp_editor()
|
||||
*/
|
||||
@@ -927,6 +940,7 @@ function get_allowed_themes() {
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @deprecated 3.4.0
|
||||
*
|
||||
* @return unknown
|
||||
*/
|
||||
@@ -950,6 +964,7 @@ function get_broken_themes() {
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @deprecated 3.4.0
|
||||
*
|
||||
* @return unknown
|
||||
*/
|
||||
@@ -1015,7 +1030,7 @@ function get_default_page_to_edit() {
|
||||
* @since 1.2.0
|
||||
* @deprecated 3.5.0
|
||||
* @deprecated Use image_resize()
|
||||
* @see image_resize()
|
||||
* @see image_resize()
|
||||
*
|
||||
* @param mixed $file Filename of the original image, Or attachment id.
|
||||
* @param int $max_side Maximum length of a single side for the thumbnail.
|
||||
@@ -1023,6 +1038,153 @@ function get_default_page_to_edit() {
|
||||
* @return string Thumbnail path on success, Error string on failure.
|
||||
*/
|
||||
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
|
||||
_deprecated_function( __FUNCTION__, '3.5', 'image_resize' );
|
||||
_deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
|
||||
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* This was once used to display a metabox for the nav menu theme locations.
|
||||
*
|
||||
* Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @deprecated 3.6.0
|
||||
*/
|
||||
function wp_nav_menu_locations_meta_box() {
|
||||
_deprecated_function( __FUNCTION__, '3.6' );
|
||||
}
|
||||
|
||||
/**
|
||||
* This was once used to kick-off the Core Updater.
|
||||
*
|
||||
* Deprecated in favor of instantating a Core_Upgrader instance directly,
|
||||
* and calling the 'upgrade' method.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.7.0
|
||||
* @see Core_Upgrader
|
||||
*/
|
||||
function wp_update_core($current, $feedback = '') {
|
||||
_deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
|
||||
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Core_Upgrader();
|
||||
return $upgrader->upgrade($current);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This was once used to kick-off the Plugin Updater.
|
||||
*
|
||||
* Deprecated in favor of instantating a Plugin_Upgrader instance directly,
|
||||
* and calling the 'upgrade' method.
|
||||
* Unused since 2.8.0.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @deprecated 3.7.0
|
||||
* @see Plugin_Upgrader
|
||||
*/
|
||||
function wp_update_plugin($plugin, $feedback = '') {
|
||||
_deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
|
||||
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Plugin_Upgrader();
|
||||
return $upgrader->upgrade($plugin);
|
||||
}
|
||||
|
||||
/**
|
||||
* This was once used to kick-off the Theme Updater.
|
||||
*
|
||||
* Deprecated in favor of instantating a Theme_Upgrader instance directly,
|
||||
* and calling the 'upgrade' method.
|
||||
* Unused since 2.8.0.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.7.0
|
||||
* @see Theme_Upgrader
|
||||
*/
|
||||
function wp_update_theme($theme, $feedback = '') {
|
||||
_deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
|
||||
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Theme_Upgrader();
|
||||
return $upgrader->upgrade($theme);
|
||||
}
|
||||
|
||||
/**
|
||||
* This was once used to display attachment links. Now it is deprecated and stubbed.
|
||||
*
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @deprecated 3.7.0
|
||||
*
|
||||
* @param unknown_type $id
|
||||
* @return unknown
|
||||
*/
|
||||
function the_attachment_links( $id = false ) {
|
||||
_deprecated_function( __FUNCTION__, '3.7' );
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* Displays a screen icon.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
|
||||
* @deprecated 3.8.0
|
||||
*/
|
||||
function screen_icon() {
|
||||
echo get_screen_icon();
|
||||
}
|
||||
function get_screen_icon() {
|
||||
return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
|
||||
}
|
||||
/**#@-*/
|
||||
|
||||
/**#@+
|
||||
* Deprecated dashboard widget controls.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @deprecated 3.8.0
|
||||
*/
|
||||
function wp_dashboard_incoming_links_output() {}
|
||||
function wp_dashboard_secondary_output() {}
|
||||
/**#@-*/
|
||||
|
||||
/**#@+
|
||||
* Deprecated dashboard widget controls.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @deprecated 3.8.0
|
||||
*/
|
||||
function wp_dashboard_incoming_links() {}
|
||||
function wp_dashboard_incoming_links_control() {}
|
||||
function wp_dashboard_plugins() {}
|
||||
function wp_dashboard_primary_control() {}
|
||||
function wp_dashboard_recent_comments_control() {}
|
||||
function wp_dashboard_secondary() {}
|
||||
function wp_dashboard_secondary_control() {}
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* This was once used to move child posts to a new parent.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.9.0
|
||||
* @access private
|
||||
*
|
||||
* @param int $old_ID
|
||||
* @param int $new_ID
|
||||
*/
|
||||
function _relocate_children( $old_ID, $new_ID ) {
|
||||
_deprecated_function( __FUNCTION__, '3.9' );
|
||||
}
|
||||
Reference in new issue
Block a user