mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Deprecate ancient "debugging" tools.
* logIO() and the global $xmlrpc_logging in XML-RPC. * log_app() and the global $app_logging in APP. * debug_fwrite(), debug_fopen(), debug_fclose(), and $debug. see #20051. git-svn-id: https://develop.svn.wordpress.org/trunk@19935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2564,7 +2564,7 @@ function is_term( $term, $taxonomy = '', $parent = 0 ) {
|
||||
* Is the current admin page generated by a plugin?
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @deprecated 3.1
|
||||
* @deprecated 3.1.0
|
||||
* @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
|
||||
*
|
||||
* @global $plugin_page
|
||||
@@ -2590,7 +2590,7 @@ function is_plugin_page() {
|
||||
* for updating the category cache.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @deprecated 3.1
|
||||
* @deprecated 3.1.0
|
||||
*
|
||||
* @return bool Always return True
|
||||
*/
|
||||
@@ -2604,7 +2604,7 @@ function update_category_cache() {
|
||||
* Check for PHP timezone support
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.2
|
||||
* @deprecated 3.2.0
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -2618,7 +2618,9 @@ function wp_timezone_supported() {
|
||||
* Display editor: TinyMCE, HTML, or both.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
* @deprecated Use wp_editor()
|
||||
* @see wp_editor()
|
||||
*
|
||||
* @param string $content Textarea content.
|
||||
* @param string $id Optional, default is 'content'. HTML ID attribute value.
|
||||
@@ -2627,6 +2629,7 @@ function wp_timezone_supported() {
|
||||
* @param int $tab_index Optional, not used
|
||||
*/
|
||||
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
|
||||
_deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
|
||||
|
||||
wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
|
||||
return;
|
||||
@@ -2636,6 +2639,8 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
|
||||
* Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @deprecated 3.3.0
|
||||
*
|
||||
* @param array $ids User ID numbers list.
|
||||
* @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays.
|
||||
*/
|
||||
@@ -2668,7 +2673,6 @@ function get_user_metavalues($ids) {
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.3.0
|
||||
* @uses sanitize_user_field() Used to sanitize the fields.
|
||||
*
|
||||
* @param object|array $user The User Object or Array
|
||||
* @param string $context Optional, default is 'display'. How to sanitize user fields.
|
||||
@@ -2705,7 +2709,7 @@ function sanitize_user_object($user, $context = 'display') {
|
||||
* Can either be start or end post relational link.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*
|
||||
* @param string $title Optional. Link title format.
|
||||
* @param bool $in_same_cat Optional. Whether link should be in a same category.
|
||||
@@ -2745,7 +2749,7 @@ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex
|
||||
* Display relational link for the first post.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*
|
||||
* @param string $title Optional. Link title format.
|
||||
* @param bool $in_same_cat Optional. Whether link should be in a same category.
|
||||
@@ -2761,7 +2765,7 @@ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_
|
||||
* Get site index relational link.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -2776,7 +2780,7 @@ function get_index_rel_link() {
|
||||
* Display relational link for the site index.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*/
|
||||
function index_rel_link() {
|
||||
_deprecated_function( __FUNCTION__, '3.3' );
|
||||
@@ -2788,7 +2792,7 @@ function index_rel_link() {
|
||||
* Get parent post relational link.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*
|
||||
* @param string $title Optional. Link title format.
|
||||
* @return string
|
||||
@@ -2819,7 +2823,7 @@ function get_parent_post_rel_link($title = '%title') {
|
||||
* Display relational link for parent item
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*/
|
||||
function parent_post_rel_link($title = '%title') {
|
||||
_deprecated_function( __FUNCTION__, '3.3' );
|
||||
@@ -2831,7 +2835,7 @@ function parent_post_rel_link($title = '%title') {
|
||||
* Add the "Dashboard"/"Visit Site" menu.
|
||||
*
|
||||
* @since 3.2.0
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
*/
|
||||
function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) {
|
||||
_deprecated_function( __FUNCTION__, '3.3' );
|
||||
@@ -2852,7 +2856,7 @@ function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) {
|
||||
* Checks if the current user belong to a given blog.
|
||||
*
|
||||
* @since MU
|
||||
* @deprecated 3.3
|
||||
* @deprecated 3.3.0
|
||||
* @deprecated Use is_user_member_of_blog()
|
||||
* @see is_user_member_of_blog()
|
||||
*
|
||||
@@ -2864,3 +2868,42 @@ function is_blog_user( $blog_id = 0 ) {
|
||||
|
||||
return is_user_member_of_blog( get_current_user_id(), $blog_id );
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the file handle for debugging.
|
||||
*
|
||||
* @since 0.71
|
||||
* @deprecated Use error_log()
|
||||
* @link http://www.php.net/manual/en/function.error-log.php
|
||||
* @deprecated 3.4.0
|
||||
*/
|
||||
function debug_fopen( $filename, $mode ) {
|
||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write contents to the file used for debugging.
|
||||
*
|
||||
* @since 0.71
|
||||
* @deprecated Use error_log() instead.
|
||||
* @link http://www.php.net/manual/en/function.error-log.php
|
||||
* @deprecated 3.4.0
|
||||
*/
|
||||
function debug_fwrite( $fp, $string ) {
|
||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
||||
if ( ! empty( $GLOBALS['debug'] ) )
|
||||
error_log( $string );
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the debugging file handle.
|
||||
*
|
||||
* @since 0.71
|
||||
* @deprecated Use error_log()
|
||||
* @link http://www.php.net/manual/en/function.error-log.php
|
||||
* @deprecated 3.4.0
|
||||
*/
|
||||
function debug_fclose( $fp ) {
|
||||
_deprecated_function( __FUNCTION__, 'error_log()' );
|
||||
}
|
||||
Reference in New Issue
Block a user