[wp-trac] [WordPress Trac] #23012: Refresh the code for the default widgets

WordPress Trac noreply at wordpress.org
Thu Dec 20 01:49:37 UTC 2012


#23012: Refresh the code for the default widgets
-----------------------------+-------------------------
 Reporter:  Viper007Bond     |       Type:  enhancement
   Status:  new              |   Priority:  low
Milestone:  Awaiting Review  |  Component:  Widgets
  Version:  3.5              |   Severity:  minor
 Keywords:  needs-patch      |
-----------------------------+-------------------------
 The default widgets serve as examples for many people to make new widgets.
 We should make sure they're up to date in terms of coding standards and
 best practices. There's many places where this is not the case.

 A few examples:

 * `$instance['text'] = stripslashes( wp_filter_post_kses(
 addslashes($new_instance['text']) ) );`
 * `$text = esc_textarea($instance['text']);` rather than at output

 Also tons and tons of formatting issues.

 I'll volunteer to take this on.

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


More information about the wp-trac mailing list