Skip to content

Commit 08b2f9c

Browse files
committed
Menus: Revert some unintentional whitespace changes introduced in r60815.
Unprops johnbillion. git-svn-id: https://develop.svn.wordpress.org/trunk@60816 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9845384 commit 08b2f9c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

tests/phpunit/tests/customize/nav-menu-item-setting.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ public function test_value_type_post_type() {
172172
$menu_id,
173173
0,
174174
array(
175-
'menu-item-type' => 'post_type',
176-
'menu-item-object' => 'post',
177-
'menu-item-object-id' => $post_id,
178-
'menu-item-title' => $item_title,
179-
'menu-item-status' => 'publish',
175+
'menu-item-type' => 'post_type',
176+
'menu-item-object' => 'post',
177+
'menu-item-object-id' => $post_id,
178+
'menu-item-title' => $item_title,
179+
'menu-item-status' => 'publish',
180180
)
181181
);
182182

@@ -198,7 +198,7 @@ public function test_value_type_post_type() {
198198
wp_update_nav_menu_item(
199199
$other_menu_id,
200200
$item_id,
201-
array(
201+
array(
202202
'menu-item-title' => 'Hola',
203203
)
204204
);

tests/phpunit/tests/customize/nav-menus.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -789,24 +789,24 @@ public function test_available_items_template() {
789789

790790
$this->assertNotEmpty( $post_types );
791791

792-
foreach ( $post_types as $type ) {
793-
$this->assertStringContainsString( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template );
794-
$this->assertMatchesRegularExpression( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s*' . esc_html( $type->labels->name ) . '#', $template );
795-
$this->assertStringContainsString( 'data-type="post_type"', $template );
796-
$this->assertStringContainsString( 'data-object="' . esc_attr( $type->name ) . '"', $template );
797-
$this->assertStringContainsString( 'data-type_label="' . esc_attr( $type->labels->singular_name ) . '"', $template );
792+
foreach ( $post_types as $type ) {
793+
$this->assertStringContainsString( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template );
794+
$this->assertMatchesRegularExpression( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s*' . esc_html( $type->labels->name ) . '#', $template );
795+
$this->assertStringContainsString( 'data-type="post_type"', $template );
796+
$this->assertStringContainsString( 'data-object="' . esc_attr( $type->name ) . '"', $template );
797+
$this->assertStringContainsString( 'data-type_label="' . esc_attr( $type->labels->singular_name ) . '"', $template );
798798
}
799799

800800
$taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' );
801801

802802
$this->assertNotEmpty( $taxonomies );
803803

804-
foreach ( $taxonomies as $tax ) {
805-
$this->assertStringContainsString( 'available-menu-items-taxonomy-' . esc_attr( $tax->name ), $template );
806-
$this->assertMatchesRegularExpression( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s*' . esc_html( $tax->labels->name ) . '#', $template );
807-
$this->assertStringContainsString( 'data-type="taxonomy"', $template );
808-
$this->assertStringContainsString( 'data-object="' . esc_attr( $tax->name ) . '"', $template );
809-
$this->assertStringContainsString( 'data-type_label="' . esc_attr( $tax->labels->singular_name ) . '"', $template );
804+
foreach ( $taxonomies as $tax ) {
805+
$this->assertStringContainsString( 'available-menu-items-taxonomy-' . esc_attr( $tax->name ), $template );
806+
$this->assertMatchesRegularExpression( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s*' . esc_html( $tax->labels->name ) . '#', $template );
807+
$this->assertStringContainsString( 'data-type="taxonomy"', $template );
808+
$this->assertStringContainsString( 'data-object="' . esc_attr( $tax->name ) . '"', $template );
809+
$this->assertStringContainsString( 'data-type_label="' . esc_attr( $tax->labels->singular_name ) . '"', $template );
810810
}
811811

812812
$this->assertStringContainsString( 'available-menu-items-custom_type', $template );

0 commit comments

Comments
 (0)