Commit Graph

168 Commits

Author SHA1 Message Date
Mark Jaquith
f0336cfa7d deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Andrew Ozz
4bf2deac13 Add param to the widget_display_callback hook, props Denis-de-Bernardy, fixes #9852
git-svn-id: https://develop.svn.wordpress.org/trunk@11374 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-17 19:36:28 +00:00
Andrew Ozz
765f9798d4 Add a function to output a generic widget anywhere in a template, props Denis-de-Bernardy, fixes #9701
git-svn-id: https://develop.svn.wordpress.org/trunk@11317 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-13 20:43:49 +00:00
Ryan Boren
c3d1eafb7d Fix widget registration with PHP 4. see #9800
git-svn-id: https://develop.svn.wordpress.org/trunk@11310 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 19:17:30 +00:00
Andrew Ozz
58a1c4ac9e Lowercase widgets $id_base, props Denis-de-Bernardy, fixes #9797
git-svn-id: https://develop.svn.wordpress.org/trunk@11308 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 17:56:04 +00:00
Peter Westwood
8e3c9121f8 Fix notices when an in-use widget is deleted. See #9393 props nbachiyski
git-svn-id: https://develop.svn.wordpress.org/trunk@11229 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-07 06:59:06 +00:00
Andrew Ozz
a2bbfe9f26 Make is_active_widget() optionally look in 'wp_inactive_widgets' for use in the admin
git-svn-id: https://develop.svn.wordpress.org/trunk@11164 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-03 23:20:26 +00:00
Andrew Ozz
d578c68a73 Widgets UI styling, see #9511
git-svn-id: https://develop.svn.wordpress.org/trunk@11160 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-03 05:27:13 +00:00
Andrew Ozz
d9e724974f Add action "in_widget_form" allowing plugins to add extra fields, don't show "Save" button if a widget doesn't have settings form, fixes #9651
git-svn-id: https://develop.svn.wordpress.org/trunk@11155 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-02 00:21:16 +00:00
Andrew Ozz
b1c90ff067 Add is_active_sidebar(), props filosofo, fixes #4594
git-svn-id: https://develop.svn.wordpress.org/trunk@11134 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 04:26:34 +00:00
Ryan Boren
eedcfbbc2b Remove call-time pass-by-ref. Props jbsil. see #9651
git-svn-id: https://develop.svn.wordpress.org/trunk@11097 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 16:09:49 +00:00
Andrew Ozz
93ce9fc60b Add hooks to WP_Widget, props ceenz, fixes #9651, see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@11095 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-27 10:56:29 +00:00
Andrew Ozz
9a7f9d2ae1 Move recent comments widget to WP_Widget, extend is_active_widget() to use $id_base, see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@11090 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-26 20:09:08 +00:00
Andrew Ozz
78bb20529a Fix conversion of old widget settings for Recent Posts, see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@11088 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-26 05:34:06 +00:00
Andrew Ozz
1ad72b3d59 Move recent posts widget to WP_Widget. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@11087 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-25 12:43:51 +00:00
Andrew Ozz
da385d8a79 Upgrade widget options only from admin, props ryan, fixes #9629
git-svn-id: https://develop.svn.wordpress.org/trunk@11074 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-24 06:27:06 +00:00
Andrew Ozz
75dba91661 Optionally use the class name as id_base, see #9511
git-svn-id: https://develop.svn.wordpress.org/trunk@11045 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 04:01:20 +00:00
Ryan Boren
b9bfa4aade Handle upgrade of old text widgets. Props Denis-de-Bernardy. fixes #9608
git-svn-id: https://develop.svn.wordpress.org/trunk@11030 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-21 19:40:20 +00:00
Ryan Boren
12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Andrew Ozz
cf45258321 Add and edit widget when js is disabled, see #9511
git-svn-id: https://develop.svn.wordpress.org/trunk@11009 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 10:58:50 +00:00
Ryan Boren
4fbd3a712a Fix unregister_widget(). see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10991 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 20:45:33 +00:00
Ryan Boren
19ee134325 unregister_widget(). see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10979 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 05:54:07 +00:00
Andrew Ozz
8e48888e47 Widgets page, first run, see #9511
git-svn-id: https://develop.svn.wordpress.org/trunk@10912 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-11 14:37:24 +00:00
Ryan Boren
9b39471cc0 Move WP_Widget to the top
git-svn-id: https://develop.svn.wordpress.org/trunk@10822 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-19 22:10:18 +00:00
Ryan Boren
f6273323c0 Add some phpdoc to WP_Widget. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10812 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 07:20:58 +00:00
Ryan Boren
8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Ryan Boren
0b25a700cb Introduce singleton widget factory
git-svn-id: https://develop.svn.wordpress.org/trunk@10808 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-17 23:44:36 +00:00
Ryan Boren
184e5b69e8 Echo submit field from base class so widgets don't have to do it.
git-svn-id: https://develop.svn.wordpress.org/trunk@10807 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-17 21:20:19 +00:00
Ryan Boren
ea91a8791a Move submit check into WP_Widget
git-svn-id: https://develop.svn.wordpress.org/trunk@10801 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-17 02:58:15 +00:00
Ryan Boren
b05ffb1229 Separate widget form and update callbacks.
git-svn-id: https://develop.svn.wordpress.org/trunk@10798 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-17 00:59:42 +00:00
Ryan Boren
90931b60f0 Separate default widgets from widgets API. Always load API. fixes #9349
git-svn-id: https://develop.svn.wordpress.org/trunk@10795 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-16 22:02:40 +00:00
Ryan Boren
cf340322af Move archives widget to WP_Widget. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10794 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-16 21:44:36 +00:00
Andrew Ozz
7efda16c61 Fix php warning in widgets.php, props zeronex, fixes #9330
git-svn-id: https://develop.svn.wordpress.org/trunk@10789 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-15 11:18:09 +00:00
Ryan Boren
5685b381a9 Prune. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10786 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-14 17:25:59 +00:00
Ryan Boren
5ec8505579 Convert pages to WP_Widget. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10785 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-14 17:24:11 +00:00
Ryan Boren
d20a34c176 Convert search to WP_Widget. Handle upgrade of widgets without settings. Make form and update override optional. see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10784 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-14 16:34:08 +00:00
Ryan Boren
b114706bcb s/WP_Widgets/WP_Widget/ and move class to widgets.php
git-svn-id: https://develop.svn.wordpress.org/trunk@10782 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 23:18:57 +00:00
Andrew Ozz
3689f64ee3 WP_Widgets: make save_settings() and get_settings() separate methods, convert defined single widgets settings to multi-widget format, small fixes for the Links widget, see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10781 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 22:27:38 +00:00
Ryan Boren
5d8651d6f3 gettext comments. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 03:53:39 +00:00
Andrew Ozz
bcb764b964 Add WP_Widget class, first run - only the Links widget is using it at the moment, see #8441
git-svn-id: https://develop.svn.wordpress.org/trunk@10764 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 19:42:22 +00:00
Andrew Ozz
82cf6e6383 Better error handling and display in the RSS widget, props DD32, fixes #8495
git-svn-id: https://develop.svn.wordpress.org/trunk@10742 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-08 05:01:26 +00:00
Andrew Ozz
ec97268ea7 Add RSS Error handling functionality to RSS Widget displays, props DD32, fixes #9273
git-svn-id: https://develop.svn.wordpress.org/trunk@10739 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-07 19:44:28 +00:00
Ryan Boren
c892071f81 Links widget options. Props DD32. see #9196
git-svn-id: https://develop.svn.wordpress.org/trunk@10712 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 23:49:21 +00:00
Ryan Boren
ee2a7bf311 Add RSS Error handling functionality to RSS Widget displays. Props DD32. fixes #9273
git-svn-id: https://develop.svn.wordpress.org/trunk@10697 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 19:24:48 +00:00
Ryan Boren
91e3bd9358 Pass blog charset to html_entity_decode(). Props adferguson. fixes #7563
git-svn-id: https://develop.svn.wordpress.org/trunk@10688 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-03 18:37:25 +00:00
Peter Westwood
1a9d6601e2 Don't pass defaulted argument to checked(). Fixes #9032 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@10670 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-27 22:15:14 +00:00
Ryan Boren
7062db47c2 Use SimplePie for widget and dashboard feeds. First cut. see #9198
git-svn-id: https://develop.svn.wordpress.org/trunk@10666 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-27 19:32:50 +00:00
Andrew Ozz
7e98d2b7f8 Documentation correction: is_active_widget(), props mdawaffe, fixes #9080
git-svn-id: https://develop.svn.wordpress.org/trunk@10535 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-10 15:22:08 +00:00
Ryan Boren
2719acb8ed Default to empty array if sidebars_widgets is not set. Don't unset array_version if not set. fixes #8804 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10314 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-05 23:03:17 +00:00
Andrew Ozz
60f217cdc4 Clean URL in recent comments widget, props danlee, fixes #8691 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10308 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-05 12:02:05 +00:00