WordPress.org

Make WordPress Core

Ticket #50030: edit-form-blocks.diff

File edit-form-blocks.diff, 844 bytes (added by sandesh055, 12 months ago)

Fix of the default template value bug

  • edit-form-blocks.php

     
     1Index: wp-admin/edit-form-blocks.php
     2===================================================================
     3--- wp-admin/edit-form-blocks.php       (revision 47631)
     4+++ wp-admin/edit-form-blocks.php       (working copy)
     5@@ -159,7 +159,7 @@
     6 $available_templates = ! empty( $available_templates ) ? array_merge(
     7        array(
     8                /** This filter is documented in wp-admin/includes/meta-boxes.php */
     9-               '' => apply_filters( 'default_page_template_title', __( 'Default template' ), 'rest-api' ),
     10+               'default' => apply_filters( 'default_page_template_title', __( 'Default template' ), 'rest-api' ),
     11        ),
     12        $available_templates
     13 ) : $available_templates;