Make WordPress Core


Ignore:
Timestamp:
02/17/2012 12:02:42 AM (13 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r19684 r19935  
    25652565 *
    25662566 * @since 1.5.0
    2567  * @deprecated 3.1
     2567 * @deprecated 3.1.0
    25682568 * @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
    25692569 *
     
    25912591 *
    25922592 * @since 1.5.0
    2593  * @deprecated 3.1
     2593 * @deprecated 3.1.0
    25942594 *
    25952595 * @return bool Always return True
     
    26052605 *
    26062606 * @since 2.9.0
    2607  * @deprecated 3.2
     2607 * @deprecated 3.2.0
    26082608 *
    26092609 * @return bool
     
    26192619 *
    26202620 * @since 2.1.0
    2621  * @deprecated 3.3
     2621 * @deprecated 3.3.0
     2622 * @deprecated Use wp_editor()
     2623 * @see wp_editor()
    26222624 *
    26232625 * @param string $content Textarea content.
     
    26282630 */
    26292631function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
     2632    _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
    26302633
    26312634    wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
     
    26372640 *
    26382641 * @since 3.0.0
     2642 * @deprecated 3.3.0
     2643 *
    26392644 * @param array $ids User ID numbers list.
    26402645 * @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays.
     
    26692674 * @since 2.3.0
    26702675 * @deprecated 3.3.0
    2671  * @uses sanitize_user_field() Used to sanitize the fields.
    26722676 *
    26732677 * @param object|array $user The User Object or Array
     
    27062710 *
    27072711 * @since 2.8.0
    2708  * @deprecated 3.3
     2712 * @deprecated 3.3.0
    27092713 *
    27102714 * @param string $title Optional. Link title format.
     
    27462750 *
    27472751 * @since 2.8.0
    2748  * @deprecated 3.3
     2752 * @deprecated 3.3.0
    27492753 *
    27502754 * @param string $title Optional. Link title format.
     
    27622766 *
    27632767 * @since 2.8.0
    2764  * @deprecated 3.3
     2768 * @deprecated 3.3.0
    27652769 *
    27662770 * @return string
     
    27772781 *
    27782782 * @since 2.8.0
    2779  * @deprecated 3.3
     2783 * @deprecated 3.3.0
    27802784 */
    27812785function index_rel_link() {
     
    27892793 *
    27902794 * @since 2.8.0
    2791  * @deprecated 3.3
     2795 * @deprecated 3.3.0
    27922796 *
    27932797 * @param string $title Optional. Link title format.
     
    28202824 *
    28212825 * @since 2.8.0
    2822  * @deprecated 3.3
     2826 * @deprecated 3.3.0
    28232827 */
    28242828function parent_post_rel_link($title = '%title') {
     
    28322836 *
    28332837 * @since 3.2.0
    2834  * @deprecated 3.3
     2838 * @deprecated 3.3.0
    28352839 */
    28362840function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) {
     
    28532857 *
    28542858 * @since MU
    2855  * @deprecated 3.3
     2859 * @deprecated 3.3.0
    28562860 * @deprecated Use is_user_member_of_blog()
    28572861 * @see is_user_member_of_blog()
     
    28652869    return is_user_member_of_blog( get_current_user_id(), $blog_id );
    28662870}
     2871
     2872/**
     2873 * Open the file handle for debugging.
     2874 *
     2875 * @since 0.71
     2876 * @deprecated Use error_log()
     2877 * @link http://www.php.net/manual/en/function.error-log.php
     2878 * @deprecated 3.4.0
     2879 */
     2880function debug_fopen( $filename, $mode ) {
     2881    _deprecated_function( __FUNCTION__, 'error_log()' );
     2882    return false;
     2883}
     2884
     2885/**
     2886 * Write contents to the file used for debugging.
     2887 *
     2888 * @since 0.71
     2889 * @deprecated Use error_log() instead.
     2890 * @link http://www.php.net/manual/en/function.error-log.php
     2891 * @deprecated 3.4.0
     2892 */
     2893function debug_fwrite( $fp, $string ) {
     2894    _deprecated_function( __FUNCTION__, 'error_log()' );
     2895    if ( ! empty( $GLOBALS['debug'] ) )
     2896        error_log( $string );
     2897}
     2898
     2899/**
     2900 * Close the debugging file handle.
     2901 *
     2902 * @since 0.71
     2903 * @deprecated Use error_log()
     2904 * @link http://www.php.net/manual/en/function.error-log.php
     2905 * @deprecated 3.4.0
     2906 */
     2907function debug_fclose( $fp ) {
     2908    _deprecated_function( __FUNCTION__, 'error_log()' );
     2909}
Note: See TracChangeset for help on using the changeset viewer.