Make WordPress Core


Ignore:
Timestamp:
03/18/2017 03:22:08 AM (7 years ago)
Author:
westonruter
Message:

Customize: Trailingslash the home nav menu item URL in starter content.

This prevents an additional 301 redirect when clicking on the nav menu item, and it also prevents a scenario where the auth cookie may not be passed and cause an authentication error when navigating in the customizer.

Props dlh, swissspidy.
Fixes #40112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/manager.php

    r40142 r40300  
    491491        $this->assertEquals( 0, $changeset_values['nav_menu_item[-1]']['object_id'] );
    492492        $this->assertEquals( 'custom', $changeset_values['nav_menu_item[-1]']['type'] );
    493         $this->assertEquals( home_url(), $changeset_values['nav_menu_item[-1]']['url'] );
     493        $this->assertEquals( home_url( '/' ), $changeset_values['nav_menu_item[-1]']['url'] );
    494494
    495495        $this->assertEmpty( $wp_customize->changeset_data() );
Note: See TracChangeset for help on using the changeset viewer.