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/class-wp-xmlrpc-server.php

    r19914 r19935  
    27012701        $this->attach_uploads( $post_ID, $post_content );
    27022702
    2703         logIO('O', "Posted ! ID: $post_ID");
    2704 
    27052703        return $post_ID;
    27062704    }
     
    30473045        if ( isset( $content_struct['categories'] ) ) {
    30483046            $catnames = $content_struct['categories'];
    3049             logIO('O', 'Post cats: ' . var_export($catnames,true));
    30503047
    30513048            if ( is_array($catnames) ) {
     
    30883085        if ( !$post_ID )
    30893086            return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));
    3090 
    3091         logIO('O', "Posted ! ID: $post_ID");
    30923087
    30933088        return strval($post_ID);
     
    33813376        if ( isset( $content_struct['wp_post_format'] ) )
    33823377            wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' );
    3383 
    3384         logIO('O',"(MW) Edited ! ID: $post_ID");
    33853378
    33863379        return true;
     
    36963689        $bits = $data['bits'];
    36973690
    3698         logIO('O', '(MW) Received '.strlen($bits).' bytes');
    3699 
    37003691        if ( !$user = $this->login($username, $password) )
    37013692            return $this->error;
     
    37043695
    37053696        if ( !current_user_can('upload_files') ) {
    3706             logIO('O', '(MW) User does not have upload_files capability');
    37073697            $this->error = new IXR_Error(401, __('You are not allowed to upload files to this site.'));
    37083698            return $this->error;
     
    37333723        if ( ! empty($upload['error']) ) {
    37343724            $errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']);
    3735             logIO('O', '(MW) ' . $errorString);
    37363725            return new IXR_Error(500, $errorString);
    37373726        }
     
    41204109        $post_ID = (int) $post_ID;
    41214110
    4122         logIO("O","(PB) URL='$pagelinkedto' ID='$post_ID' Found='$way'");
    4123 
    41244111        $post = get_post($post_ID);
    41254112
Note: See TracChangeset for help on using the changeset viewer.