Commit Graph

145 Commits

Author SHA1 Message Date
ryan 782b99b451 Move WP_Widget to the top
git-svn-id: http://svn.automattic.com/wordpress/trunk@10822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-19 22:10:18 +00:00
ryan 6de4ae1ad8 Add some phpdoc to WP_Widget. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 07:20:58 +00:00
ryan e8b6fe7347 Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-18 02:43:45 +00:00
ryan 1eab8fccb2 Introduce singleton widget factory
git-svn-id: http://svn.automattic.com/wordpress/trunk@10808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-17 23:44:36 +00:00
ryan 1183bfa70b Echo submit field from base class so widgets don't have to do it.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-17 21:20:19 +00:00
ryan 226ef505b3 Move submit check into WP_Widget
git-svn-id: http://svn.automattic.com/wordpress/trunk@10801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-17 02:58:15 +00:00
ryan 733e7592c6 Separate widget form and update callbacks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-17 00:59:42 +00:00
ryan 48000c9225 Separate default widgets from widgets API. Always load API. fixes #9349
git-svn-id: http://svn.automattic.com/wordpress/trunk@10795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-16 22:02:40 +00:00
ryan 64e36ff286 Move archives widget to WP_Widget. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-16 21:44:36 +00:00
azaozz 922fe713df Fix php warning in widgets.php, props zeronex, fixes #9330
git-svn-id: http://svn.automattic.com/wordpress/trunk@10789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-15 11:18:09 +00:00
ryan d80df1030c Prune. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-14 17:25:59 +00:00
ryan 77518dd6ca Convert pages to WP_Widget. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-14 17:24:11 +00:00
ryan 06f219dc4f Convert search to WP_Widget. Handle upgrade of widgets without settings. Make form and update override optional. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-14 16:34:08 +00:00
ryan 5a1c07d42f s/WP_Widgets/WP_Widget/ and move class to widgets.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@10782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-13 23:18:57 +00:00
azaozz adf37601bb 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: http://svn.automattic.com/wordpress/trunk@10781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-13 22:27:38 +00:00
ryan b1222311f7 gettext comments. Props nbachiyski. see #9112
git-svn-id: http://svn.automattic.com/wordpress/trunk@10774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-13 03:53:39 +00:00
azaozz 8247b5df4f Add WP_Widget class, first run - only the Links widget is using it at the moment, see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-10 19:42:22 +00:00
azaozz 6198cca609 Better error handling and display in the RSS widget, props DD32, fixes #8495
git-svn-id: http://svn.automattic.com/wordpress/trunk@10742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-08 05:01:26 +00:00
azaozz a2fccc011b Add RSS Error handling functionality to RSS Widget displays, props DD32, fixes #9273
git-svn-id: http://svn.automattic.com/wordpress/trunk@10739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-07 19:44:28 +00:00
ryan 2b430c9751 Links widget options. Props DD32. see #9196
git-svn-id: http://svn.automattic.com/wordpress/trunk@10712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-04 23:49:21 +00:00
ryan d7b53ad4f8 Add RSS Error handling functionality to RSS Widget displays. Props DD32. fixes #9273
git-svn-id: http://svn.automattic.com/wordpress/trunk@10697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-04 19:24:48 +00:00
ryan a33afa3546 Pass blog charset to html_entity_decode(). Props adferguson. fixes #7563
git-svn-id: http://svn.automattic.com/wordpress/trunk@10688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-03 18:37:25 +00:00
westi 4e787135ea Don't pass defaulted argument to checked(). Fixes #9032 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-27 22:15:14 +00:00
ryan a02d6e4179 Use SimplePie for widget and dashboard feeds. First cut. see #9198
git-svn-id: http://svn.automattic.com/wordpress/trunk@10666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-27 19:32:50 +00:00
azaozz 3641891df0 Documentation correction: is_active_widget(), props mdawaffe, fixes #9080
git-svn-id: http://svn.automattic.com/wordpress/trunk@10535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-10 15:22:08 +00:00
ryan 831a69f318 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: http://svn.automattic.com/wordpress/trunk@10314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-05 23:03:17 +00:00
azaozz 6c528a14cb Clean URL in recent comments widget, props danlee, fixes #8691 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-05 12:02:05 +00:00
azaozz 7cf9598d35 Add semicolon to Multi-Widget Example, props dcole07, fixes #8742 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-05 11:19:53 +00:00
ryan e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
ryan b41e6d09f8 Make sure widgets array version is set. fixes #8339
git-svn-id: http://svn.automattic.com/wordpress/trunk@9888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-25 22:38:36 +00:00
ryan 8a280ee764 Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278
git-svn-id: http://svn.automattic.com/wordpress/trunk@9791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-19 17:43:54 +00:00
ryan 545da15950 Notice fixes from DD32. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@9596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-10 18:54:18 +00:00
markjaquith 88bfbbd948 Massive get_comment_link() performance improvements for posts with a lot of comments. props Viper007Bond. fixes #7956
git-svn-id: http://svn.automattic.com/wordpress/trunk@9522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-05 07:09:20 +00:00
ryan 2fdde1e736 Notice fixes from filosofo and Viper007Bond. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@9506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-04 03:22:24 +00:00
ryan 76c966b75a get_search_form from technosailor. fixes #7910
git-svn-id: http://svn.automattic.com/wordpress/trunk@9234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-17 20:39:56 +00:00
ryan f46fb544e7 Dashboard updates from mdawaffe. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@9219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 22:35:53 +00:00
ryan 0ba694a607 sidebars_widgets fiter from gortsleigh. fixes #7818
git-svn-id: http://svn.automattic.com/wordpress/trunk@9088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-06 16:57:31 +00:00
ryan ab861693c4 phpdoc for widgets.php. Props jacobsantos. fixes #7661
git-svn-id: http://svn.automattic.com/wordpress/trunk@8960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-23 04:03:28 +00:00
azaozz 157b89fe18 More inline documentation for widgets.php, props jacobsantos, see #7661
git-svn-id: http://svn.automattic.com/wordpress/trunk@8950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-22 03:52:41 +00:00
westi cd7d1d1aab Notice fixes for the widgets admin page see #7509.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-21 20:57:04 +00:00
ryan e06c648ec2 Partial phpdoc for widgets.php. Props jacobsantos. see #7661
git-svn-id: http://svn.automattic.com/wordpress/trunk@8935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-19 01:41:18 +00:00
ryan d7d1760479 Partial phpdoc for widgets.php. Props jacobsantos. see #7661
git-svn-id: http://svn.automattic.com/wordpress/trunk@8934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-19 01:32:45 +00:00
ryan 1c36424a1c Don't show stick posts in recent posts widget. Props MtDewVirus. fixes #7739
git-svn-id: http://svn.automattic.com/wordpress/trunk@8886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-14 05:50:10 +00:00
ryan bc3c83bf1d RSS widget shouldn't link if there isn't a link. Props MtDewVirus. fixes #7614
git-svn-id: http://svn.automattic.com/wordpress/trunk@8746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-27 18:00:51 +00:00
ryan 35b18e5034 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@8600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-09 05:36:14 +00:00
markjaquith 74c46749cb Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
git-svn-id: http://svn.automattic.com/wordpress/trunk@8572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 20:31:54 +00:00
ryan a5acdddbb7 Strip tags from summary. Props dsader. fixes #7375 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 15:49:58 +00:00
ryan 7f0c014f36 Cast to array to avoid warning. Props santosj. fixes #7222 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 20:34:45 +00:00
ryan af11b900c8 Typo fix from robertdimarco. fixes #7297 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-15 16:21:26 +00:00
ryan 3ceeaa6252 Use searchform.php for search widget, if available. Props ionfish. fixes #5567
git-svn-id: http://svn.automattic.com/wordpress/trunk@8250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 17:03:37 +00:00