Commit Graph

192 Commits

Author SHA1 Message Date
Ryan Boren
d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Ryan Boren
1796f678ff Hooks for the widgets api. Props ptahdunbar. fixes #12546
git-svn-id: https://develop.svn.wordpress.org/trunk@14382 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 19:01:43 +00:00
Mark Jaquith
0a658396a5 Make sure sidebars_widgets is an array. If it is a string (no idea how, but it happens), we get a fatal error
git-svn-id: https://develop.svn.wordpress.org/trunk@14320 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 17:37:42 +00:00
Andrew Nacin
7369d04015 Use wp_parse_args in register_sidebar. fixes #11836, props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14154 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:32:39 +00:00
Ryan Boren
eeb49f6bef Enable nav menu admin if theme supports widgets. Show notice if theme supports widgets but not nav-menus. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13810 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-24 18:35:31 +00:00
Andrew Nacin
dd306def81 Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Dion Hulse
f80cc183fa Restore backwards compatibility of integer sidebars("sidebar-$i"). See #12606
git-svn-id: https://develop.svn.wordpress.org/trunk@13701 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-14 12:12:23 +00:00
Dion Hulse
20a430c8fb Revert [13699], It breaks dynamic_sidebar(<int>) compatibility. Use a safer loop for clashes. See #12606
git-svn-id: https://develop.svn.wordpress.org/trunk@13700 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-14 11:58:53 +00:00
Dion Hulse
bd619cdb60 Simplify the Id uniqueness loops. Guard against more use-cases which might cause ID conflicts. See #12606
git-svn-id: https://develop.svn.wordpress.org/trunk@13699 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-14 11:34:51 +00:00
Dion Hulse
a486d9ed55 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: https://develop.svn.wordpress.org/trunk@13698 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-14 10:55:17 +00:00
Andrew Nacin
03695fa9ae 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: https://develop.svn.wordpress.org/trunk@13098 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:55:28 +00:00
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