Make WordPress Core


Ignore:
Timestamp:
10/25/2016 06:30:27 AM (8 years ago)
Author:
westonruter
Message:

Customize: Allow page stubs to be created via dropdown-pages controls in the Static Front Page section.

This ability was previously added to nav menus via the available page items panel. The "Add New Page" button only appears when the allow_addition control param is supplied as true. Code is adapted from the Customize Posts feature plugin.

Props celloexpressions, westonruter.
See #38013, #34923.
Fixes #38164.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r38887 r38906  
    33573357            'section' => 'static_front_page',
    33583358            'type' => 'dropdown-pages',
     3359            'allow_addition' => true,
    33593360        ) );
    33603361
     
    33683369            'section' => 'static_front_page',
    33693370            'type' => 'dropdown-pages',
     3371            'allow_addition' => true,
    33703372        ) );
    33713373
Note: See TracChangeset for help on using the changeset viewer.