WordPress.org

Make WordPress Core

Ticket #17296: 17296.diff

File 17296.diff, 3.4 KB (added by solarissmoke, 4 years ago)
  • wp-admin/includes/meta-boxes.php

     
    875875<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5"> 
    876876        <tr class="form-field"> 
    877877                <th valign="top"  scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> 
    878                 <td><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></td> 
     878                <td><input type="text" name="link_image" class="code" id="link_image" size="50" maxlength="255" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></td> 
    879879        </tr> 
    880880        <tr class="form-field"> 
    881881                <th valign="top"  scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> 
    882                 <td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo  ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td> 
     882                <td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo  ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" maxlength="255" style="width: 95%" /></td> 
    883883        </tr> 
    884884        <tr class="form-field"> 
    885885                <th valign="top"  scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th> 
  • wp-admin/edit-link-form.php

     
    8585<div id="namediv" class="stuffbox"> 
    8686<h3><label for="link_name"><?php _e('Name') ?></label></h3> 
    8787<div class="inside"> 
    88         <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 
     88        <input type="text" name="link_name" size="30" maxlength="255" tabindex="1" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 
    8989    <p><?php _e('Example: Nifty blogging software'); ?></p> 
    9090</div> 
    9191</div> 
     
    9393<div id="addressdiv" class="stuffbox"> 
    9494<h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 
    9595<div class="inside"> 
    96         <input type="text" name="link_url" size="30" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 
     96        <input type="text" name="link_url" size="30" maxlength="255" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 
    9797    <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p> 
    9898</div> 
    9999</div> 
     
    101101<div id="descriptiondiv" class="stuffbox"> 
    102102<h3><label for="link_description"><?php _e('Description') ?></label></h3> 
    103103<div class="inside"> 
    104         <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 
     104        <input type="text" name="link_description" size="30" maxlength="255" tabindex="1" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 
    105105    <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p> 
    106106</div> 
    107107</div>