Dominik Schilling
5e0dac0f8f
Widgets: Fix typo in `WP_Widget_Tag_Cloud::form()`.
...
Props skithund.
Fixes #34623 .
Built from https://develop.svn.wordpress.org/trunk@35576
git-svn-id: http://core.svn.wordpress.org/trunk@35540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 20:35:27 +00:00
Scott Taylor
c5b6202dfa
Widgets: revert [34376] and [34386] as pertains to the Categories widget supporting custom taxonomies.
...
Punting on 4th down.
See #21165 .
Built from https://develop.svn.wordpress.org/trunk@35278
git-svn-id: http://core.svn.wordpress.org/trunk@35244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 04:57:25 +00:00
Scott Taylor
f77499ed22
RSS Widget: add a class, `rss-widget-icon`, to the RSS icon to allow devs to hide it. Not going to remove to not break visual BC.
...
Fixes #22010 .
Built from https://develop.svn.wordpress.org/trunk@34683
git-svn-id: http://core.svn.wordpress.org/trunk@34647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-29 04:32:25 +00:00
Drew Jaynes
14c9ea88ea
Widgets: Pass `$instance` to the `widget_nav_menu_args` filter in the Custom Menu widget.
...
Props walterbarcelos for the initial patch.
Fixes #33944 .
Built from https://develop.svn.wordpress.org/trunk@34662
git-svn-id: http://core.svn.wordpress.org/trunk@34626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-28 15:31:25 +00:00
Drew Jaynes
c3a83b5726
Restore and deprecate the `WP_Widget_Recent_Comments::flush_widget_cache()` method, removed in [34580].
...
Fixes #25556 .
Built from https://develop.svn.wordpress.org/trunk@34622
git-svn-id: http://core.svn.wordpress.org/trunk@34586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:40:26 +00:00
Drew Jaynes
ad089ffe15
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Nav_Menu_Widget`.
...
Props leemon.
Fixes #34015 . Fixes #34013 .
Built from https://develop.svn.wordpress.org/trunk@34621
git-svn-id: http://core.svn.wordpress.org/trunk@34585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:16:24 +00:00
Drew Jaynes
c1796c55c3
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Archives`.
...
Props leemon.
Fixes #34016 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34620
git-svn-id: http://core.svn.wordpress.org/trunk@34584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:11:25 +00:00
Drew Jaynes
a05eb043c3
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Calendar`.
...
Props leemon.
Fixes #34017 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34619
git-svn-id: http://core.svn.wordpress.org/trunk@34583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:07:25 +00:00
Drew Jaynes
e0d024b355
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, `form()`, and `_get_current_taxonomy()` methods in `WP_Widget_Categories`.
...
Props leemon.
Fixes #34018 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34618
git-svn-id: http://core.svn.wordpress.org/trunk@34582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:04:25 +00:00
Drew Jaynes
192e7f8c61
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Links`.
...
Props leemon.
Fixes #34019 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34617
git-svn-id: http://core.svn.wordpress.org/trunk@34581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 01:00:24 +00:00
Drew Jaynes
233ecbfdb8
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Meta`.
...
Props leemon.
Fixes #34020 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34616
git-svn-id: http://core.svn.wordpress.org/trunk@34580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:58:24 +00:00
Drew Jaynes
033c9b8d7f
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Pages`.
...
Props leemon.
Fixes #34021 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34615
git-svn-id: http://core.svn.wordpress.org/trunk@34579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:54:24 +00:00
Drew Jaynes
5ab3821730
Docs: Improve documentation for the `__construct()`, `recent_comments_style()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Recent_Comments`.
...
Also fixes a typo in the class DocBlock.
Props leemon.
Fixes #34022 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34614
git-svn-id: http://core.svn.wordpress.org/trunk@34578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:51:24 +00:00
Drew Jaynes
e76083ce6e
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Recent_Posts`.
...
Also fixes a typo in the class DocBlock.
Props leemon.
Fixes #34023 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34613
git-svn-id: http://core.svn.wordpress.org/trunk@34577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:46:25 +00:00
Drew Jaynes
4f8f817865
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_RSS`.
...
Props leemon.
Fixes #34024 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34612
git-svn-id: http://core.svn.wordpress.org/trunk@34576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:42:24 +00:00
Drew Jaynes
80a32b4bc8
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Search`.
...
Props leemon.
Fixes #34025 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34611
git-svn-id: http://core.svn.wordpress.org/trunk@34575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:37:24 +00:00
Drew Jaynes
08277293e5
Docs: Improve the documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Tag_Cloud`.
...
Props leemon.
Fixes #34026 . See #34013 .
Built from https://develop.svn.wordpress.org/trunk@34610
git-svn-id: http://core.svn.wordpress.org/trunk@34574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:32:24 +00:00
Drew Jaynes
83da7624e6
Docs: Improve documentation for the `__construct()`, `widget()`, `update()`, and `form()` methods in `WP_Widget_Text`.
...
(first!) Props leemon.
Fixes #34027 .
Built from https://develop.svn.wordpress.org/trunk@34609
git-svn-id: http://core.svn.wordpress.org/trunk@34573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-27 00:27:26 +00:00
Scott Taylor
8646c8b93c
Recent Comments Widget: a la [34464], this widget has the same mixed content issues. Remove the fragment caching. The comment queries are now split to scale. This was the only remaining widget with an HTML fragment cache.
...
Fixes #25556 .
Built from https://develop.svn.wordpress.org/trunk@34581
git-svn-id: http://core.svn.wordpress.org/trunk@34545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-26 06:01:26 +00:00
John Blackbourn
aa35e473f7
`callback` is not a valid type in PHP, PSR-5, or phpDocumentor. `callable` should be used instead.
...
Fixes #34032
Built from https://develop.svn.wordpress.org/trunk@34566
git-svn-id: http://core.svn.wordpress.org/trunk@34530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-25 23:58:25 +00:00
Drew Jaynes
6f81ec0a2a
Docs: Add a missing summary, version, and tag descriptions to the DocBlock for `WP_Widget_Text::widget()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@34553
git-svn-id: http://core.svn.wordpress.org/trunk@34517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-25 19:24:24 +00:00
Drew Jaynes
54d5888688
Widgets: Pass `$this` to the `widget_text` filter to make targeting specific widget instances easier.
...
Also fixes docs errors in the type and description for the `$instance` parameter, introduced in [27697].
Fixes #24605 .
Built from https://develop.svn.wordpress.org/trunk@34552
git-svn-id: http://core.svn.wordpress.org/trunk@34516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-25 19:21:24 +00:00
Scott Taylor
bf04b211a4
Widgets: use `input[type="number"]` for the `number` prop in the Recent Posts and Recent Comments widget forms.
...
Props helen, obenland, mordauk.
Fixes #22965 .
Built from https://develop.svn.wordpress.org/trunk@34514
git-svn-id: http://core.svn.wordpress.org/trunk@34478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-24 19:53:26 +00:00
Scott Taylor
ad2ddad259
Recent Posts Widget: remove HTML fragment caching. The cache currently doesn't work cross-scheme and causes mixed content issues for links. The widget was written pre-`$split_the_query`, after which post objects can be served from the cache.
...
Fixes #27565 .
Built from https://develop.svn.wordpress.org/trunk@34464
git-svn-id: http://core.svn.wordpress.org/trunk@34428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-24 00:17:24 +00:00
Drew Jaynes
07cb271a45
Docs: Add a file header to wp-includes/widgets/class-wp-widget-text.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Text`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34440
git-svn-id: http://core.svn.wordpress.org/trunk@34404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 15:04:26 +00:00
Drew Jaynes
12196adb29
Docs: Add a file header to wp-includes/widgets/class-wp-widget-tag-cloud.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Tag_Cloud`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34439
git-svn-id: http://core.svn.wordpress.org/trunk@34403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 15:02:26 +00:00
Drew Jaynes
32118a94e5
Docs: Add a file header to wp-includes/widgets/class-wp-widget-search.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Search`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34438
git-svn-id: http://core.svn.wordpress.org/trunk@34402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 15:01:25 +00:00
Drew Jaynes
5cd5252964
Docs: Add a file header to wp-includes/widgets/class-wp-widget-rss.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_RSS`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34437
git-svn-id: http://core.svn.wordpress.org/trunk@34401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:57:26 +00:00
Drew Jaynes
0608fc8dea
Docs: Add a file header to wp-includes/widgets/class-wp-widget-recent-posts.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Recent_Posts`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34436
git-svn-id: http://core.svn.wordpress.org/trunk@34400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:54:25 +00:00
Drew Jaynes
c9ae3bf3e3
Docs: Add a file header to wp-includes/widgets/class-wp-widget-recent-comments.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Recent_Comments`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34435
git-svn-id: http://core.svn.wordpress.org/trunk@34399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:51:25 +00:00
Drew Jaynes
111144e3fe
Docs: Add a file header to wp-includes/widgets/class-wp-widget-pages.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Pages`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34434
git-svn-id: http://core.svn.wordpress.org/trunk@34398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:49:24 +00:00
Drew Jaynes
42c2543175
Docs: Add a file header to wp-includes/widgets/class-wp-widget-meta.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Meta`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34433
git-svn-id: http://core.svn.wordpress.org/trunk@34397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:48:24 +00:00
Drew Jaynes
305ac5d661
Docs: Add a file header to wp-includes/widgets/class-wp-widget-links.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Links`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34432
git-svn-id: http://core.svn.wordpress.org/trunk@34396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:47:25 +00:00
Drew Jaynes
d259fba59f
Docs: Clarify the class DocBlock summary for `WP_Widget_Categories`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@34431
git-svn-id: http://core.svn.wordpress.org/trunk@34395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:45:25 +00:00
Drew Jaynes
06ab88c2e0
Docs: Add a file header to wp-includes/widgets/class-wp-widget-calendar.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Calendar`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34430
git-svn-id: http://core.svn.wordpress.org/trunk@34394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:44:24 +00:00
Drew Jaynes
02084878f0
Docs: Add a missing file header to wp-includes/widgets/class-wp-widget-archives.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Widget_Archives`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34429
git-svn-id: http://core.svn.wordpress.org/trunk@34393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:43:24 +00:00
Drew Jaynes
c829d1a9b0
Docs: Clarify the file header summary for wp-includes/widgets/class-wp-nav-menu-widget.php, introduced in [33746].
...
Also clarifies the class DocBlock summary and tags for `WP_Nav_Menu_Widget`.
See #33413 . See #33701 .
Built from https://develop.svn.wordpress.org/trunk@34428
git-svn-id: http://core.svn.wordpress.org/trunk@34392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 14:41:25 +00:00
Drew Jaynes
a88e3e9a1d
Docs: Add a changelog entry to `WP_Widget_Categories` for non-category support, added in [34376].
...
See #21165 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@34386
git-svn-id: http://core.svn.wordpress.org/trunk@34350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 09:50:25 +00:00
Drew Jaynes
89a1bb93e4
Docs: Add a file header to wp-includes/widgets/class-wp-widget-categories.php.
...
See #33413 .
Built from https://develop.svn.wordpress.org/trunk@34385
git-svn-id: http://core.svn.wordpress.org/trunk@34349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 09:48:25 +00:00
Scott Taylor
51115a6816
Widgets: add a `static` property to `WP_Widget_Calendar` to ensure that the `id` attribute is only output once.
...
Props MikeHansenMe, wonderboymusic.
Fixes #24604 .
Built from https://develop.svn.wordpress.org/trunk@34381
git-svn-id: http://core.svn.wordpress.org/trunk@34345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 05:09:24 +00:00
Scott Taylor
40c15af795
Widgets: Make the categories widget work with custom taxonomies.
...
Props fonglh, wonderboymusic, DrewAPicture, kucrut.
Fixes #21165 .
Built from https://develop.svn.wordpress.org/trunk@34376
git-svn-id: http://core.svn.wordpress.org/trunk@34340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-22 04:25:24 +00:00
Scott Taylor
a2f15ca7cd
Widgets: don't show a dropdown if there is only 1 taxonomy or zero taxonomies available to the Tag Cloud widget form. Don't output the widget if there are no terms in the selected taxonomy.
...
Props GautamGupta, wonderboymusic.
Fixes #16125 .
Built from https://develop.svn.wordpress.org/trunk@34273
git-svn-id: http://core.svn.wordpress.org/trunk@34237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-17 22:11:24 +00:00
Scott Taylor
db4f22bfb5
After [33961], pass `$comment` to `get_comment_link()` where possible to avoid extra cache/db lookups.
...
See #33638 .
Built from https://develop.svn.wordpress.org/trunk@34042
git-svn-id: http://core.svn.wordpress.org/trunk@34010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-11 06:21:25 +00:00
Scott Taylor
fc328f5484
After [33961], pass `$comment` to `get_comment_author_link()` where possible to avoid extra cache/db lookups.
...
See #33638 .
Built from https://develop.svn.wordpress.org/trunk@34039
git-svn-id: http://core.svn.wordpress.org/trunk@34007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-11 06:05:24 +00:00
Drew Jaynes
f5c8f20a69
Docs: Use the `$widget_links_args` parameter in the hook doc for the `widget_links_args` filter, introduced when the args array was split out to a variable in [33971].
...
See #20788 .
Built from https://develop.svn.wordpress.org/trunk@33978
git-svn-id: http://core.svn.wordpress.org/trunk@33947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-09 15:45:27 +00:00
Scott Taylor
4bdda75696
`WP_Widget_Links`: pass widget instance to `widget_links_args` filter
...
Props SergeyBiryukov, MikeHansenMe, DrewAPicture.
Fixes #20788 .
Built from https://develop.svn.wordpress.org/trunk@33971
git-svn-id: http://core.svn.wordpress.org/trunk@33940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-09 04:42:24 +00:00
Scott Taylor
c1bb5b5ce3
After [33843], update the location of some files in `This filter is documented in` docs
...
Props dimadin.
See #33413 .
Built from https://develop.svn.wordpress.org/trunk@33954
git-svn-id: http://core.svn.wordpress.org/trunk@33923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-08 22:17:26 +00:00
Scott Taylor
0c97b3625e
After [33814], `checked()` outputs a leading space, so some extra spaces can be removed in the HTML for default widget forms.
...
See #23012 .
Built from https://develop.svn.wordpress.org/trunk@33951
git-svn-id: http://core.svn.wordpress.org/trunk@33920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-08 19:23:24 +00:00
Scott Taylor
9f8816c939
De-Jorbin [33814].
...
See #23012 .
Built from https://develop.svn.wordpress.org/trunk@33845
git-svn-id: http://core.svn.wordpress.org/trunk@33813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-01 15:48:22 +00:00
Scott Taylor
9b8169bd30
Move widget classes to their own files in `wp-includes/widgets`:
...
* `default-widgets.php` now requires all of the individual classes
* Move the functions scattered about this file to `widget-functions.php`, which loads before `default-widgets.php`, which only conditionally loads anyway in `wp_maybe_load_widgets()`, which is hooked on `plugins_loaded`
See #33413 , #23012 .
Built from https://develop.svn.wordpress.org/trunk@33843
git-svn-id: http://core.svn.wordpress.org/trunk@33811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-01 13:49:21 +00:00