WordPress.org

Make WordPress Core

Ticket #16379: 16379.9.patch

File 16379.9.patch, 534 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-admin/includes/post.php

     
    13491349        }
    13501350
    13511351        // If a new front page was meant to be created, go forth and create it.
    1352         if ( 'new' == $_POST['page_on_front'] ) {
     1352        if ( ! isset( $_POST['page_on_front'] ) || 'new' == $_POST['page_on_front'] ) {
    13531353
    13541354                // If the user can't create pages, revert.
    13551355                if ( ! current_user_can( 'create_posts', 'page' ) ) {