Make WordPress Core


Ignore:
Timestamp:
10/20/2016 05:12:26 AM (8 years ago)
Author:
rachelbaker
Message:

REST API: Fix test failures.

  • Fix leak in setup_notify_comment() test help by removing the comment_flood_filter.
  • Correct uses of $term_taxonomy_id -> $term_id in Category and Tags routing.
  • Temporarily remove the metadata tests for canola.jpg as that file does not have an exifdata. Will need to update the test.

Props jorbin, rmccue, nacin
See #38373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment.php

    r38763 r38834  
    461461
    462462        remove_filter( 'notify_moderator', '__return_false' );
    463 
     463        remove_filter( 'comment_flood_filter', '__return_false' );
    464464    }
    465465
     
    482482
    483483        remove_filter( 'notify_moderator', '__return_true' );
     484        remove_filter( 'comment_flood_filter', '__return_false' );
    484485    }
    485486
     
    503504
    504505        remove_filter( 'notify_post_author', '__return_false' );
     506        remove_filter( 'comment_flood_filter', '__return_false' );
    505507    }
    506508
     
    523525
    524526        remove_filter( 'notify_post_author', '__return_true' );
     527        remove_filter( 'comment_flood_filter', '__return_false' );
    525528    }
    526529
Note: See TracChangeset for help on using the changeset viewer.