Commit Graph

181 Commits

Author SHA1 Message Date
Peter Westwood 2e2ad12171 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: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 10:03:55 +00:00
Peter Westwood a752e6b561 Updates and improvements to _depreceated_argument. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Peter Westwood b607185b4e Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:12:04 +00:00
Andrew Ozz b15bee6f1a Always register all widgets, props hakre, fixes #10954
git-svn-id: https://develop.svn.wordpress.org/trunk@12249 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-21 03:40:55 +00:00
Andrew Ozz 7c3f9cf02b Add sidebar descriptions to sidebar settings and widget admin screen, props jeremyclarke scribu, fixes #11157
git-svn-id: https://develop.svn.wordpress.org/trunk@12213 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 09:12:16 +00:00
Andrew Ozz 987dcbda89 Fix warning in wp-admin/widgets.php when using Accessibility Mode on brand new install, fixes #10610
git-svn-id: https://develop.svn.wordpress.org/trunk@11824 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-16 01:56:21 +00:00
Andrew Ozz 484f514706 Convert the old style widgets order array only when loading the widgets screen, fixes #10300 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11691 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-04 12:49:54 +00:00
Andrew Ozz 59b44738e0 is_active_sidebar() should use wp_get_sidebars_widgets(), props greenshady and Denis-de-Bernardy, fixes #10136
git-svn-id: https://develop.svn.wordpress.org/trunk@11562 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-14 08:37:07 +00:00
Andrew Ozz cc77d3b710 Improve widgets hooks, props Denis-de-Bernardy, fixes #10013
git-svn-id: https://develop.svn.wordpress.org/trunk@11510 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-03 11:33:17 +00:00
Andrew Ozz f1b8716b93 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: https://develop.svn.wordpress.org/trunk@11498 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-31 11:34:08 +00:00
Ryan Boren e72a01fdc8 Fix widget unregister back-compat. fixes #9952
git-svn-id: https://develop.svn.wordpress.org/trunk@11484 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-29 16:32:20 +00:00
Ryan Boren e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Andrew Ozz 29ed683636 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: https://develop.svn.wordpress.org/trunk@11427 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 12:08:51 +00:00
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