mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
4.1 Docs Audit: Fix a variety of issues with the DocBlock for the default_page_template_title
filter.
Includes hyphenating 'drop-down', ensuring the DocBlock itself is correctly indented, and wraps lines at an appropriate length. See #30469. git-svn-id: https://develop.svn.wordpress.org/trunk@30601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba21c68c23
commit
ea4da9e13c
@ -745,14 +745,15 @@ function page_attributes_meta_box($post) {
|
||||
<p><strong><?php _e('Template') ?></strong></p>
|
||||
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
||||
<?php
|
||||
/**
|
||||
* Filter the title of the default page template displayed in the dropdown.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param string $label The display value for the default page template title.
|
||||
* @param string $context Where the option label is displayed. Possible values include 'meta-box' and 'quick-edit'.
|
||||
*/
|
||||
/**
|
||||
* Filter the title of the default page template displayed in the drop-down.
|
||||
*
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param string $label The display value for the default page template title.
|
||||
* @param string $context Where the option label is displayed. Possible values
|
||||
* include 'meta-box' or 'quick-edit'.
|
||||
*/
|
||||
$default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'meta-box' );
|
||||
?>
|
||||
<option value="default"><?php echo esc_html( $default_title ); ?></option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user