Make WordPress Core


Ignore:
Timestamp:
11/20/2019 06:47:08 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Customize: If the return URL for Close button is a page added to the Appearance menu by a deactivated theme, fall back to the Themes screen.

Props JarretC, Jean-David, SergeyBiryukov.
Fixes #46686.

File:
1 edited

Legend:

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

    r46586 r46754  
    28312831
    28322832    /**
     2833     * @ticket 46686
     2834     */
     2835    function test_return_url_with_deactivated_theme() {
     2836        $this->manager->set_return_url( admin_url( 'themes.php?page=mytheme_documentation' ) );
     2837        $this->assertEquals( admin_url( 'themes.php' ), $this->manager->get_return_url() );
     2838    }
     2839
     2840    /**
    28332841     * Test get_autofocus()/set_autofocus() methods.
    28342842     *
Note: See TracChangeset for help on using the changeset viewer.