Skip to content

Commit 9bbef09

Browse files
committed
Posts, Post Types: Increase the input field's width in the Slug metabox.
This changeset adds a `large-text` attribute and removes the `size` attribute of the text input field located in the Slug metabox. It improves its usability, at least for as long as the Slug metabox is available in the Classic Editor. Props ABTOP, nacin, helen, sabernhardt, abitofmind, tyxla, audrasjb. Fixes #16346. git-svn-id: https://develop.svn.wordpress.org/trunk@55113 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ea08277 commit 9bbef09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/meta-boxes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ function post_slug_meta_box( $post ) {
888888
/** This filter is documented in wp-admin/edit-tag-form.php */
889889
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
890890
?>
891-
<label class="screen-reader-text" for="post_name"><?php _e( 'Slug' ); ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
891+
<label class="screen-reader-text" for="post_name"><?php _e( 'Slug' ); ?></label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
892892
<?php
893893
}
894894

0 commit comments

Comments
 (0)