WordPress.org

Make WordPress Core

Changeset 647 in tests


Ignore:
Timestamp:
04/08/12 13:26:55 (2 years ago)
Author:
duck_
Message:

Stop using deprecated argument when calling wp_upload_bits().

Location:
wp-testcase
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test-xmlrpc-api/test_mw_editPost.php

    r594 r647  
    9797        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    9898        $contents = file_get_contents( $filename ); 
    99         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     99        $upload = wp_upload_bits( $filename, null, $contents ); 
    100100        $this->assertTrue( empty( $upload['error'] ) ); 
    101101 
  • wp-testcase/test-xmlrpc-api/test_mw_getPost.php

    r603 r647  
    100100        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    101101        $contents = file_get_contents( $filename ); 
    102         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     102        $upload = wp_upload_bits( $filename, null, $contents ); 
    103103        $this->assertTrue( empty( $upload['error'] ) ); 
    104104 
  • wp-testcase/test-xmlrpc-api/test_mw_getRecentPosts.php

    r646 r647  
    9797        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    9898        $contents = file_get_contents( $filename ); 
    99         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     99        $upload = wp_upload_bits( $filename, null, $contents ); 
    100100        $this->assertTrue( empty( $upload['error'] ) ); 
    101101 
  • wp-testcase/test-xmlrpc-api/test_mw_newPost.php

    r606 r647  
    9090        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    9191        $contents = file_get_contents( $filename ); 
    92         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     92        $upload = wp_upload_bits( $filename, null, $contents ); 
    9393        $this->assertTrue( empty( $upload['error'] ) ); 
    9494 
  • wp-testcase/test-xmlrpc-api/test_wp_editPost.php

    r556 r647  
    9797        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    9898        $contents = file_get_contents( $filename ); 
    99         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     99        $upload = wp_upload_bits( $filename, null, $contents ); 
    100100        $this->assertTrue( empty( $upload['error'] ) ); 
    101101 
  • wp-testcase/test-xmlrpc-api/test_wp_newPost.php

    r563 r647  
    8989        $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 
    9090        $contents = file_get_contents( $filename ); 
    91         $upload = wp_upload_bits( $filename, 'image/jpeg', $contents ); 
     91        $upload = wp_upload_bits( $filename, null, $contents ); 
    9292        $this->assertTrue( empty( $upload['error'] ) ); 
    9393 
  • wp-testcase/test_includes_post.php

    r643 r647  
    483483        $contents = rand_str(); 
    484484 
    485         $upload = wp_upload_bits($filename, 'image/jpeg', $contents); 
     485        $upload = wp_upload_bits($filename, null, $contents); 
    486486        $this->assertTrue( empty($upload['error']) ); 
    487487 
     
    495495        $contents = file_get_contents($filename); 
    496496 
    497         $upload = wp_upload_bits(basename($filename), 'image/jpeg', $contents); 
     497        $upload = wp_upload_bits(basename($filename), null, $contents); 
    498498        $this->assertTrue( empty($upload['error']) ); 
    499499 
     
    523523        $contents = file_get_contents($filename); 
    524524 
    525         $upload = wp_upload_bits(basename($filename), 'image/jpeg', $contents); 
     525        $upload = wp_upload_bits(basename($filename), null, $contents); 
    526526        $this->assertTrue( empty($upload['error']) ); 
    527527 
     
    568568        $contents = file_get_contents($filename); 
    569569 
    570         $upload = wp_upload_bits(basename($filename), 'image/jpeg', $contents); 
     570        $upload = wp_upload_bits(basename($filename), null, $contents); 
    571571        $this->assertTrue( empty($upload['error']) ); 
    572572 
     
    613613        $contents = file_get_contents($filename); 
    614614 
    615         $upload = wp_upload_bits(basename($filename), 'image/jpeg', $contents); 
     615        $upload = wp_upload_bits(basename($filename), null, $contents); 
    616616        $this->assertTrue( empty($upload['error']) ); 
    617617 
Note: See TracChangeset for help on using the changeset viewer.