Links manager: Restrict field length based on DB schema.
props solarissmoke, vinod-dalvi. fixes #17296, #12264. git-svn-id: https://develop.svn.wordpress.org/trunk@25670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6311fbbfdb
commit
69a17e3469
@ -82,7 +82,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
|||||||
<div id="namediv" class="stuffbox">
|
<div id="namediv" class="stuffbox">
|
||||||
<h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3>
|
<h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3>
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<input type="text" name="link_name" size="30" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" />
|
<input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" />
|
||||||
<p><?php _e('Example: Nifty blogging software'); ?></p>
|
<p><?php _e('Example: Nifty blogging software'); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -90,7 +90,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
|||||||
<div id="addressdiv" class="stuffbox">
|
<div id="addressdiv" class="stuffbox">
|
||||||
<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
|
<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<input type="text" name="link_url" size="30" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
|
<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
|
||||||
<p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p>
|
<p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -98,7 +98,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
|||||||
<div id="descriptiondiv" class="stuffbox">
|
<div id="descriptiondiv" class="stuffbox">
|
||||||
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
|
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<input type="text" name="link_description" size="30" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" />
|
<input type="text" name="link_description" size="30" maxlength="255" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" />
|
||||||
<p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
|
<p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -962,11 +962,11 @@ function link_advanced_meta_box($link) {
|
|||||||
<table class="links-table" cellpadding="0">
|
<table class="links-table" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
|
<th scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
|
||||||
<td><input type="text" name="link_image" class="code" id="link_image" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" /></td>
|
<td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
|
<th scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
|
||||||
<td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" /></td>
|
<td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
|
<th scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
|
||||||
|
Loading…
Reference in New Issue
Block a user