Sergey Biryukov
920f29616a
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong()
, _deprecated_function()
, _deprecated_argument()
, and _deprecated_file()
throughout core.
...
Props metodiew.
Fixes #36495 .
git-svn-id: https://develop.svn.wordpress.org/trunk@37985 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-06 12:39:01 +00:00
Drew Jaynes
8fe11fa642
Docs: Standardize hook docs in wp-includes/widgets/* to use third-person singular verbs per the inline documentation standards for PHP.
...
See #36913 .
git-svn-id: https://develop.svn.wordpress.org/trunk@37489 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-22 18:05:54 +00:00
Weston Ruter
9cd6dd9aae
Customize: Include shortcut button in Custom Menu widget to edit the selected menu in the Customizer.
...
Clicking on the Edit Menu button focuses on the corresponding nav menu section. Upon collapsing the nav menu section, the focus is returned to the Custom Menu widget instead of taking the user to the menus root panel. In this way, the back button behavior is modified once to serve as breadcrumb/history navigation. The Edit Menu button with the breadcrumb back button behavior greatly reduce the number of UI interactions needed to edit a menu referenced in a Custom Menu widget.
Props celloexpressions, westonruter.
Fixes #32683 .
git-svn-id: https://develop.svn.wordpress.org/trunk@37437 602fd350-edb4-49c9-b593-d223f7449a82
2016-05-16 07:21:22 +00:00
Weston Ruter
4569f93d3e
Customize: Require opt-in for selective refresh of widgets.
...
* Introduces `customize-selective-refresh-widgets` theme support feature and adds to themes.
* Introduces `customize_selective_refresh` arg for `WP_Widget::$widget_options` and adds to all core widgets.
* Remove `selective_refresh` from being a component that can be removed via `customize_loaded_components` filter.
* Add `WP_Customize_Widgets::get_selective_refreshable_widgets()` and `WP_Customize_Widgets::is_widget_selective_refreshable()`.
* Fix default `selector` for `Partial` instances.
* Implement and improve Masronry sidebar refresh logic in Twenty Thirteen and Twenty Fourteen, including preservation of initial widget position after refresh.
* Re-initialize ME.js when refreshing `Twenty_Fourteen_Ephemera_Widget`.
See #27355 .
Fixes #35855 .
git-svn-id: https://develop.svn.wordpress.org/trunk@37040 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-21 21:58:02 +00:00
Weston Ruter
d14b188c42
Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets.
...
Ensures that intentional backslashes (e.g. "\o/") can be used in:
* Site title
* Site description
* Nav menu name
* Custom Menu widget title
* Tag Cloud widget title
* Text widget body if can't `unfiltered_html`
The latter three are also fixed on the widgets admin page.
Fixes #35898 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36622 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-23 01:01:43 +00:00
Sergey Biryukov
72fb826044
Widgets: Remove extra quotes from widget title in WP_Widget_RSS
, accidentally added in [33814].
...
Props ShinichiN.
Fixes #34978 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@35978 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-16 22:34:55 +00:00
Dominik Schilling (ocean90)
80975befb8
Widgets: Fix typo in WP_Widget_Tag_Cloud::form()
.
...
Props skithund.
Fixes #34623 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35576 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-08 20:34:34 +00:00
Scott Taylor
b18755172b
Widgets: revert [34376] and [34386] as pertains to the Categories widget supporting custom taxonomies.
...
Punting on 4th down.
See #21165 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35278 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-20 04:56:57 +00:00
Scott Taylor
999e54c8d3
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34683 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-29 04:31:10 +00:00
Drew Jaynes
7fce79698a
Widgets: Pass $instance
to the widget_nav_menu_args
filter in the Custom Menu widget.
...
Props walterbarcelos for the initial patch.
Fixes #33944 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34662 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-28 15:30:21 +00:00
Drew Jaynes
5d9625c28c
Restore and deprecate the WP_Widget_Recent_Comments::flush_widget_cache()
method, removed in [34580].
...
Fixes #25556 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34622 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 01:39:37 +00:00
Drew Jaynes
7510d4e58c
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Nav_Menu_Widget
.
...
Props leemon.
Fixes #34015 . Fixes #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34621 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 01:15:13 +00:00
Drew Jaynes
982d5b99ea
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Archives
.
...
Props leemon.
Fixes #34016 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34620 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 01:10:38 +00:00
Drew Jaynes
9909c7ff2b
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Calendar
.
...
Props leemon.
Fixes #34017 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34619 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 01:06:20 +00:00
Drew Jaynes
b8264d11bc
Docs: Improve documentation for the __construct()
, widget()
, update()
, form()
, and _get_current_taxonomy()
methods in WP_Widget_Categories
.
...
Props leemon.
Fixes #34018 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34618 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 01:03:31 +00:00
Drew Jaynes
aec4d6abe9
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Links
.
...
Props leemon.
Fixes #34019 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34617 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:59:44 +00:00
Drew Jaynes
e9f835dc43
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Meta
.
...
Props leemon.
Fixes #34020 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34616 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:57:03 +00:00
Drew Jaynes
f90a2dbe1c
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Pages
.
...
Props leemon.
Fixes #34021 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34615 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:53:36 +00:00
Drew Jaynes
f2af1a6a1f
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34614 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:50:04 +00:00
Drew Jaynes
fdd92e64cd
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34613 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:45:42 +00:00
Drew Jaynes
14cac9aded
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_RSS
.
...
Props leemon.
Fixes #34024 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34612 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:41:47 +00:00
Drew Jaynes
f111c41375
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Search
.
...
Props leemon.
Fixes #34025 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34611 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:36:26 +00:00
Drew Jaynes
b28f41f852
Docs: Improve the documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Tag_Cloud
.
...
Props leemon.
Fixes #34026 . See #34013 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34610 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:31:59 +00:00
Drew Jaynes
d6169cab23
Docs: Improve documentation for the __construct()
, widget()
, update()
, and form()
methods in WP_Widget_Text
.
...
(first!) Props leemon.
Fixes #34027 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34609 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-27 00:26:56 +00:00
Scott Taylor
bdce0b8174
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34581 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-26 06:00:09 +00:00
John Blackbourn
1bb2876fe6
callback
is not a valid type in PHP, PSR-5, or phpDocumentor. callable
should be used instead.
...
Fixes #34032
git-svn-id: https://develop.svn.wordpress.org/trunk@34566 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-25 23:57:46 +00:00
Drew Jaynes
99e157bdd2
Docs: Add a missing summary, version, and tag descriptions to the DocBlock for WP_Widget_Text::widget()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34553 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-25 19:23:18 +00:00
Drew Jaynes
5a6a34fa95
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34552 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-25 19:20:37 +00:00
Scott Taylor
395fc15df3
Widgets: use input[type="number"]
for the number
prop in the Recent Posts and Recent Comments widget forms.
...
Props helen, obenland, mordauk.
Fixes #22965 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34514 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-24 19:52:06 +00:00
Scott Taylor
9209546292
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34464 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-24 00:16:16 +00:00
Drew Jaynes
1ea9111541
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34440 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 15:03:03 +00:00
Drew Jaynes
fdc31fdf45
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34439 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 15:01:24 +00:00
DrewAPicture
7aedd83be1
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34438 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 15:00:04 +00:00
Drew Jaynes
564fda0cf7
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34437 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:56:14 +00:00
Drew Jaynes
6acc3944d3
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34436 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:53:44 +00:00
Drew Jaynes
c668d2295d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34435 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:50:31 +00:00
Drew Jaynes
645c11475d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34434 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:48:54 +00:00
Drew Jaynes
f78a3692d1
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34433 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:47:32 +00:00
Drew Jaynes
5697314993
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34432 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:46:07 +00:00
Drew Jaynes
cd24102b98
Docs: Clarify the class DocBlock summary for WP_Widget_Categories
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34431 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:44:43 +00:00
Drew Jaynes
55d0267122
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34430 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:43:32 +00:00
Drew Jaynes
eb53dd65c9
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34429 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:42:06 +00:00
Drew Jaynes
e6f5ac781e
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34428 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 14:40:27 +00:00
Drew Jaynes
419bcab6d8
Docs: Add a changelog entry to WP_Widget_Categories
for non-category support, added in [34376].
...
See #21165 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34386 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 09:49:39 +00:00
Drew Jaynes
7f2fe52e40
Docs: Add a file header to wp-includes/widgets/class-wp-widget-categories.php.
...
See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34385 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 09:47:37 +00:00
Scott Taylor
3a00b7c5f0
Widgets: add a static
property to WP_Widget_Calendar
to ensure that the id
attribute is only output once.
...
Props MikeHansenMe, wonderboymusic.
Fixes #24604 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34381 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 05:08:33 +00:00
Scott Taylor
90fb9480d1
Widgets: Make the categories widget work with custom taxonomies.
...
Props fonglh, wonderboymusic, DrewAPicture, kucrut.
Fixes #21165 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34376 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-22 04:24:53 +00:00
Scott Taylor
bec1944e44
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34273 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-17 22:10:46 +00:00
Scott Taylor
5cce4a3262
After [33961], pass $comment
to get_comment_link()
where possible to avoid extra cache/db lookups.
...
See #33638 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34042 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-11 06:20:56 +00:00
Scott Taylor
db702bc3ea
After [33961], pass $comment
to get_comment_author_link()
where possible to avoid extra cache/db lookups.
...
See #33638 .
git-svn-id: https://develop.svn.wordpress.org/trunk@34039 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-11 06:04:22 +00:00