Make WordPress Core

Ticket #32455: 32455.patch

File 32455.patch, 1.6 KB (added by janhenckens, 10 years ago)

Changes to section title & id's to Front Page / front_page

  • src/wp-includes/class-wp-customize-manager.php

    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index 8d78bdd..47d58e9 100644
    a b final class WP_Customize_Manager { 
    14421442
    14431443                // Replicate behavior from options-reading.php and hide front page options if there are no pages
    14441444                if ( get_pages() ) {
    1445                         $this->add_section( 'static_front_page', array(
    1446                                 'title'          => __( 'Static Front Page' ),
     1445                        $this->add_section( 'front_page', array(
     1446                                'title'          => __( 'Front Page' ),
    14471447                        //      'theme_supports' => 'static-front-page',
    14481448                                'priority'       => 120,
    14491449                                'description'    => __( 'Your theme supports a static front page.' ),
    final class WP_Customize_Manager { 
    14581458
    14591459                        $this->add_control( 'show_on_front', array(
    14601460                                'label'   => __( 'Front page displays' ),
    1461                                 'section' => 'static_front_page',
     1461                                'section' => 'front_page',
    14621462                                'type'    => 'radio',
    14631463                                'choices' => array(
    14641464                                        'posts' => __( 'Your latest posts' ),
    final class WP_Customize_Manager { 
    14741474
    14751475                        $this->add_control( 'page_on_front', array(
    14761476                                'label'      => __( 'Front page' ),
    1477                                 'section'    => 'static_front_page',
     1477                                'section'    => 'front_page',
    14781478                                'type'       => 'dropdown-pages',
    14791479                        ) );
    14801480
    final class WP_Customize_Manager { 
    14861486
    14871487                        $this->add_control( 'page_for_posts', array(
    14881488                                'label'      => __( 'Posts page' ),
    1489                                 'section'    => 'static_front_page',
     1489                                'section'    => 'front_page',
    14901490                                'type'       => 'dropdown-pages',
    14911491                        ) );
    14921492                }