[wp-trac] [WordPress Trac] #20706: Adding a link without a name or web address yields no (error) feedback

WordPress Trac wp-trac at lists.automattic.com
Sat May 19 00:42:57 UTC 2012


#20706: Adding a link without a name or web address yields no (error) feedback
-------------------------+------------------------------------
 Reporter:  AVReidy      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  minor        |   Keywords:  has-patch dev-feedback
-------------------------+------------------------------------
 If a user successfully creates a link (on link-add.php), the user receives
 the message "Link added." However, there are no measures taken to notify
 the user if the link was ''not'' successfully added.

 Links are not added when the link name and web address fields are left
 blank, so I have included a little patch to let the user know when this
 occurs.

 This could be done with some JavaScript form validation that makes an
 alert box pop up, but half the (PHP/HTML) code was already present for
 this, and I think it looks better this way, personally. This is my first
 attempt at submitting a patch to any open source project, so I appreciate
 your feedback. Thanks!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20706>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list