WordPress.org

Make WordPress Core

Changeset 25670


Ignore:
Timestamp:
10/02/13 21:10:24 (7 months ago)
Author:
nacin
Message:

Links manager: Restrict field length based on DB schema.

props solarissmoke, vinod-dalvi.
fixes #17296, #12264.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-link-form.php

    r25616 r25670  
    8383<h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3> 
    8484<div class="inside"> 
    85     <input type="text" name="link_name" size="30" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 
     85    <input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 
    8686    <p><?php _e('Example: Nifty blogging software'); ?></p> 
    8787</div> 
     
    9191<h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 
    9292<div class="inside"> 
    93     <input type="text" name="link_url" size="30" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 
     93    <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 
    9494    <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p> 
    9595</div> 
     
    9999<h3><label for="link_description"><?php _e('Description') ?></label></h3> 
    100100<div class="inside"> 
    101     <input type="text" name="link_description" size="30" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 
     101    <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" /> 
    102102    <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p> 
    103103</div> 
  • trunk/src/wp-admin/includes/meta-boxes.php

    r25591 r25670  
    963963    <tr> 
    964964        <th scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> 
    965         <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> 
     965        <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> 
    966966    </tr> 
    967967    <tr> 
    968968        <th scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> 
    969         <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> 
     969        <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> 
    970970    </tr> 
    971971    <tr> 
Note: See TracChangeset for help on using the changeset viewer.