mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-24 21:24:34 +00:00
Coding Standards: Fix spacing for incrementors and decrementors in various files.
Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -375,7 +375,7 @@ class Tests_REST_WpRestMenuItemsController extends WP_Test_REST_Post_Type_Contro
|
||||
$new_menu_id = wp_create_nav_menu( rand_str() );
|
||||
$expected = array();
|
||||
$actual = array();
|
||||
for ( $i = 1; $i < 5; $i ++ ) {
|
||||
for ( $i = 1; $i < 5; $i++ ) {
|
||||
$request = new WP_REST_Request( 'POST', '/wp/v2/menu-items' );
|
||||
$request->add_header( 'content-type', 'application/x-www-form-urlencoded' );
|
||||
$params = $this->set_menu_item_data(
|
||||
@@ -921,7 +921,7 @@ class Tests_REST_WpRestMenuItemsController extends WP_Test_REST_Post_Type_Contro
|
||||
foreach ( $taxonomies as $taxonomy ) {
|
||||
$this->assertSame( $taxonomy->name, $links['https://api.w.org/term'][ $num ]['attributes']['taxonomy'] );
|
||||
$this->assertSame( add_query_arg( 'post', $data['id'], rest_url( 'wp/v2/' . $taxonomy->rest_base ) ), $links['https://api.w.org/term'][ $num ]['href'] );
|
||||
$num ++;
|
||||
$num++;
|
||||
}
|
||||
|
||||
if ( 'post_type' === $data['type'] ) {
|
||||
|
||||
Reference in New Issue
Block a user