Commit Graph

284 Commits

Author SHA1 Message Date
dd32 2a7375a600 Simplify the Id uniqueness loops. Guard against more use-cases which might cause ID conflicts. See #12606
git-svn-id: http://svn.automattic.com/wordpress/trunk@13699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-14 11:34:51 +00:00
dd32 c6daeea61e Ensure that for multiple sidebar additions, the ID is unique (even if specified). Append -2.. for > 1 sidebars. Props minusfive. Fixes #12606
git-svn-id: http://svn.automattic.com/wordpress/trunk@13698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-14 10:55:17 +00:00
nacin eb22ca285f Move deprecated pre-2.8 widget API to deprecated.php. Deprecate register_sidebar_widget, unregister_sidebar_widget, register_widget_control, unregister_widget_control, in favor of their wp_* counterparts. See #11388
git-svn-id: http://svn.automattic.com/wordpress/trunk@13098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 07:55:28 +00:00
westi bf4a5241e1 Add missing version numbers to _deprecated_argument() calls.
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-09 10:03:55 +00:00
westi ff7831207c Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-30 16:23:39 +00:00
westi 47a7b1b003 Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 11:12:04 +00:00
azaozz fce64c00bc Always register all widgets, props hakre, fixes #10954
git-svn-id: http://svn.automattic.com/wordpress/trunk@12249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-21 03:40:55 +00:00
azaozz f2dc806c22 Add sidebar descriptions to sidebar settings and widget admin screen, props jeremyclarke scribu, fixes #11157
git-svn-id: http://svn.automattic.com/wordpress/trunk@12213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-19 09:12:16 +00:00
azaozz 954a1c3bac Fix warning in wp-admin/widgets.php when using Accessibility Mode on brand new install, fixes #10610
git-svn-id: http://svn.automattic.com/wordpress/trunk@11824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-16 01:56:21 +00:00
azaozz a85254b70c Convert the old style widgets order array only when loading the widgets screen, fixes #10300 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-04 12:49:54 +00:00
azaozz cb0b89a71c is_active_sidebar() should use wp_get_sidebars_widgets(), props greenshady and Denis-de-Bernardy, fixes #10136
git-svn-id: http://svn.automattic.com/wordpress/trunk@11562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-14 08:37:07 +00:00
azaozz e0a2b8eebe Improve widgets hooks, props Denis-de-Bernardy, fixes #10013
git-svn-id: http://svn.automattic.com/wordpress/trunk@11510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-03 11:33:17 +00:00
azaozz b7bc0faa73 Reload the widget form with the ajax response after save, add Close link to the widgets, don't auto-close on save to show possible errors returned from validation
git-svn-id: http://svn.automattic.com/wordpress/trunk@11498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-31 11:34:08 +00:00
ryan 02fb7b43fe Fix widget unregister back-compat. fixes #9952
git-svn-id: http://svn.automattic.com/wordpress/trunk@11484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-29 16:32:20 +00:00
ryan 2df887bd07 Trim tailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-24 23:47:49 +00:00
azaozz 0632395ad6 Fix saving and deleting of widgets settings for no-js and for some non-standard widgets, run the actions from the widgets screen when saving with ajax, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 12:08:51 +00:00
markjaquith 119b39cec2 deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-18 15:11:07 +00:00
azaozz 4dfedcc8ff Add param to the widget_display_callback hook, props Denis-de-Bernardy, fixes #9852
git-svn-id: http://svn.automattic.com/wordpress/trunk@11374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-17 19:36:28 +00:00
azaozz e4bb49ee5d Add a function to output a generic widget anywhere in a template, props Denis-de-Bernardy, fixes #9701
git-svn-id: http://svn.automattic.com/wordpress/trunk@11317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-13 20:43:49 +00:00
ryan 2a8091e386 Fix widget registration with PHP 4. see #9800
git-svn-id: http://svn.automattic.com/wordpress/trunk@11310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-12 19:17:30 +00:00
azaozz 45a38585d1 Lowercase widgets $id_base, props Denis-de-Bernardy, fixes #9797
git-svn-id: http://svn.automattic.com/wordpress/trunk@11308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-12 17:56:04 +00:00
westi 792271cc4b Fix notices when an in-use widget is deleted. See #9393 props nbachiyski
git-svn-id: http://svn.automattic.com/wordpress/trunk@11229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-07 06:59:06 +00:00
azaozz 4ad76521d5 Make is_active_widget() optionally look in 'wp_inactive_widgets' for use in the admin
git-svn-id: http://svn.automattic.com/wordpress/trunk@11164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-03 23:20:26 +00:00
azaozz 83952bee95 Widgets UI styling, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-03 05:27:13 +00:00
azaozz aae118f16c 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: http://svn.automattic.com/wordpress/trunk@11155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-02 00:21:16 +00:00
azaozz 05e168fd95 Add is_active_sidebar(), props filosofo, fixes #4594
git-svn-id: http://svn.automattic.com/wordpress/trunk@11134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-30 04:26:34 +00:00
ryan 63c40f644d Remove call-time pass-by-ref. Props jbsil. see #9651
git-svn-id: http://svn.automattic.com/wordpress/trunk@11097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-27 16:09:49 +00:00
azaozz 4e975cf400 Add hooks to WP_Widget, props ceenz, fixes #9651, see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@11095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-27 10:56:29 +00:00
azaozz 15588b4080 Move recent comments widget to WP_Widget, extend is_active_widget() to use $id_base, see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@11090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-26 20:09:08 +00:00
azaozz 84f5771dfa Fix conversion of old widget settings for Recent Posts, see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@11088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-26 05:34:06 +00:00
azaozz 143b92ded9 Move recent posts widget to WP_Widget. see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@11087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-25 12:43:51 +00:00
azaozz e1922c01b6 Upgrade widget options only from admin, props ryan, fixes #9629
git-svn-id: http://svn.automattic.com/wordpress/trunk@11074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-24 06:27:06 +00:00
azaozz e534d003a2 Optionally use the class name as id_base, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-22 04:01:20 +00:00
ryan 1af5709771 Handle upgrade of old text widgets. Props Denis-de-Bernardy. fixes #9608
git-svn-id: http://svn.automattic.com/wordpress/trunk@11030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-21 19:40:20 +00:00
ryan a61bc0ec8a Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@11013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 18:18:39 +00:00
azaozz 0200501698 Add and edit widget when js is disabled, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@11009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-20 10:58:50 +00:00
ryan bc7bcfbd79 Fix unregister_widget(). see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-17 20:45:33 +00:00
ryan b66bda65e4 unregister_widget(). see #8441
git-svn-id: http://svn.automattic.com/wordpress/trunk@10979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-17 05:54:07 +00:00
azaozz 123d7ee968 Widgets page, first run, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-11 14:37:24 +00:00
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
ryan 94183a25cd widget_links_args filter from ionfish. fixes #7024
git-svn-id: http://svn.automattic.com/wordpress/trunk@8171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-23 17:21:14 +00:00
ryan c790febe36 More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001
git-svn-id: http://svn.automattic.com/wordpress/trunk@8058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-06 07:39:11 +00:00
ryan ae3cca9951 Add space. Props MtDewVirus. fixes #6972
git-svn-id: http://svn.automattic.com/wordpress/trunk@7968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-20 23:50:29 +00:00
ryan 6d3c98a56f strtolower widget id. Props filosofo. fixes #6949
git-svn-id: http://svn.automattic.com/wordpress/trunk@7915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 16:29:17 +00:00
ryan 938f29414f Use array calling style. see #6647
git-svn-id: http://svn.automattic.com/wordpress/trunk@7911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 19:19:58 +00:00
ryan 5a9d1d9c8d Add arg as array. Props MtDewVirus. fixes #6924
git-svn-id: http://svn.automattic.com/wordpress/trunk@7902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-06 17:28:24 +00:00
westi 3cbcbbbfb4 Associate lables with form fields. Fixes #6859 props MarcoZ.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-04 10:37:06 +00:00
ryan 90f52c0fc3 Use array calling style. Props guillep2k for the find. fixes #6637 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-02 16:59:49 +00:00
ryan 88b23960fb widget_title filters from jhodgdon. fixes #6684
git-svn-id: http://svn.automattic.com/wordpress/trunk@7850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-29 16:08:19 +00:00
ryan 499ac46099 Multi-widget pattern documentation typo fixes from Jaymin Patel. fixes #6866
git-svn-id: http://svn.automattic.com/wordpress/trunk@7849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-28 20:08:23 +00:00
ryan 926754275c If widget ID not found, scan the entire registered widgets array looking for legacy IDs. Props Denis-de-Bernardy. fixes #6605 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-18 02:19:45 +00:00
ryan 3389df53f2 don't cache during title extraction. Props mdawaffe. fixes #6694 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:42:47 +00:00
ryan baba01caff Make link widget IDs unique. Props docwhat. fixes #4287 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-17 20:32:13 +00:00
ryan 3794dc04b4 Avoid data-loss when editing multi-widgets. Props mdawaffe. fixes #6636 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-07 21:40:32 +00:00
ryan 29839a2fb5 Localize date in dashboard. Props hervada and nbachiyski. fixes #6397
git-svn-id: http://svn.automattic.com/wordpress/trunk@7548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-27 08:09:06 +00:00
markjaquith 26eff23f34 Multi-widgets should never be removed if you click cancel. props mdawaffe. fixes #6291
git-svn-id: http://svn.automattic.com/wordpress/trunk@7411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-20 04:39:23 +00:00
ryan d9f9cd0375 Fix multi-widget addition with JS disabled. Props mdawaffe. see #6239
git-svn-id: http://svn.automattic.com/wordpress/trunk@7362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-17 23:25:05 +00:00
ryan e077b57335 Make RSS and text widget controls the same width. Props mdawaffe. fixes #6205
git-svn-id: http://svn.automattic.com/wordpress/trunk@7278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:30:41 +00:00
ryan c3b5c2cb4e Typo fix from nerrad. fixes #6216
git-svn-id: http://svn.automattic.com/wordpress/trunk@7277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-14 06:27:25 +00:00
ryan 589993b783 Make cancel mean cancel. Props mdawaffe. see #5886
git-svn-id: http://svn.automattic.com/wordpress/trunk@7176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-06 23:01:22 +00:00
ryan 04c9051a7d Remove trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-02 20:17:30 +00:00
ryan b2838e11c7 Fix widgets using old-style multi instance support. Props mdawaffe. fixes #6023
git-svn-id: http://svn.automattic.com/wordpress/trunk@7080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-28 00:31:46 +00:00
ryan d0dfa68b6a fix new-fangled multi widgets. Props mdawaffe. see #6022
git-svn-id: http://svn.automattic.com/wordpress/trunk@7077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 23:57:00 +00:00
ryan dce0978cee Notice fixes from nbachiyski. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:43:56 +00:00
ryan 4cd65bf8d0 Default args to array. Props fitztrev. fixes #5866
git-svn-id: http://svn.automattic.com/wordpress/trunk@6861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-15 20:42:53 +00:00
ryan d88983793b Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 06:47:27 +00:00
ryan 9f643af85d Dashboard fixes from mdawaffe. No longer stomps sidebar. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-04 20:38:48 +00:00
ryan 7f4d8b2f27 New dashboard from mdawaffe. see #5750
git-svn-id: http://svn.automattic.com/wordpress/trunk@6705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 07:57:51 +00:00
ryan dd7370dbe9 Recent entries widget caching fixes from mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 23:28:58 +00:00
ryan 7eb704b71b Pass remember arg. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 18:20:59 +00:00
ryan 61a5a4cca0 Fix some array warnings. Props mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-05 05:20:56 +00:00
ryan 4f56c35980 Widget admin redesign from mdawaffe. see #5583
git-svn-id: http://svn.automattic.com/wordpress/trunk@6556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-04 23:34:33 +00:00
westi 1f889417e5 Fix some of the notices visible with WP_DEBUG enabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 21:25:12 +00:00
ryan c4020242c2 Fix registration of multiple sidebars. Props watson. fixes #5352
git-svn-id: http://svn.automattic.com/wordpress/trunk@6381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 08:06:08 +00:00
ryan 028a159440 Remove unused vars. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:49:33 +00:00
ryan 1ea72d5996 Don't run sanitize_title on IDs in new widgets API to avoid performance overhead. fixes #5326
git-svn-id: http://svn.automattic.com/wordpress/trunk@6323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-08 00:56:54 +00:00
westi 5fb4d6ab00 Use a for loop where it's more appropriate. Fixes #5234 props darkdragon and DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-19 16:32:56 +00:00
markjaquith 60cde1b789 use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168
git-svn-id: http://svn.automattic.com/wordpress/trunk@6207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-09 04:13:36 +00:00
ryan 5300ef20cf Add sanitize_url. Don't convert ampersands in URLs when saving to DB. fixes #4411 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-03 16:16:55 +00:00
ryan 649cff7dc2 Fix typo in category widget class name. Props joostdevalk. fixes #5079 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-26 16:12:28 +00:00
ryan 9e61170004 s/onChange/onchange/. Props grubgirl, Nazgul. fixes #4630
git-svn-id: http://svn.automattic.com/wordpress/trunk@6109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 05:33:54 +00:00
markjaquith 0880ca8693 Set widget classname when passed string, object/method, object-reference/method. fixes #4910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 20:48:21 +00:00
markjaquith 1ba81b4f02 Properly construct widget classname if second param is an array. Props f00f. fixes #4910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-06 23:27:16 +00:00
ryan c5d33cbebd Basic tag cloud widget. Props Stargazer. fixes #4130
git-svn-id: http://svn.automattic.com/wordpress/trunk@6040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 21:50:52 +00:00
ryan 321c310717 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@6026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:32:58 +00:00
ryan 87c4f3a17f Strip lines that contain only whitespace down to newlines.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:19:20 +00:00
ryan ef5caabe37 Limit recent entries query to published posts. fixes #4786
git-svn-id: http://svn.automattic.com/wordpress/trunk@5973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 18:02:19 +00:00
westi 51bde8f657 Remove dead code. Fixed #4791 props filosofo
git-svn-id: http://svn.automattic.com/wordpress/trunk@5970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:36:46 +00:00
westi 36ec45d7ff Fix xhtml output for RSS widget when feed contains no items. Fixed #4671 props brettz95 and Nazgul
git-svn-id: http://svn.automattic.com/wordpress/trunk@5968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 17:28:07 +00:00
westi 67d21286a8 Ensure we flush the recent entries widget cache after a post has been deleted. Fixes #4825 props donncha
git-svn-id: http://svn.automattic.com/wordpress/trunk@5960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-28 20:12:43 +00:00
ryan f478ddaa36 Pass args as array instead of query string.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-16 18:00:47 +00:00
markjaquith e06883dfcc Use "home," not "siteurl" for widget dropdown category URLs. Props Pastinakel. fixes #4683 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-07-30 16:23:04 +00:00
markjaquith ad9271f86f Don't init widgets if the blog isn't installed yet. fixes #4504
git-svn-id: http://svn.automattic.com/wordpress/trunk@5747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-23 05:32:16 +00:00
ryan e30a9ba012 Upgrade code for multiple category widgets. Props Andy. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-16 02:03:25 +00:00
ryan 9d3d20f063 Use EXTR_SKIP when extracting. see #4468
git-svn-id: http://svn.automattic.com/wordpress/trunk@5708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 22:45:40 +00:00
ryan 2f09416258 Trim empty lines. Nothing but newline.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-14 02:25:30 +00:00
rob1n e3328ca20b Don't include HTML in gettext call. Props nbachiyski and Nazgul. fixes #4437
git-svn-id: http://svn.automattic.com/wordpress/trunk@5688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-12 21:48:55 +00:00
rob1n ff6f1383d1 Maintain "Page order" for consistency. fixes #4431
git-svn-id: http://svn.automattic.com/wordpress/trunk@5677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-11 21:11:40 +00:00
rob1n 6e5e54b5ae Revert multiple category stuff. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-09 00:59:14 +00:00
rob1n 32a890bd26 Some more multiple category widget stuff. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 22:50:37 +00:00
rob1n 64b91fc94b Add support for multiple instances of the category widget. see #4285
git-svn-id: http://svn.automattic.com/wordpress/trunk@5669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-06-08 14:49:30 +00:00