Make WordPress Core


Ignore:
Timestamp:
01/22/2023 11:10:00 AM (21 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r55040 r55113  
    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}
Note: See TracChangeset for help on using the changeset viewer.