WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/25/2016 06:30:27 AM (5 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-nav-menus.php

    r38810 r38906  
    371371                'unnamed'           => _x( '(unnamed)', 'Missing menu name.' ),
    372372                'custom_label'      => __( 'Custom Link' ),
     373                'page_label'        => get_post_type_object( 'page' )->labels->singular_name,
    373374                /* translators: %s: menu location */
    374375                'menuLocation'      => _x( '(Currently set to: %s)', 'menu' ),
Note: See TracChangeset for help on using the changeset viewer.