Pascal Birchler
1294c2bc3a
Admin Menu: Deprecate add_object_page()
and add_utility_page()
.
...
These functions are not used in core and are just wrappers for `add_menu_page()`.
Fixes #23108 .
Built from https://develop.svn.wordpress.org/trunk@35874
git-svn-id: http://core.svn.wordpress.org/trunk@35838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 22:12:26 +00:00
Pascal Birchler
ba9475786a
Dashboard: Do not show "Search Engines Discouraged" text when the blog_public
option is not set.
...
Search engines are only discouraged from indexing the site when the option is explicitly set to `0`.
Fixes #34860 .
Built from https://develop.svn.wordpress.org/trunk@35873
git-svn-id: http://core.svn.wordpress.org/trunk@35837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 22:03:26 +00:00
John Blackbourn
4a934d72bb
Ensure that all the capabilities that any users have are being tested. This ensures that if new capabilities are introduced in the future, tests will be required for them.
...
See #35024
Built from https://develop.svn.wordpress.org/trunk@35872
git-svn-id: http://core.svn.wordpress.org/trunk@35836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 22:00:27 +00:00
John Blackbourn
8854836a0a
Introduce tests for the unfiltered_upload
capability, which no user should have (unless the ALLOW_UNFILTERED_UPLOADS
constant is defined).
...
See #35024
Built from https://develop.svn.wordpress.org/trunk@35871
git-svn-id: http://core.svn.wordpress.org/trunk@35835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 21:55:26 +00:00
Pascal Birchler
5fa8ea8c6b
Passwords: Hide weak password confirmation checkbox when password strength improves.
...
Props subharanjan for initial patch.
Fixes #34950 .
Built from https://develop.svn.wordpress.org/trunk@35870
git-svn-id: http://core.svn.wordpress.org/trunk@35834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 21:54:27 +00:00
John Blackbourn
a2c79a2fc6
Correct the hash notation documentation introduced in [34891].
...
See #32147
Built from https://develop.svn.wordpress.org/trunk@35869
git-svn-id: http://core.svn.wordpress.org/trunk@35833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 20:16:27 +00:00
Drew Jaynes
2cad8ec9e3
Docs: Remove indentation from a wrapped line in the DocBlock description for get_post_type_labels()
to prevent incorrect formatting when parsed.
...
With the false indentation in place, the parser for the Code Reference incorrectly interprets it as a block quote.
Fixes #35019 .
Built from https://develop.svn.wordpress.org/trunk@35868
git-svn-id: http://core.svn.wordpress.org/trunk@35832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 18:42:27 +00:00
Sergey Biryukov
6d90a7b0cb
Post Template: Pass the post ID to the_guid
and get_the_guid
filters.
...
Props danielbachhuber for initial patch.
Fixes #35015 .
Built from https://develop.svn.wordpress.org/trunk@35867
git-svn-id: http://core.svn.wordpress.org/trunk@35831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 16:39:26 +00:00
Andrea Fercia
70330165c4
Accessibility: on the Updates screen, remove a redundant title attribute.
...
Removes the title attribute from the Plugin details link and adds the Plugin name hidden with `screen-reader-text` within the link text.
Props Cheffheid.
Fixes #35001 .
Built from https://develop.svn.wordpress.org/trunk@35866
git-svn-id: http://core.svn.wordpress.org/trunk@35830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 16:32:26 +00:00
Drew Jaynes
b3d28ad0b9
Administration: Improve the message displayed in the login form modal when a user's session has expired.
...
Props obrienlabs.
Fixes #34340 .
Built from https://develop.svn.wordpress.org/trunk@35865
git-svn-id: http://core.svn.wordpress.org/trunk@35829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 16:01:28 +00:00
Drew Jaynes
0fcf24a38e
Docs: Document the optional $options
parameter for wp_register_widget_control()
as a hash notation.
...
Props stephanethomas.
Fixes #34855 .
Built from https://develop.svn.wordpress.org/trunk@35864
git-svn-id: http://core.svn.wordpress.org/trunk@35828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 15:24:28 +00:00
John Blackbourn
62b3d21229
Add assertions for role names as capabilities in the capabilities tests. This ensures the role name is only available as a capability to the corresponding role.
...
See #35007
Built from https://develop.svn.wordpress.org/trunk@35863
git-svn-id: http://core.svn.wordpress.org/trunk@35827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 11:07:29 +00:00
Gary Pendergast
f76712f652
About: Add a fallback -webkit-calc()
to about.css
...
We forgot to run `grunt precommit` before [35834] was committed.
This change doesn't need to be backported to the 4.4 branch, as it only affects Chrome < 26, it's really just to clean up the behaviour of `grunt precommit`.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35862
git-svn-id: http://core.svn.wordpress.org/trunk@35826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 03:53:26 +00:00
Eric Lewis
6be07725fb
Add inline documentation for get_page_by_path()
.
...
Fixes #34964 .
Built from https://develop.svn.wordpress.org/trunk@35861
git-svn-id: http://core.svn.wordpress.org/trunk@35825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 03:50:26 +00:00
Eric Lewis
b07bb412ee
Don't suppress error messages in database function calls.
...
Fixes #21870 .
Built from https://develop.svn.wordpress.org/trunk@35860
git-svn-id: http://core.svn.wordpress.org/trunk@35824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 03:40:26 +00:00
Gary Pendergast
49e2977b7e
Build Tools: Update grunt-contrib-imagemin to v1.0.0
...
This updates `imagemin` to 4.0.0, which fixes an error when running `grunt imagemin:core`.
Props netweb.
Fixes #35003 .
Built from https://develop.svn.wordpress.org/trunk@35859
git-svn-id: http://core.svn.wordpress.org/trunk@35823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 03:39:23 +00:00
Boone Gorges
f4f2116edd
Be sure to force-delete when cleaning up fixtures in get_comment_link()
tests.
...
Introduced in [35857].
Mega-super-anti-props boonebgorges.
Built from https://develop.svn.wordpress.org/trunk@35858
git-svn-id: http://core.svn.wordpress.org/trunk@35822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 02:47:25 +00:00
Boone Gorges
cef6eee086
Share fixtures in get_comment_link()
tests.
...
See #30017 .
Built from https://develop.svn.wordpress.org/trunk@35857
git-svn-id: http://core.svn.wordpress.org/trunk@35821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-11 02:27:27 +00:00
Dominik Schilling
6fb81e3338
L10n: Use an absolute path for the is_dir()
check when looking for installed translations.
...
Avoids warnings when `open_basedir` restrictions are in effect.
Props Profforg.
Fixes #34526 .
Built from https://develop.svn.wordpress.org/trunk@35856
git-svn-id: http://core.svn.wordpress.org/trunk@35820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 23:09:27 +00:00
Andrea Fercia
81b70b5af7
Updates screen: make the new strings introduced in [35854] translatable.
...
Props walbo.
Fixes #34763 .
Built from https://develop.svn.wordpress.org/trunk@35855
git-svn-id: http://core.svn.wordpress.org/trunk@35819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 19:24:26 +00:00
Andrea Fercia
984e1321ba
Accessibility: the iframes used for the update progress in the Updates screen need title attributes to describe their content.
...
Fixes #34763 .
Built from https://develop.svn.wordpress.org/trunk@35854
git-svn-id: http://core.svn.wordpress.org/trunk@35818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 17:21:29 +00:00
Rachel Baker
9dd574bd99
Comments: Comments don’t need no Post ID when created, so they don’t be needing one to be edited.
...
In `wp_update_comment()` only check if the given `comment_post_ID` is valid if it isn’t `0`. This allows comments that were created programmatically via `wp_insert_comment()` without the (optional) `comment_post_ID` parameter to be edited.
Props subharanjan for the initial patch.
Fixes #34954
Built from https://develop.svn.wordpress.org/trunk@35853
git-svn-id: http://core.svn.wordpress.org/trunk@35817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 15:17:29 +00:00
Boone Gorges
812060f940
Improve handling for WP_Error
objects in get_the_terms()
.
...
`wp_get_object_terms()` can return a `WP_Error` object. As such, the
`get_the_terms()` cache wrapper should handle them properly. To wit:
* Don't try to map an error object to `get_term()`. Introduced in [35032].
* Don't cache an error object as taxonomy relationships. Introduced in at least [16487], maybe earlier.
Props stephenharris.
Fixes #34723 .
Built from https://develop.svn.wordpress.org/trunk@35850
git-svn-id: http://core.svn.wordpress.org/trunk@35814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 03:35:27 +00:00
John Blackbourn
6fd3c9fc64
Comments: Commit tests missed in [35848].
...
See #28617
Built from https://develop.svn.wordpress.org/trunk@35849
git-svn-id: http://core.svn.wordpress.org/trunk@35813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 03:16:25 +00:00
John Blackbourn
a027edc277
Comments: The year is 2003. Permalinks are a new thing and everyone's using Blogger. It's a time when opening a modal window in JavaScript to view a section of a website is not a completely weird thing, although many users get annoyed by it. b2 has recently become WordPress, and with it comes a bunch of functionality that will become stale over the next decade, remnants of simpler times.
...
Twelve years later, after no fewer than three themes have intentionally implemented popup comments in their functionality, before being abandoned for at least the last six years, we've reached a time where we can put this era behind us. A time when we can remove comment popup functionality from WordPress.
If this breaks the internet, I'll eat my hat.
Fixes #28617
Built from https://develop.svn.wordpress.org/trunk@35848
git-svn-id: http://core.svn.wordpress.org/trunk@35812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-10 03:06:30 +00:00
John Blackbourn
8826804952
Formatting: Don't make links inside <script>
and <style>
tags clickable.
...
Fixes #30162
Props ninos-ego, adamsilverstein
Built from https://develop.svn.wordpress.org/trunk@35847
git-svn-id: http://core.svn.wordpress.org/trunk@35811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-09 23:55:32 +00:00
Andrea Fercia
2ae5db3856
Accessibility: remove no-purpose title attributes from the login screen.
...
Also, it's hard to convey the ironic tone of the sentences used for these title attributes in languages other than English.
Fixes #34943 .
Built from https://develop.svn.wordpress.org/trunk@35846
git-svn-id: http://core.svn.wordpress.org/trunk@35810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-09 22:20:29 +00:00
Rachel Baker
17061829e4
Docs: Better param descriptions and fix incorrect param name within REST API deprecated functions
...
`rest_handle_deprecated_function`: you get better parameter descriptions.
`rest_handle_deprecated_argument`: you get a corrected parameter name ($replacement->$message), appropriate i18n translation hints, and better parameter descriptions.
Props ocean90.
Fixes #34908
Built from https://develop.svn.wordpress.org/trunk@35845
git-svn-id: http://core.svn.wordpress.org/trunk@35809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-09 21:26:29 +00:00
Drew Jaynes
a4cd391d50
Docs: Move the hook doc for the view_mode_post_types
filter to directly precede the apply_filters()
line.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35844
git-svn-id: http://core.svn.wordpress.org/trunk@35808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-09 16:17:27 +00:00
Dominik Schilling
7551362d57
About Page: Add release video and update post embed.
...
Props camikaos, siobhan, rosso99, wonderboymusic.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35839
git-svn-id: http://core.svn.wordpress.org/trunk@35803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 23:23:26 +00:00
Dominik Schilling
ba4a508daf
Install/Upgrade: Keep indexing bots away until a site is ready to be seen.
...
Built from https://develop.svn.wordpress.org/trunk@35837
git-svn-id: http://core.svn.wordpress.org/trunk@35801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 21:56:27 +00:00
Scott Taylor
f642373090
About Page: use ReverbNation instead of Cloudup to avoid Ad Blocker cruff with tracking pixels. Adjust the layout accordingly, and improve the layout at smaller breakpoints.
...
Props melchoyce.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35834
git-svn-id: http://core.svn.wordpress.org/trunk@35798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 20:25:28 +00:00
Dominik Schilling
dc7ff95661
About Page: Remove three superfluous parentheses.
...
Props jaspermdegroot.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35833
git-svn-id: http://core.svn.wordpress.org/trunk@35797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 18:15:26 +00:00
Dominik Schilling
d5475667b0
About Page: Use w.org CDN for images.
...
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35832
git-svn-id: http://core.svn.wordpress.org/trunk@35796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 17:57:26 +00:00
Michael Arestad
d23bd49fdd
Administration: Adds a height to number inputs.
...
Number inputs didn't match the height of other form elements. Now they have a height of 28px and 40px on mobile. Both align with the sizes of other elements.
Props valendesigns.
Fixes #28984 .
Built from https://develop.svn.wordpress.org/trunk@35831
git-svn-id: http://core.svn.wordpress.org/trunk@35795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 16:07:25 +00:00
Dominik Schilling
1b41572d4c
Bundled Themes: Update POT files.
...
See #34804 .
Built from https://develop.svn.wordpress.org/trunk@35829
git-svn-id: http://core.svn.wordpress.org/trunk@35793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 15:18:28 +00:00
Scott Taylor
1b60538074
About Page: use the source of the Make/Core Embed response instead of discovering it (or reading from the cache) every time.
...
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35826
git-svn-id: http://core.svn.wordpress.org/trunk@35790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 03:38:24 +00:00
Scott Taylor
932195771f
About Page: use srcset
for images, also known as Recursive Dogfooding.
...
Props joemcgill.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35825
git-svn-id: http://core.svn.wordpress.org/trunk@35789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-08 03:33:27 +00:00
Dominik Schilling
b3a00ca1e9
About Page: Add Cloudup embed and cache the embeds as site transients.
...
Props wonderboymusic.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35823
git-svn-id: http://core.svn.wordpress.org/trunk@35787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 23:28:25 +00:00
Rachel Baker
55bb9a8c01
REST API: Make strings translatable in register_rest_route
.
...
Adds i18n to the `doing_it_wrong()` messages for invalid parameters within `register_rest_route()`.
Props Latz,danielbachhuber.
Fixes #34902
Built from https://develop.svn.wordpress.org/trunk@35822
git-svn-id: http://core.svn.wordpress.org/trunk@35786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 22:40:27 +00:00
Mike Schroder
6f3da8d57b
Media: Don't generate responsive image attributes if src
does not match ID in wp-image-
class.
...
We rely on the `wp-image-` class to quickly find an attachment ID to add responsive image attributes.
To avoid incorrect images being displayed, do not add these attributes if the `src` does not match the
meta from the attachment ID in the class.
Props azaozz, kovshenin, joemcgill.
Fixes : #34898 .
Built from https://develop.svn.wordpress.org/trunk@35820
git-svn-id: http://core.svn.wordpress.org/trunk@35784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 20:08:51 +00:00
Dominik Schilling
3c0c5e6ad5
List Tables: Revert [34728] and [35482].
...
Part of [34728] was already reverted in [35682], but the default values still made it impossible to set a default ordering for custom post types.
See #25493 .
See #34825 .
Built from https://develop.svn.wordpress.org/trunk@35818
git-svn-id: http://core.svn.wordpress.org/trunk@35782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 19:16:26 +00:00
Joe Hoyle
5031ca5c23
Prevent unnecessary $wpdb->update() when hierarchical post doesn't have children.
...
Props danielbachhuber.
Fixes #34896 .
Built from https://develop.svn.wordpress.org/trunk@35817
git-svn-id: http://core.svn.wordpress.org/trunk@35781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 17:47:25 +00:00
Mel Choyce
b6a14367e4
About: Update image of the Twenty Sixteen red color scheme so it matches the updated scheme color.
...
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35816
git-svn-id: http://core.svn.wordpress.org/trunk@35780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 17:08:25 +00:00
Pascal Birchler
331fdaf184
Docs: After [35314], fix the DocBlock for url_shorten()
.
...
See #20166 .
Built from https://develop.svn.wordpress.org/trunk@35813
git-svn-id: http://core.svn.wordpress.org/trunk@35777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 16:39:25 +00:00
Dominik Schilling
ef223adbdb
About: Sync tagline from about page with credits and freedoms.
...
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35812
git-svn-id: http://core.svn.wordpress.org/trunk@35776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 16:17:27 +00:00
Ella Iseulde Van Dorpe
657d3b50af
Make date format consistent across the admin
...
The 'date_format' and 'time_format' options shouldn't affect the backend.
See #30864
Built from https://develop.svn.wordpress.org/trunk@35811
git-svn-id: http://core.svn.wordpress.org/trunk@35775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-07 04:26:27 +00:00
Weston Ruter
07339e61c0
Customizer: Apply customize_dynamic_setting_class
and customize_dynamic_setting_args
filters in calls to WP_Customize_Manager::add_setting( $id, $args )
.
...
Ensure that plugin filters apply as expected for any settings registered statically without passing in an explicit class instance to `WP_Customize_Manager::add_setting()`.
Fixes #34597 .
Built from https://develop.svn.wordpress.org/trunk@35810
git-svn-id: http://core.svn.wordpress.org/trunk@35774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 23:22:25 +00:00
Michael Adams
699c377856
Meta Boxes: Preserve radio inputs' state when sorting metaboxes.
...
When sorting a metabox, a clone of that metabox is created as a drag/drop "helper".
Previously, any checked radio input in the original metabox would become unchecked, when its clone "helper" was inserted into the DOM
(since only one radio within a set of radios of the same name can be checked).
Continued use of the clone helper is important so that the element being dragged isn't subject to the click and other event handlers attached to the real metabox,
so we can't just switch to dragging around the real metabox. See, for example, comment:10:ticket:16972.
Preserve the radios' state via some name attribute trickery.
Fixes #16972
Built from https://develop.svn.wordpress.org/trunk@35809
git-svn-id: http://core.svn.wordpress.org/trunk@35773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:23:49 +00:00
Helen Hou-Sandí
83795d99be
Plugins: Provide a link to searching the plugin directory when no search results are found.
...
Many new users do not know the difference between managing installed plugins and those found in the plugin directory. This helps with discoverability. The link is not provided in multisite installs because we assume that somebody with that kind of power in a network is experienced enough not to need it. This can always be reconsidered later.
props mordauk for the initial patch.
fixes #29865 .
Built from https://develop.svn.wordpress.org/trunk@35808
git-svn-id: http://core.svn.wordpress.org/trunk@35772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:23:25 +00:00
Mel Choyce
bba9132925
Twenty Eleven/Docs: Remove duplicate "can" from footer template.
...
See #34885 .
Built from https://develop.svn.wordpress.org/trunk@35807
git-svn-id: http://core.svn.wordpress.org/trunk@35771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:12:25 +00:00
Nikolay Bachiyski
c512f8cbdd
Docs: clarify inline docs for hash_equals
...
Before the docs implied the complexity of the function was O(1) by using the term "constant time", now we use the more descriptive term "Timing attack safe".
Props AramZS.
Fixes #32778 .
Built from https://develop.svn.wordpress.org/trunk@35805
git-svn-id: http://core.svn.wordpress.org/trunk@35769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:04:51 +00:00
John Blackbourn
d35bc1b936
Use site_url()
when generating WP_CONTENT_URL
so it correctly adjusts for pages served over HTTPS. This mainly only affects old plugins which still use WP_CONTENT_URL
instead of the newer plugins_url()
function.
...
Fixes #13941
Props micropat
Built from https://develop.svn.wordpress.org/trunk@35804
git-svn-id: http://core.svn.wordpress.org/trunk@35768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:04:26 +00:00
Pascal Birchler
4ace55b0dc
Docs: Add proper @param
and @return
tags for capital_P_dangit()
.
...
Props timplunkett.
Fixes #34863 .
Built from https://develop.svn.wordpress.org/trunk@35803
git-svn-id: http://core.svn.wordpress.org/trunk@35767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:02:27 +00:00
Mike Schroder
8d220df08b
Bundled Themes: Bump version numbers in default themes.
...
Props davidakennedy.
Fixes #34804 .
Built from https://develop.svn.wordpress.org/trunk@35802
git-svn-id: http://core.svn.wordpress.org/trunk@35766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:01:27 +00:00
Andrea Fercia
bc7950519b
Notices: improve styling consistency of links within notices.
...
For accessibility, links inside lines or blocks of text should be always underlined.
Props walbo.
Fixes #34606 .
Built from https://develop.svn.wordpress.org/trunk@35801
git-svn-id: http://core.svn.wordpress.org/trunk@35765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 22:00:26 +00:00
Eric Lewis
0e8e5124c1
Posts: Don't modify post_name if it wasn't supplied to wp_insert_post()
.
...
Previously when updating a post using wp_insert_post(), post_name was
regenerated based on post_title every time if post_name was not passed in
explicitly. This irons out the expectation that properties not passed into the
function should not be modified.
Props jason_the_adams.
Fixes #34865 .
Built from https://develop.svn.wordpress.org/trunk@35800
git-svn-id: http://core.svn.wordpress.org/trunk@35764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:58:25 +00:00
Pascal Birchler
f522e69a57
Docs: Fix a typo in the stylesheet_directory
filter docs.
...
Props ixkaito.
Fixes #34859 .
Built from https://develop.svn.wordpress.org/trunk@35799
git-svn-id: http://core.svn.wordpress.org/trunk@35763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:57:24 +00:00
Konstantin Kovshenin
84affbd3a9
Docs: Make "list table table tag" a bit more readable.
...
See: #34885 , r35796.
Built from https://develop.svn.wordpress.org/trunk@35797
git-svn-id: http://core.svn.wordpress.org/trunk@35761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:54:26 +00:00
Konstantin Kovshenin
919867b090
Docs: Remove some more dittography.
...
See #34885 , r35793.
Built from https://develop.svn.wordpress.org/trunk@35796
git-svn-id: http://core.svn.wordpress.org/trunk@35760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:50:25 +00:00
Pascal Birchler
59351cb62d
Toolbar: Allow adding lang
and dir
attributes to toolbar items.
...
This is useful from a multilingual and accessibility perspective.
Props Chouby, leemon.
Fixes #33513 .
Built from https://develop.svn.wordpress.org/trunk@35795
git-svn-id: http://core.svn.wordpress.org/trunk@35759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:37:25 +00:00
Jeremy Felt
714d5885d9
Te Docs: Fix te the misspelling.
...
Previously, [35793].
Fixes #34888 .
Built from https://develop.svn.wordpress.org/trunk@35794
git-svn-id: http://core.svn.wordpress.org/trunk@35758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:32:25 +00:00
Gary Pendergast
31f51e2cbb
The the Docs: Fix the the dittography
...
Sometimes, it's easy to to type the the same word twice, especially if if it's a simple word. We probably shouldn't do do do (do do do doo) it, though.
(I've excluded external libs from this change.)
Fixes #34885 .
Built from https://develop.svn.wordpress.org/trunk@35793
git-svn-id: http://core.svn.wordpress.org/trunk@35757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:23:25 +00:00
Aaron Campbell
894526c78d
Consider both home and site domains to be valid in wp_validate_redirect()
.
...
Props layotte.
Fixes #34028 .
Built from https://develop.svn.wordpress.org/trunk@35792
git-svn-id: http://core.svn.wordpress.org/trunk@35756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:17:24 +00:00
Michael Arestad
5eae357697
Administration: Improve color contrast of 'Add New' buttons.
...
This also includes improved focus styles for 'Add New'.
fixes #34876 , #34864 .
Built from https://develop.svn.wordpress.org/trunk@35791
git-svn-id: http://core.svn.wordpress.org/trunk@35755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 21:07:25 +00:00
Boone Gorges
714be37ea5
Show user_login in Dashboard user dropdowns.
...
User dropdowns in wp-admin have traditionally shown the users' display names.
However, this causes ambiguity when users share display names. To correct this,
we now show the unique user_login in parentheses after the display name.
The new `display_name_with_login` value for the `show` parameter of
`wp_dropdown_users()` enables this functionality. The default value of `show`
has not been changed, for backward compatibility, but all instances of
`wp_dropdown_users()` in core wp-admin have been switched.
This changeset also reduces some duplicated logic when assembling a user list
when `include_selected` is true.
Props krogsgard, boonebgorges.
Fixes #31251 .
Built from https://develop.svn.wordpress.org/trunk@35790
git-svn-id: http://core.svn.wordpress.org/trunk@35754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 20:57:26 +00:00
Rachel Baker
2cd2cb6e17
Multisite: Clarify purpose of hook from [35786] and match our naming convention.
...
`network_site_new_created_user_pending` -> `pre_network_site_new_created_user`
See #33631
Built from https://develop.svn.wordpress.org/trunk@35789
git-svn-id: http://core.svn.wordpress.org/trunk@35753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 20:32:24 +00:00
Konstantin Kovshenin
e1966f061d
Allow usage of angle brackets in a site title or tagline.
...
The whole string is escaped with `esc_html()` anyway, so we don't
need to `wp_kses_post()`. This is a better experience for users who
want to use angle brackets in their site title or description.
Does not allow any HTML, adds unit tests.
props BandonRandon, pauldewouters.
fixes #27942 .
Built from https://develop.svn.wordpress.org/trunk@35788
git-svn-id: http://core.svn.wordpress.org/trunk@35752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 20:29:25 +00:00
Drew Jaynes
4048bfb25c
Docs: Fix mid-file separator syntax in wp-includes/wp-db.php.
...
Props liamdempsey.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35787
git-svn-id: http://core.svn.wordpress.org/trunk@35751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 20:26:24 +00:00
Rachel Baker
66ea0d6e1b
Multisite: Add hook before a new user is created during the creation of a new site.
...
New `network_site_new_created_user_pending` action fires before a new user will be created via the network site-new.php page.
Props mackensen
Fixes #33631
Built from https://develop.svn.wordpress.org/trunk@35786
git-svn-id: http://core.svn.wordpress.org/trunk@35750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 20:10:26 +00:00
Konstantin Obenland
2b7183c94b
Plugins: Allow long plugin names to wrap on small screens.
...
Props mapk, rickalee.
Fixes #32569 .
Built from https://develop.svn.wordpress.org/trunk@35785
git-svn-id: http://core.svn.wordpress.org/trunk@35749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 19:58:24 +00:00
Boone Gorges
f8eec84133
Bump readme.html to 4.5.
...
Built from https://develop.svn.wordpress.org/trunk@35784
git-svn-id: http://core.svn.wordpress.org/trunk@35748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 18:49:26 +00:00
Weston Ruter
76fe3244eb
Customizer: Re-use public api.preview
instance in widgets preview instead of unnecessarily capturing in api.Preview
constructor wrapper.
...
The preview instance is no longer private.
Props joshlevinson, westonruter.
Fixes #30890 .
See #30726 .
Built from https://develop.svn.wordpress.org/trunk@35783
git-svn-id: http://core.svn.wordpress.org/trunk@35747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 18:39:25 +00:00
Jeremy Felt
a9da055b5b
MS: Populate public
on empty $current_blog
during subdomain activation.
...
Activation of a subdomain site is done through that new site's address. This address does not exist in the `wp_blogs` table until activation is complete.
In this case we need to make sure `public` is populated to avoid a PHP notice.
Props uglyrobot.
Fixes #24760 .
Built from https://develop.svn.wordpress.org/trunk@35782
git-svn-id: http://core.svn.wordpress.org/trunk@35746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 18:24:26 +00:00
Weston Ruter
0c311ef2d6
Customizer: Return added instances for panels, sections, controls, and settings when calling WP_Customize_Manager::add_*()
methods.
...
Add missing phpDoc.
Props fusillicode, jubstuff.
Fixes #34596 .
Built from https://develop.svn.wordpress.org/trunk@35781
git-svn-id: http://core.svn.wordpress.org/trunk@35745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 18:10:25 +00:00
Mark Jaquith
446de48b4f
About Page: Add the WordPress 4.4 tagline.
...
"Connected" because of REST API and cross-site embeds.
"Responsive" because of responsive images and under-the-hood tweaks.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35780
git-svn-id: http://core.svn.wordpress.org/trunk@35744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 17:52:25 +00:00
Andrew Nacin
45032198e3
Updates: Avoid stomping global $wp_version
in wp_version_check()
and related.
...
fixes #34868 .
Built from https://develop.svn.wordpress.org/trunk@35779
git-svn-id: http://core.svn.wordpress.org/trunk@35743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 17:39:27 +00:00
Boone Gorges
82ade1db66
Bump package.json to 4.5.0.
...
Built from https://develop.svn.wordpress.org/trunk@35778
git-svn-id: http://core.svn.wordpress.org/trunk@35742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 17:36:25 +00:00
Dion Hulse
70e9f5b543
Upgrader: FTP: Cleanup temporary files during FTP download failures.
...
Props ruud@joyo
Fixes #34772
Built from https://develop.svn.wordpress.org/trunk@35777
git-svn-id: http://core.svn.wordpress.org/trunk@35741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 17:07:25 +00:00
Andrew Nacin
fc81fef986
Trunk is now 4.5-alpha.
...
Built from https://develop.svn.wordpress.org/trunk@35776
git-svn-id: http://core.svn.wordpress.org/trunk@35740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 16:44:25 +00:00
Andrew Nacin
0cf9d8b922
Add initial_db_version to wp_version_check().
...
fixes #34854 .
Built from https://develop.svn.wordpress.org/trunk@35774
git-svn-id: http://core.svn.wordpress.org/trunk@35738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-06 15:44:27 +00:00
Scott Taylor
4ae83ec7ec
REST API: Core typically sends nocache headers on all auth'ed responses, as in wp
, admin-ajax
, etc. Because the REST API infrastructure is hooked in pre-wp, we should be setting this ourselves.
...
Adds unit tests.
Props joehoyle.
Fixes #34832 .
Built from https://develop.svn.wordpress.org/trunk@35773
git-svn-id: http://core.svn.wordpress.org/trunk@35737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 23:36:25 +00:00
Boone Gorges
43d1ab4720
Use 'invalid_username' error code when tripping 'illegal_user_logins'.
...
This gives us better compatibility with existing errors thrown by
`sanitize_user()`, especially in Multisite, where user_login has more
restrictions on allowed characters.
Props markjaquith.
Fixes #27317 .
Built from https://develop.svn.wordpress.org/trunk@35772
git-svn-id: http://core.svn.wordpress.org/trunk@35736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 23:25:26 +00:00
Aaron Jorbin
c589ceb880
Make comment screen row actions focusable
...
In [34504], tabbing through row actions on comments that lacked links was broken. This restores the desired behavior and ensures that the row actions can be seen by no-js users.
Second Permanent Committer sign off was by WonderBoyMusic
See #15520
Fixes #34791
Props afercia, azaozz
Built from https://develop.svn.wordpress.org/trunk@35771
git-svn-id: http://core.svn.wordpress.org/trunk@35735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 23:13:24 +00:00
Scott Taylor
9ea3f9f676
Canonical: introduce strip_fragment_from_url()
and use when comparing URLs in redirect_canonical()
.
...
Props tellyworth.
Fixes #19918 .
Built from https://develop.svn.wordpress.org/trunk@35770
git-svn-id: http://core.svn.wordpress.org/trunk@35734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 23:11:26 +00:00
Drew Jaynes
ef1280f770
About page: Make strings translatable.
...
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35769
git-svn-id: http://core.svn.wordpress.org/trunk@35733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 18:09:25 +00:00
Drew Jaynes
7b20f48413
About page: Final string changes.
...
Props petya, ocean90, DrewAPicture
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35768
git-svn-id: http://core.svn.wordpress.org/trunk@35732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 17:55:28 +00:00
Dominik Schilling
3be896b142
Unit Tests: Implement addWarning()
method in SpeedTrapListener.
...
The method was introduced in PHPUnit 5.1.0, released today.
Fixes #34846 .
Built from https://develop.svn.wordpress.org/trunk@35767
git-svn-id: http://core.svn.wordpress.org/trunk@35731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 16:41:26 +00:00
Drew Jaynes
65fb187505
About page: Add non-breaking spaces to "Reddit Comments" and "Speaker Deck" oEmbed provider names to prevent line wrapping between the words.
...
Props ocean90.
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35766
git-svn-id: http://core.svn.wordpress.org/trunk@35730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 16:27:25 +00:00
Drew Jaynes
3e1f22c196
About page: Fix some minor string errors and simplify URL-building for the plugin install link for capable users.
...
Props ocean90, DrewAPicture
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35765
git-svn-id: http://core.svn.wordpress.org/trunk@35729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 16:13:28 +00:00
Dominik Schilling
7250749032
Reset Password: Add a missing new
operator for WP_Error
in get_password_reset_key()
.
...
Missed in [34923].
Fixes #34180 .
Built from https://develop.svn.wordpress.org/trunk@35764
git-svn-id: http://core.svn.wordpress.org/trunk@35728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 15:31:26 +00:00
Drew Jaynes
de586c98c4
First pass of the 4.4 about page. Adds strings (not yet translatable) and screen shots (not CDN).
...
Props wonderboymusic, markjaquith, helen, nacin, liljimmi, mordauk, melchoyce, ryelle, ocean90, DrewAPicture
See #34663 .
Built from https://develop.svn.wordpress.org/trunk@35763
git-svn-id: http://core.svn.wordpress.org/trunk@35727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 12:24:26 +00:00
Andrew Nacin
9834e9993a
Embeds: Enforce, via unit tests, the no-ampersand rule for wp-embed.js.
...
fixes #34698 .
Built from https://develop.svn.wordpress.org/trunk@35762
git-svn-id: http://core.svn.wordpress.org/trunk@35726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-04 05:46:25 +00:00
Scott Taylor
8cf8e2c66d
WP oEmbed: validate the secret
send via postMessage
in wp.receiveEmbedMessage
. Also, compare window
instances.
...
In the data sent to us from the embedded iframe by postMessage(), the secret value is being used directly in a document.querySelectorAll() call without first being validated or escaped.
In theory, this could lead to some broken embeds.
Props mdawaffe.
Fixes #34831 .
Built from https://develop.svn.wordpress.org/trunk@35761
git-svn-id: http://core.svn.wordpress.org/trunk@35725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-03 20:17:25 +00:00
Helen Hou-Sandí
2f287af8aa
Media: Avoid rel="rel="
situations.
...
props lucymtc, swissspidy.
fixes #34826 . see #32074 .
Built from https://develop.svn.wordpress.org/trunk@35760
git-svn-id: http://core.svn.wordpress.org/trunk@35724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-03 17:17:26 +00:00
Gary Pendergast
caf4b8270c
Readme: Bump recommended MySQL version to 5.6, as 5.5 is now over 5 years old.
...
Happy birthday, MySQL 5.5!
Fixes #34840 .
Built from https://develop.svn.wordpress.org/trunk@35759
git-svn-id: http://core.svn.wordpress.org/trunk@35723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-03 16:46:26 +00:00
Mark Jaquith
6cc98e6fcd
Route HEAD API requests through the GET callback method
...
fixes #34837
props danielbachhuber
Built from https://develop.svn.wordpress.org/trunk@35758
git-svn-id: http://core.svn.wordpress.org/trunk@35722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-03 16:34:25 +00:00
Boone Gorges
939291df9f
Ensure that order is specified when querying for comment descendants.
...
Props tellyworth.
Fixes #34838 .
Built from https://develop.svn.wordpress.org/trunk@35757
git-svn-id: http://core.svn.wordpress.org/trunk@35721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-03 15:50:27 +00:00
Scott Taylor
fc349932c0
Install: after [35508], the margin on the header for the Install screen is too big.
...
Props SergeyBiryukov.
Fixes #34819 .
Built from https://develop.svn.wordpress.org/trunk@35756
git-svn-id: http://core.svn.wordpress.org/trunk@35720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 21:02:25 +00:00
Scott Taylor
9b5ffe8062
Responsive Images: Currently images are included in the srcset
if the aspect ratio difference is smaller than 0.01
. This number is too high, set it to 0.002
...
Props joemcgill.
Fixes #34810 .
Built from https://develop.svn.wordpress.org/trunk@35755
git-svn-id: http://core.svn.wordpress.org/trunk@35719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 20:58:24 +00:00
Scott Taylor
c0f8bd0de2
Customize Unit Tests: also remove_action( 'after_setup_theme', 'twentysixteen_setup' )
. TwentyFifteen is already removed.
...
See #31550 .
Built from https://develop.svn.wordpress.org/trunk@35754
git-svn-id: http://core.svn.wordpress.org/trunk@35718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 20:56:24 +00:00
Scott Taylor
eaae2546f5
Media: don't use get_media_embedded_in_content()
in wp_make_content_images_responsive()
.
...
Adds unit test.
Props azaozz.
Fixes #34807 .
Built from https://develop.svn.wordpress.org/trunk@35753
git-svn-id: http://core.svn.wordpress.org/trunk@35717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 20:50:25 +00:00
Scott Taylor
d569b9609e
Media: show Trash filter for Media list table when MEDIA_TRASH
is true.
...
Props chacha102.
Fixes #34795 .
Built from https://develop.svn.wordpress.org/trunk@35752
git-svn-id: http://core.svn.wordpress.org/trunk@35716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 20:48:25 +00:00
Scott Taylor
cd9515d306
Unit Tests: fix responsive image unit tests. Correct the logic in video shortcode unit test for width.
...
Props joemcgill, wonderboymusic.
Fixes #34790 .
Built from https://develop.svn.wordpress.org/trunk@35751
git-svn-id: http://core.svn.wordpress.org/trunk@35715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-01 20:45:28 +00:00
Ryan McCue
d1436af513
REST API: Unabbreviate error string.
...
Props daniel-koskinen.
Fixes #34818 .
Built from https://develop.svn.wordpress.org/trunk@35750
git-svn-id: http://core.svn.wordpress.org/trunk@35714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-30 09:51:27 +00:00
Mark Jaquith
1a43f0b290
Do not pass FALSE as second parameter in variable class_exists() checks
...
Because these are generally plugin-provided, we want plugins to be
able to use autoloaders.
fixes #20523
Built from https://develop.svn.wordpress.org/trunk@35749
git-svn-id: http://core.svn.wordpress.org/trunk@35713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-30 04:15:27 +00:00
John Blackbourn
ec24d6e001
In a similar vein to [34133], escape the email address and IP address of comment authors to increase defence in depth.
...
Built from https://develop.svn.wordpress.org/trunk@35748
git-svn-id: http://core.svn.wordpress.org/trunk@35712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-29 02:43:24 +00:00
John Blackbourn
6f37afb6ec
When a post is scheduled for publication, treat it the same as a published post when calculating the capabilities required to edit or delete it.
...
Fixes #33694
Built from https://develop.svn.wordpress.org/trunk@35747
git-svn-id: http://core.svn.wordpress.org/trunk@35711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-29 02:27:18 +00:00
John Blackbourn
2b81411a0d
Remove debug mode from WP-CLI by default, as it now outputs too much debugging information to be of use during normal development.
...
Fixes #34801
Props rodrigosprimo
Built from https://develop.svn.wordpress.org/trunk@35746
git-svn-id: http://core.svn.wordpress.org/trunk@35710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-28 18:37:27 +00:00
John Blackbourn
28c78799c3
Ensure the correct error message is returned when a user attempts to comment on a post to which they do not have access.
...
Adds more tests.
Built from https://develop.svn.wordpress.org/trunk@35745
git-svn-id: http://core.svn.wordpress.org/trunk@35709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-28 18:29:32 +00:00
Scott Taylor
aa624c4029
WordPress 4.4 RC 1 version bump
...
Built from https://develop.svn.wordpress.org/trunk@35744
git-svn-id: http://core.svn.wordpress.org/trunk@35708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 23:02:24 +00:00
Scott Taylor
cbed27ccf0
WordPress 4.4 RC 1
...
Built from https://develop.svn.wordpress.org/trunk@35743
git-svn-id: http://core.svn.wordpress.org/trunk@35707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 22:53:27 +00:00
Dominik Schilling
9fb5c540bb
Users: Allow to create users without sending an email to the new user.
...
This adds a checkbox to `wp-admin/user-new.php` to prevent sending an email with the username and a password reset link to the new user. Restores the behavior of pre-4.3.
Fixes #33504 .
Props tharsheblows, SergeyBiryukov, DrewAPicture, ocean90.
Built from https://develop.svn.wordpress.org/trunk@35742
git-svn-id: http://core.svn.wordpress.org/trunk@35706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 22:38:29 +00:00
Ryan McCue
7ce9772866
REST API: Mark WP_REST_Server::get_raw_data as static.
...
This is just a utility function for getting the request body, not
tied to the server class.
Fixes #34768 .
Built from https://develop.svn.wordpress.org/trunk@35741
git-svn-id: http://core.svn.wordpress.org/trunk@35705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 22:22:25 +00:00
Helen Hou-Sandí
e24681632e
Avoid potential fatal errors after [35718].
...
While these classes are intended for admin use, there are developers out there who include `wp-admin/includes/template.php` to access them in other contexts. There is no intention to continue to support this indefinitely, but a breaking change like that would need to happen very early in a cycle and communicated loudly.
In the meantime, if you're reading this commit message and you do the above, please update your code to not do that. Thank you :)
fixes #33413 .
Built from https://develop.svn.wordpress.org/trunk@35740
git-svn-id: http://core.svn.wordpress.org/trunk@35704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 22:19:26 +00:00
Helen Hou-Sandí
2eb60b8278
Set Twenty Sixteen as the default theme.
...
With thanks to all those who contributed.
props iamtakashi, karmatosed, iandstewart, dd32, mor10, grapplerulrich, davidakennedy, frank-klein, tywayne, wenthemes, monika, metodiew, nhuja, headonfire, Chrisdc1, philiparthurmoore, karpstrucking, cais, mt8.biz, fjarrett, sdavis2702, SergeyBiryukov, eduardozulian, webdevmattcrom, ehtis, peterwilsoncc, tfrommen, fsylum, wonderboymusic, ocean90, obenland, cainm, mrahmadawais, drewapicture, trenzterra, tevko, kraftbj, walbo, nacin.
fixes #34306 .
Built from https://develop.svn.wordpress.org/trunk@35739
git-svn-id: http://core.svn.wordpress.org/trunk@35703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 21:52:26 +00:00
Scott Taylor
79a2915a9b
Upgrade: New themes are not automatically installed on upgrade. This can still be explicitly asked for by defining CORE_UPGRADE_SKIP_NEW_BUNDLED
as false
.
...
In `populate_options()`, if the theme specified by `WP_DEFAULT_THEME` doesn't exist, fall back to the latest core default theme. If we can't find a core default theme, `WP_DEFAULT_THEME` is the best we can do.
Props nacin, jeremyfelt, dd32.
See #34306 .
Built from https://develop.svn.wordpress.org/trunk@35738
git-svn-id: http://core.svn.wordpress.org/trunk@35702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 21:45:25 +00:00
Konstantin Obenland
77c6154881
Template: Defining a default value for show_home
breaks back compat.
...
To add a home link to the fallback menu output many themes only check if that
argument is set. Including Twenty Ten and Twenty Eleven. They check with
`isset()` so child themes and other instances using `wp_page_menu()` have a
chance to disable the home link by setting it to `false`.
Fixes #11095 .
Built from https://develop.svn.wordpress.org/trunk@35737
git-svn-id: http://core.svn.wordpress.org/trunk@35701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 18:55:26 +00:00
Scott Taylor
a2ec7caf93
Add a unit test for wp_nav_menu()
with container => ''
...
See #32464 .
Built from https://develop.svn.wordpress.org/trunk@35736
git-svn-id: http://core.svn.wordpress.org/trunk@35700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-25 18:19:27 +00:00
Dominik Schilling
0632e4ab84
Passwords: Support the pre-4.3 behavior of wp_new_user_notification()
.
...
Hello, it's me again. A pluggable function named `wp_new_user_notification()`. A few months ago, after [33023], I have lost my second parameter `$plaintext_pass`. But thanks to [33620] I got a new one.
Bad idea - It hasn't had the same behavior as my previous parameter.
To solve that the second parameter got deprecated and reintroduced as the third parameter in [34116]. I was happy again, for a short time.
You remember my lost friend `$plaintext_pass`? No? Well, if its value was empty no notification was sent to the user. This behavior was still lost. And that's what this change is about: Don't notify a user if a plugin uses `wp_new_user_notification( $user_id )`.
You're asking if I'm happy now? Dunno, but maybe you have learned something about pluggable functions, have you?
Props danielbachhuber.
Fixes #34377 .
Built from https://develop.svn.wordpress.org/trunk@35735
git-svn-id: http://core.svn.wordpress.org/trunk@35699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-24 23:07:26 +00:00
Dominik Schilling
16b95ab2a7
HTTP Tests: Use login.wordpress.org/wp-login.php
in test_get_response_cookies()
.
...
The old URL redirects to `login.wordpress.org` because it's the new canonical URL for all logins on wordpress.org.
Fixes #34782 .
Built from https://develop.svn.wordpress.org/trunk@35734
git-svn-id: http://core.svn.wordpress.org/trunk@35698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-24 22:00:26 +00:00
Dominik Schilling
7f3082491d
Passwords: Re-enable password fields before submitting the form.
...
Avoids an PHP undefined notice when creating new users.
Fixes #33699 .
Built from https://develop.svn.wordpress.org/trunk@35733
git-svn-id: http://core.svn.wordpress.org/trunk@35697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-24 21:17:27 +00:00
Sergey Biryukov
64fdd0c6a0
Users: Move the tests added in [35116] and [35618] to a more appropriate place and give them a better name.
...
See #28435 , #29880 .
Built from https://develop.svn.wordpress.org/trunk@35732
git-svn-id: http://core.svn.wordpress.org/trunk@35696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-23 18:40:25 +00:00
Sergey Biryukov
60c8e272f5
Docs: Improve DocBlock formatting for add_menu_page()
and add_submenu_page()
wrappers.
...
See #34360 .
Built from https://develop.svn.wordpress.org/trunk@35731
git-svn-id: http://core.svn.wordpress.org/trunk@35695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-23 17:56:26 +00:00
Helen Hou-Sandí
2cdeac7cf6
Pass the $post
object as context to postmeta_form_keys
.
...
see #33885 , #18979 .
Built from https://develop.svn.wordpress.org/trunk@35730
git-svn-id: http://core.svn.wordpress.org/trunk@35694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-23 17:15:29 +00:00
Gary Pendergast
d04396d0ad
Docs: Replace a reference to WP.org with WordPress.org.
...
Built from https://develop.svn.wordpress.org/trunk@35729
git-svn-id: http://core.svn.wordpress.org/trunk@35693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-22 22:38:26 +00:00
Andrew Ozz
50a5fbb269
Editor: remove wpLink dependency on jQuery UI.
...
Props afercia.
Fixes #34716 .
Built from https://develop.svn.wordpress.org/trunk@35728
git-svn-id: http://core.svn.wordpress.org/trunk@35692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-22 19:27:26 +00:00
Andrew Ozz
91759029e9
TinyMCE: fix the regexp used to protect line breaks inside script and pre tags to match <script>
that load external scripts.
...
Fixes #34760 .
Built from https://develop.svn.wordpress.org/trunk@35727
git-svn-id: http://core.svn.wordpress.org/trunk@35691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-22 19:13:28 +00:00
Sergey Biryukov
ae04eba0b6
Comments: After [35670], change the CSS class for the pending comments count back to moderated
.
...
Fixes #34680 .
Built from https://develop.svn.wordpress.org/trunk@35726
git-svn-id: http://core.svn.wordpress.org/trunk@35690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-22 15:23:26 +00:00
Sergey Biryukov
bc1e479fd0
After [35718], update the location of some files in This filter is documented in
docs.
...
Partially reverts [33954].
Fixes #33413 .
Built from https://develop.svn.wordpress.org/trunk@35725
git-svn-id: http://core.svn.wordpress.org/trunk@35689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-22 03:51:28 +00:00
Weston Ruter
5dae1386aa
Customize: Ensure that a setting (especially a multidimensional one) can still be previewed when the post value to preview is set after preview()
is invoked.
...
* Introduce `customize_post_value_set_{$setting_id}` and `customize_post_value_set` actions which are done when `WP_Customize_Manager::set_post_value()` is called.
* Clear the `preview_applied` flag for aggregated multidimensional settings when a post value is set. This ensures the new value is used instead of a previously-cached previewed value.
* Move `$is_preview` property from subclasses to `WP_Customize_Setting` parent class.
* Deferred preview: Ensure that when `preview()` short-circuits due to not being applicable that it will be called again later when the post value is set.
* Populate post value for updated-widget with the (unsanitized) JS-value in `WP_Customize_Widgets::call_widget_update()` so that value will be properly sanitized when accessed in `WP_Customize_Manager::post_value()`.
Includes unit tests with assertions to check the reported issues and validate the fixes.
Fixes defect introduced in [35007].
See #32103 .
Fixes #34738 .
Built from https://develop.svn.wordpress.org/trunk@35724
git-svn-id: http://core.svn.wordpress.org/trunk@35688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-21 02:52:27 +00:00
Sergey Biryukov
fd9bd77fe5
Comments: In comment_form()
, introduce the comment_form_fields
filter for comment fields, including the textarea.
...
Correct the docs for `comment_notes_before` and `comment_notes_after` arguments as well as `comment_form_before_fields` and `comment_form_after_fields` actions to better describe the current behaviour.
Fixes #34731 .
Built from https://develop.svn.wordpress.org/trunk@35723
git-svn-id: http://core.svn.wordpress.org/trunk@35687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 18:56:27 +00:00
Sergey Biryukov
17af54fc7c
Customizer: Use correct context and translator comments for menu location strings.
...
See #33431 .
Built from https://develop.svn.wordpress.org/trunk@35722
git-svn-id: http://core.svn.wordpress.org/trunk@35686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 17:46:25 +00:00
Helen Hou-Sandí
277747f944
Postbox handle buttons don't need a focus outline.
...
see #33808 , #34242 .
Built from https://develop.svn.wordpress.org/trunk@35721
git-svn-id: http://core.svn.wordpress.org/trunk@35685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 15:56:25 +00:00
Dominik Schilling
22fe87c3b3
Build: Update source for includes:embed
after [35718].
...
See #33413 .
Built from https://develop.svn.wordpress.org/trunk@35720
git-svn-id: http://core.svn.wordpress.org/trunk@35684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 15:37:26 +00:00
Dominik Schilling
6fa25ac809
4.4-beta4-35719.
...
Built from https://develop.svn.wordpress.org/trunk@35719
git-svn-id: http://core.svn.wordpress.org/trunk@35683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 13:46:27 +00:00
Andrew Nacin
1579e45d41
Simplify the include graph after work to split out classes.
...
see #33413 . More details there.
Built from https://develop.svn.wordpress.org/trunk@35718
git-svn-id: http://core.svn.wordpress.org/trunk@35682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 07:24:30 +00:00
Helen Hou-Sandí
e549e56f02
Custom fields: Allow for short-circuiting the meta key dropdown.
...
Adds the `postmeta_form_keys` filter which allows for a potentially expensive query against postmeta to be avoided.
props ericmann, tollmanz, nacin.
see #33885 .
Built from https://develop.svn.wordpress.org/trunk@35717
git-svn-id: http://core.svn.wordpress.org/trunk@35681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 06:16:50 +00:00
Sergey Biryukov
4341637ba6
Docs: Remove redundant type
strings from the wp_calculate_image_srcset
filter DocBlock.
...
Props DH-Shredder, joemcgill.
See #34733 .
Built from https://develop.svn.wordpress.org/trunk@35716
git-svn-id: http://core.svn.wordpress.org/trunk@35680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 06:16:26 +00:00
Sergey Biryukov
db4a87b0fd
Docs: Add @see
tags for wp_get_attachment_image_srcset()
and wp_get_attachment_image_sizes()
.
...
Update `@see` tags for `wp_make_content_images_responsive()` and `wp_image_add_srcset_and_sizes()`.
Props jaspermdegroot.
See #34733 .
Built from https://develop.svn.wordpress.org/trunk@35715
git-svn-id: http://core.svn.wordpress.org/trunk@35679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 06:13:26 +00:00
Dion Hulse
048f327bfc
Merge the changes to GlotPress's POMO from upstream to WordPress's copy.
...
Fixes #34748
Built from https://develop.svn.wordpress.org/trunk@35714
git-svn-id: http://core.svn.wordpress.org/trunk@35678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 04:34:25 +00:00
Dion Hulse
870cdfb024
Bump the version of MediaElement in script-loader.php to match what we're shipping with.
...
See #33798
Fixes #34743
Built from https://develop.svn.wordpress.org/trunk@35713
git-svn-id: http://core.svn.wordpress.org/trunk@35677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 03:32:26 +00:00
Sergey Biryukov
cc7736a024
ru_RU: In back-compat styles for admin menu, inherit the width from the parent element, #adminmenuwrap
, to account for media queries.
...
See #20974 .
Built from https://develop.svn.wordpress.org/trunk@35712
git-svn-id: http://core.svn.wordpress.org/trunk@35676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 01:40:25 +00:00
Sergey Biryukov
3418279862
ru_RU: After [35710], remove fixed width for admin menu, as it does not account for media queries.
...
See #20974 .
Built from https://develop.svn.wordpress.org/trunk@35711
git-svn-id: http://core.svn.wordpress.org/trunk@35675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 01:04:25 +00:00
Sergey Biryukov
a1116d9534
Add some back-compat styles for ru_RU.
...
This prevents the admin menu from disappearing if an old `ru_RU.php` file is left over after updating directly from 3.1.x or an older version to the latest release.
See #20974 .
Built from https://develop.svn.wordpress.org/trunk@35710
git-svn-id: http://core.svn.wordpress.org/trunk@35674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-20 00:36:27 +00:00
Gary Pendergast
a3cd85eefd
Texturize: Only convert &
to &
within text nodes.
...
Previously, `&` would be converted everywhere, which caused problems when it was converted within a `<script>`, for example.
`convert_chars()` is now removed from the `the_content` filter, as it was doing the same job as `wptexturize()`.
KSES correctly handles converting `&` within HTML attributes, so there's no need for `wptexturize()` and `convert_chars()` to do the same job.
Fixes #34698 .
Built from https://develop.svn.wordpress.org/trunk@35709
git-svn-id: http://core.svn.wordpress.org/trunk@35673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 23:31:26 +00:00
Gary Pendergast
603d3c0013
Embeds: Remove &
characters from the inline embed JS.
...
Older versions of WordPress will convert those `&` characters to `&`, which makes for some non-functional JS. If folks are running an older release, let's not make their lives more difficult than it already is.
Props pento, peterwilsoncc.
See #34698 .
Built from https://develop.svn.wordpress.org/trunk@35708
git-svn-id: http://core.svn.wordpress.org/trunk@35672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 23:06:26 +00:00
John Blackbourn
8951e37f8f
Ensure the count for users with no role remains accurate when users with multiple roles are present.
...
See #34495
Built from https://develop.svn.wordpress.org/trunk@35707
git-svn-id: http://core.svn.wordpress.org/trunk@35671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 17:11:25 +00:00
Konstantin Obenland
595ade87f9
Template: Use template-loader.php
as cononical source of truth for conditional ordering.
...
Reverts [35700] which didn't account for author archives without posts.
Determination of the correct title is now based on the same order of
conditionals that template loader uses to select the right template.
H/t ocean90.
Fixes #34516 .
Built from https://develop.svn.wordpress.org/trunk@35706
git-svn-id: http://core.svn.wordpress.org/trunk@35670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 17:09:26 +00:00
John Blackbourn
c98359ddcf
Clean up the grammarian
role so it doesn't pollute other tests.
...
See #24153
Built from https://develop.svn.wordpress.org/trunk@35705
git-svn-id: http://core.svn.wordpress.org/trunk@35669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 16:47:25 +00:00
John Blackbourn
932236420c
Move the show_ui
logic into the get_edit_post_link()
and get_edit_term_link()
functions to facilitate post types and terms which specify show_ui
as false but provide a custom editing UI via the get_edit_post_link
and get_edit_term_link
filters.
...
Fixes #33763
Fixes #33938
Built from https://develop.svn.wordpress.org/trunk@35704
git-svn-id: http://core.svn.wordpress.org/trunk@35668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 16:25:26 +00:00
Helen Hou-Sandí
f6651352d9
Color picker: update to the new button style.
...
props paulwilde.
fixes #34734 .
Built from https://develop.svn.wordpress.org/trunk@35703
git-svn-id: http://core.svn.wordpress.org/trunk@35667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 14:37:33 +00:00
Gary Pendergast
53acbb936e
Embeds: Remove the allow_insecure_embeds
filter.
...
This reverts [35640]. On further reflection, it really didn't do what it said it did.
Fixes #34588 .
Built from https://develop.svn.wordpress.org/trunk@35702
git-svn-id: http://core.svn.wordpress.org/trunk@35666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 05:02:27 +00:00
Boone Gorges
f173cdfb18
On 4.4 upgrade, remove the unused 'add_users' cap from all roles.
...
Fixes #16719 .
Built from https://develop.svn.wordpress.org/trunk@35701
git-svn-id: http://core.svn.wordpress.org/trunk@35665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 03:53:28 +00:00
Konstantin Obenland
b875cd1b72
Template: Get the author name directly from $authordata
.
...
Since [25574] `$authordata` gets set up in `WP::register_globals()` - no need
to take a detour over the queried object.
Props greenshady for initial patch.
Fixes #34516 .
Built from https://develop.svn.wordpress.org/trunk@35700
git-svn-id: http://core.svn.wordpress.org/trunk@35664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-19 00:06:25 +00:00
Konstantin Obenland
3f2c4fa8d2
Media: Reset box-sizing for input elements in the entire media modal.
...
See [29727].
Props tyxla for initial patch.
Fixes #34556 .
Built from https://develop.svn.wordpress.org/trunk@35699
git-svn-id: http://core.svn.wordpress.org/trunk@35663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 23:36:28 +00:00
Scott Taylor
a99f7baa5a
List Tables: Fix PHP error notice when $columns
is null
...
Use of `register_column_headers()` and `print_column_headers()` creates a `_WP_List_Table_Compat` without any columns. When the List Table object doesn't have any columns, there's naturally no primary column.
Props danielbachhuber.
Fixes #34148 .
Built from https://develop.svn.wordpress.org/trunk@35698
git-svn-id: http://core.svn.wordpress.org/trunk@35662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 23:01:26 +00:00
Dominik Schilling
68f16dca18
Buttons: Update colors for disabled buttons.
...
Props hugobaeta.
Fixes #31459 .
Built from https://develop.svn.wordpress.org/trunk@35697
git-svn-id: http://core.svn.wordpress.org/trunk@35661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 22:47:26 +00:00
Drew Jaynes
b10a946c2c
Docs: Clarify some parameter and return descriptions in the DocBlocks for wp_get_attachment_image_srcset()
and wp_calculate_image_srcset()
, wp_get_attachment_image_sizes()
, and the wp_calculate_image_srcset
filter.
...
Props joemcgill.
See #34733 .
Built from https://develop.svn.wordpress.org/trunk@35696
git-svn-id: http://core.svn.wordpress.org/trunk@35660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 22:44:27 +00:00
Dominik Schilling
d1805c9da8
Customizer: Merge two similar strings.
...
Remove also `{{ data.menu_name }}` since it doesn't print anything.
Fixes #33630 .
Built from https://develop.svn.wordpress.org/trunk@35695
git-svn-id: http://core.svn.wordpress.org/trunk@35659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 22:25:25 +00:00
Dominik Schilling
dfd30b10b0
Customizer: Remove two unused strings.
...
Fixes #33632 .
Built from https://develop.svn.wordpress.org/trunk@35694
git-svn-id: http://core.svn.wordpress.org/trunk@35658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 22:12:26 +00:00
John Blackbourn
1368f7d489
Add support for oEmbeds from Speaker Deck.
...
Fixes #28597
Built from https://develop.svn.wordpress.org/trunk@35693
git-svn-id: http://core.svn.wordpress.org/trunk@35657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 22:05:25 +00:00
Jeremy Felt
f7b29ecd1b
Multisite: Re-Account for striped table rows with .site-*
classes.
...
[34356] removed the table row specificity on rules for `.site-deleted`, `.site-spammed`, `.site-archived`, and `.site-matured` so that the styles would be properly applied to other elements. Now, the zebra striping rules override these styles on even rows.
We can account for `tr` specific and more generic applications of these classes.
Fixes #33595 .
Built from https://develop.svn.wordpress.org/trunk@35692
git-svn-id: http://core.svn.wordpress.org/trunk@35656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 21:59:26 +00:00
Boone Gorges
b17cb707dc
Eliminate a db query when building the admin menu for non-privileged users.
...
Users who cannot `edit_posts` do not see the Comments nav item anyway, so
don't bother running a query that gets a comment count to display in the menu.
Props bordoni, johnbillion.
Fixes #19372 .
Built from https://develop.svn.wordpress.org/trunk@35691
git-svn-id: http://core.svn.wordpress.org/trunk@35655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 21:34:26 +00:00
Boone Gorges
31219ee677
In WP_Query
, set is_home
to false
during REST requests.
...
Props danielbachhuber.
Fixes #34373 .
Built from https://develop.svn.wordpress.org/trunk@35690
git-svn-id: http://core.svn.wordpress.org/trunk@35654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 21:18:26 +00:00
Drew Jaynes
f94f58fbb1
Embeds: Introduce print_embed_comments_button()
, print_embed_sharing_button()
, and print_embed_sharing_dialog()
, which respectively output the comments button, sharing buttons, and sharing dialog elements in the embed template.
...
This change hooks these new output functions to existing hooks in the embed template, allowing for more straightforward display control of these elements.
Leaves the embed header and footer intact pending further modularization in a future release.
Props juliobox, swissspidy, DrewAPicture.
See #34561 .
Built from https://develop.svn.wordpress.org/trunk@35689
git-svn-id: http://core.svn.wordpress.org/trunk@35653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:51:26 +00:00
Aaron Jorbin
e8d8e79371
Revert [34291] bringing back my-hacks
...
Keeping myhacks support is a small price to pay for not breaking people's sites. Even if it is very very very few sites, breaking sites isn't something that should be encouraged. Even with 10 years of deprecation notices.
https://core.trac.wordpress.org/ticket/33741#comment:18 outlines all the ways that the hack_file and my-hacks options can be setup and thus all the ways that the removal of those options could break sites.
Fixes #33741 .
Built from https://develop.svn.wordpress.org/trunk@35688
git-svn-id: http://core.svn.wordpress.org/trunk@35652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:49:26 +00:00
John Blackbourn
16502d03f2
Remove register_api_field()
from core. This is the only core function that utilises the $wp_rest_additional_fields
global, and doesn't belong as part of the infrastructure.
...
See https://github.com/WP-API/WP-API/pull/1748
Fixes #34730
Built from https://develop.svn.wordpress.org/trunk@35687
git-svn-id: http://core.svn.wordpress.org/trunk@35651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:39:26 +00:00
Sergey Biryukov
5d61c1b8d1
I18N: After [35620], move the code for standardizing on \n
line endings to Translation_Entry::key()
.
...
Props dd32.
Fixes #22172 .
Built from https://develop.svn.wordpress.org/trunk@35686
git-svn-id: http://core.svn.wordpress.org/trunk@35650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:37:25 +00:00
Dominik Schilling
c25efe2d52
Revert [35336] and [35337].
...
See #28344 .
Built from https://develop.svn.wordpress.org/trunk@35685
git-svn-id: http://core.svn.wordpress.org/trunk@35649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:30:25 +00:00
Aaron Jorbin
d507b5636f
Set cssmin compatibility to ie7
...
This matches the autoprefixer setting. This changes all compiled CSS.
Fixes #34540 .
Props christophherr, peterwilsoncc, netweb
Built from https://develop.svn.wordpress.org/trunk@35684
git-svn-id: http://core.svn.wordpress.org/trunk@35648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:28:25 +00:00
Scott Taylor
19834a4c21
List Tables: After [35622] and [34271], improve pagination logic when queries are altered.
...
Props bradyvercher.
Fixes #29870 .
Built from https://develop.svn.wordpress.org/trunk@35683
git-svn-id: http://core.svn.wordpress.org/trunk@35647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:25:26 +00:00
Scott Taylor
af0498989c
List Tables: After [34728], don't try to infer orderby
from query params.
...
List tables are really good.
Props cklosows.
Fixes #25493 .
Built from https://develop.svn.wordpress.org/trunk@35682
git-svn-id: http://core.svn.wordpress.org/trunk@35646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:19:26 +00:00
Scott Taylor
8caf5d9759
Plugins: add dismissible notices to update failures.
...
Adds unit test.
Props afercia, mehulkaklotar.
Fixes #33465 .
Built from https://develop.svn.wordpress.org/trunk@35681
git-svn-id: http://core.svn.wordpress.org/trunk@35645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 20:10:26 +00:00
Boone Gorges
68b8f41780
Allow filtering by non-public taxonomies on edit.php.
...
[35333] enforces protection for taxonomies by preventing non-public taxonomies
from registering query_vars in `register_taxonomy()`. This broke the use of
taxonomy query_vars on edit.php, breaking backward compatibility and
creating inconsistency with the treatment introduced in [34247], which allowed
`taxonomy=foo` filtering on the Dashboard, even when `foo` is non-public. In
this changeset, we make the same Dashboard exception for the query_var.
Fixes #21949 .
Built from https://develop.svn.wordpress.org/trunk@35680
git-svn-id: http://core.svn.wordpress.org/trunk@35644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:59:49 +00:00
Scott Taylor
af0282891d
Rewrite: alleviate conflicts between image attachment pages and posts when permalink structure is /%postname%/
.
...
Adds unit test.
Props SergeyBiryukov.
Fixes #24612 .
Built from https://develop.svn.wordpress.org/trunk@35679
git-svn-id: http://core.svn.wordpress.org/trunk@35643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:59:25 +00:00
Scott Taylor
13ea469061
Media: when making images responsive, check if they already have a sizes
attribute.
...
Adds unit test.
Props jaspermdegroot.
Fixes #34678 .
Built from https://develop.svn.wordpress.org/trunk@35678
git-svn-id: http://core.svn.wordpress.org/trunk@35642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:48:26 +00:00
Scott Taylor
f2e9e98fa6
Media: in media_send_to_editor()
, use wp_json_encode()
instead of addslashes()
.
...
Props TobiasBg.
Fixes #22135 .
Built from https://develop.svn.wordpress.org/trunk@35677
git-svn-id: http://core.svn.wordpress.org/trunk@35641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:40:27 +00:00
Scott Taylor
a9fb6e9ae0
Customizer i18n: provide translator context for current menu name and location.
...
Props ryankienstra.
Fixes #33431 .
Built from https://develop.svn.wordpress.org/trunk@35676
git-svn-id: http://core.svn.wordpress.org/trunk@35640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:21:28 +00:00
Scott Taylor
f1d0763785
Comments: after [35593], extend support to IE8 and improve checking for elements hidden with CSS
...
Props afercia.
Fixes #29974 .
Built from https://develop.svn.wordpress.org/trunk@35675
git-svn-id: http://core.svn.wordpress.org/trunk@35639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:15:28 +00:00
Scott Taylor
838592c1ba
List Tables: because we can never eradicate the existence of globals, ensure that $comment
is hoisted into the global space inside WP_Comments_List_Table::single_row()
.
...
Fixes #34654 .
Built from https://develop.svn.wordpress.org/trunk@35674
git-svn-id: http://core.svn.wordpress.org/trunk@35638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 19:05:30 +00:00
Scott Taylor
f0bbe00890
After [35616], improve the consistency of tabs styling.
...
Props afercia.
Fixes #34214 .
Built from https://develop.svn.wordpress.org/trunk@35673
git-svn-id: http://core.svn.wordpress.org/trunk@35637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 18:55:26 +00:00
Drew Jaynes
3a45270a43
Docs: Properly mark optional parameters as such in the DocBlock and function signature for wp_calculate_image_sizes()
.
...
Also updates the subsequent hook docs for the `wp_calculate_image_sizes` filter.
Props joemcgill.
Fixes #34612 .
Built from https://develop.svn.wordpress.org/trunk@35672
git-svn-id: http://core.svn.wordpress.org/trunk@35636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 18:53:27 +00:00
John Blackbourn
407f641cf3
Update WP_REST_Response::as_error()
to handle the new format error responses introduced in [35653].
...
Props danielbachhuber
Fixes #34551
Built from https://develop.svn.wordpress.org/trunk@35671
git-svn-id: http://core.svn.wordpress.org/trunk@35635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 18:29:26 +00:00
Sergey Biryukov
bc41f44158
I18N: After [34424], replace the placeholder with comments count after translate_nooped_plural()
runs, not before.
...
Props hnle.
Fixes #34680 .
Built from https://develop.svn.wordpress.org/trunk@35670
git-svn-id: http://core.svn.wordpress.org/trunk@35634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 18:04:28 +00:00
Drew Jaynes
283b7d0a66
Plugins: Rename the delete_plugin
action hook (introduced in [35094]) to deleted_plugin
as it fires ''following'' a plugin deletion attempt.
...
Further, introduce a new `delete_plugin` action hook, to be fired ''before'' a plugin deletion attempt. Both changes bring parity with other such transactional hooks in core that fire before and after certain actions, including on plugin activation/deactivation and install/uninstall, among others.
Props johnjamesjacoby.
Fixes #26904 .
Built from https://develop.svn.wordpress.org/trunk@35669
git-svn-id: http://core.svn.wordpress.org/trunk@35633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:58:26 +00:00
Sergey Biryukov
8919d9a88a
I18N: Move translatable Codex URLs to separate strings in wp-includes/ms-load.php
.
...
Props ramiy.
Fixes #34687 .
Built from https://develop.svn.wordpress.org/trunk@35668
git-svn-id: http://core.svn.wordpress.org/trunk@35632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:42:26 +00:00
Sergey Biryukov
d9faafbd44
I18N: Move translatable Codex URLs to separate strings in wp-includes/functions.php
.
...
Props ramiy.
See #34687 .
Built from https://develop.svn.wordpress.org/trunk@35667
git-svn-id: http://core.svn.wordpress.org/trunk@35631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:41:27 +00:00
Sergey Biryukov
0d4cf36199
I18N: Remove <a>
tag from translatable string in wp-admin/includes/class-wp-comments-list-table.php
.
...
Props ramiy.
Fixes #34686 .
Built from https://develop.svn.wordpress.org/trunk@35666
git-svn-id: http://core.svn.wordpress.org/trunk@35630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:34:27 +00:00
Sergey Biryukov
7cb5ca6b33
I18N: Remove <a>
tag from translatable string in wp-admin/comment.php
.
...
Props ramiy.
See #34686 .
Built from https://develop.svn.wordpress.org/trunk@35665
git-svn-id: http://core.svn.wordpress.org/trunk@35629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:33:30 +00:00
Sergey Biryukov
5539193dd0
I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-ftpsockets.php
.
...
Fixes #34684 .
Built from https://develop.svn.wordpress.org/trunk@35664
git-svn-id: http://core.svn.wordpress.org/trunk@35628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:23:29 +00:00
Sergey Biryukov
a7c5161db1
I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-ftpext.php
.
...
See #34684 .
Built from https://develop.svn.wordpress.org/trunk@35663
git-svn-id: http://core.svn.wordpress.org/trunk@35627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:22:27 +00:00
Sergey Biryukov
0237fadd3a
I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-base.php
.
...
See #34684 .
Built from https://develop.svn.wordpress.org/trunk@35662
git-svn-id: http://core.svn.wordpress.org/trunk@35626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:21:26 +00:00
Sergey Biryukov
6b94d7c89c
I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-ssh2.php
.
...
Props ramiy.
See #34684 .
Built from https://develop.svn.wordpress.org/trunk@35661
git-svn-id: http://core.svn.wordpress.org/trunk@35625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:18:40 +00:00
John Blackbourn
aeaea96bed
Correct the parameter type for the $stylesheet
parameter in the mce_css
filter documentation.
...
Fixes #34721
Props hnle
Built from https://develop.svn.wordpress.org/trunk@35660
git-svn-id: http://core.svn.wordpress.org/trunk@35624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 17:07:37 +00:00
Ryan McCue
0801acbdd8
REST API: Remove redundant "0" parameter.
...
This is just an artifact of how we parse the URL, and is already available
via $request->get_route()
Props danielbachhuber.
Fixes #34647 .
Built from https://develop.svn.wordpress.org/trunk@35659
git-svn-id: http://core.svn.wordpress.org/trunk@35623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-18 07:24:28 +00:00
Ella Iseulde Van Dorpe
72f09b29df
TinyMCE 4.2.8 update
...
Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=889
(No plugin, theme, skin or test changes)
Fixes #34671 and #34720 .
Built from https://develop.svn.wordpress.org/trunk@35658
git-svn-id: http://core.svn.wordpress.org/trunk@35622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 23:19:01 +00:00
Dominik Schilling
31ca684bb4
Buttons: Don't transform disabled buttons by 1px on :active
.
...
Fixes #34717 .
Built from https://develop.svn.wordpress.org/trunk@35657
git-svn-id: http://core.svn.wordpress.org/trunk@35621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 23:18:29 +00:00
Ryan McCue
aa71d8b7ff
oEmbed: Drop the trailing slash from the namespace.
...
Props swissspidy.
Fixes #34709 .
Built from https://develop.svn.wordpress.org/trunk@35656
git-svn-id: http://core.svn.wordpress.org/trunk@35620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 11:27:29 +00:00
Gary Pendergast
ffc4d6965c
WPDB: Fall back to the connection charset when sanity checking strings.
...
If `DB_CHARSET` isn't defined (or is empty), `wpdb::$charset` will be empty, too. `wpdb::strip_invalid_text()` assumes that it isn't empty, however, so we need to fall back to the connection character set when we're running our sanity checks.
Fixes #34708 .
Built from https://develop.svn.wordpress.org/trunk@35655
git-svn-id: http://core.svn.wordpress.org/trunk@35619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 06:13:26 +00:00
Ryan McCue
1a5f0d3857
REST API: Update tests for [35653]
...
See #34551 .
Built from https://develop.svn.wordpress.org/trunk@35654
git-svn-id: http://core.svn.wordpress.org/trunk@35618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 05:27:25 +00:00
Ryan McCue
81ffd2492c
REST API: Optimise for singular error instances.
...
Previously, the API returned a list of errors, as WP_Error can hold multiple
error codes internally. This isn't a particularly common use case, and it
makes handling errors on the client side more complex than it needs to be.
Fixes #34551 .
Built from https://develop.svn.wordpress.org/trunk@35653
git-svn-id: http://core.svn.wordpress.org/trunk@35617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 04:12:26 +00:00
Ryan McCue
9524ebb38e
REST API: Include enum and description in help data.
...
Props lcherpit.
Fixes #34543 .
Built from https://develop.svn.wordpress.org/trunk@35652
git-svn-id: http://core.svn.wordpress.org/trunk@35616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 02:49:28 +00:00
Ryan McCue
b03e036e94
REST API: Require namespace when registering routes.
...
Props danielbachhuber.
Fixes #34416 .
Built from https://develop.svn.wordpress.org/trunk@35651
git-svn-id: http://core.svn.wordpress.org/trunk@35615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 02:39:30 +00:00
Ryan McCue
b0ee5efef2
REST API: Change link relations to api.w.org
...
Fixes #34303 .
Built from https://develop.svn.wordpress.org/trunk@35650
git-svn-id: http://core.svn.wordpress.org/trunk@35614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 02:24:27 +00:00
Dominik Schilling
9df7c4edea
Passwords: Only disable hidden password fields if they are really hidden.
...
Makes the password field on install and for password resets editable again. Both fields were accidentally set to disabled in [35603].
Props adamsilverstein, flixos90.
Fixes #33699 .
Built from https://develop.svn.wordpress.org/trunk@35649
git-svn-id: http://core.svn.wordpress.org/trunk@35613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 20:49:26 +00:00
Dominik Schilling
c29fe96196
Thickbox: Change only the background-image
property for HiDPI screens.
...
`background` resets `background-size` and makes the spinner fuzzy. Introduced in [35418].
See #33311 .
Built from https://develop.svn.wordpress.org/trunk@35648
git-svn-id: http://core.svn.wordpress.org/trunk@35612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 20:33:25 +00:00
Dominik Schilling
a7848ea08b
Themes: Hide the favorites form when performing a search.
...
The search is global and ignores the user setting. Same for filters.
See #34206 .
Built from https://develop.svn.wordpress.org/trunk@35647
git-svn-id: http://core.svn.wordpress.org/trunk@35611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 19:50:26 +00:00
Dominik Schilling
99f4fc4404
Themes: Check if the browse view is set in wp_ajax_query_themes()
to avoid a PHP notice when searching for new themes.
...
Introduced in [35527].
See #34206 .
Built from https://develop.svn.wordpress.org/trunk@35646
git-svn-id: http://core.svn.wordpress.org/trunk@35610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 19:47:54 +00:00
Boone Gorges
767518ffaa
Correct documentation for 'fields' param of WP_User_Query
.
...
[29843] introduced this documentation, and incorrectly stated that short
column names (eg 'login' instead of 'user_login') could be used.
Props birgire.
Fixes #34701 .
Built from https://develop.svn.wordpress.org/trunk@35645
git-svn-id: http://core.svn.wordpress.org/trunk@35609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 19:04:55 +00:00
Dion Hulse
42ff945649
Decrease the chances that wp_tempnam()
will conflict with an existing file by suffixing a random ID to the generated filename.
...
This also switches from using `touch()` to using `fopen( $file, 'x')` to ensure that we're the process creating the file.
Fixes #34562
Built from https://develop.svn.wordpress.org/trunk@35644
git-svn-id: http://core.svn.wordpress.org/trunk@35608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 05:33:25 +00:00
Weston Ruter
acba061485
Customize: Ensure multi-line label alignment for checkbox/radio inputs on both desktop and mobile.
...
Follow-up to [35608].
Props bordoni, delawski.
Fixes #34607 .
Built from https://develop.svn.wordpress.org/trunk@35643
git-svn-id: http://core.svn.wordpress.org/trunk@35607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 04:44:26 +00:00
Dion Hulse
be94558c46
Upgrader: Pass the $args['hook_extra']
context to the upgrader_source_selection
filter.
...
Props afragen
Fixes #34696
Built from https://develop.svn.wordpress.org/trunk@35642
git-svn-id: http://core.svn.wordpress.org/trunk@35606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 02:47:25 +00:00
John Blackbourn
43bc6dc931
Revert [35639] pending investigation into failures on PHP 5.2.
...
See #19455
Built from https://develop.svn.wordpress.org/trunk@35641
git-svn-id: http://core.svn.wordpress.org/trunk@35605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 00:54:28 +00:00
Gary Pendergast
3783e497c6
Embeds: Add the allow_insecure_embeds
filter.
...
This allows a site to disable non-SSL embeds.
Fixes #34588 .
Built from https://develop.svn.wordpress.org/trunk@35640
git-svn-id: http://core.svn.wordpress.org/trunk@35604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-16 00:23:26 +00:00
John Blackbourn
45658705f3
On servers running PHP <= 5.4 which have magic_quotes_sybase
enabled, the superglobals need to be magic-quoted before magic_quotes_sybase
is subsequently disabled to avoid incorrect un-slashing. This must surely effect a miniscule number of servers, but so be it.
...
Fixes #19455
Props summerblue, kurtpayne, lucatume
Built from https://develop.svn.wordpress.org/trunk@35639
git-svn-id: http://core.svn.wordpress.org/trunk@35603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-15 23:00:28 +00:00
Dominik Schilling
40b303069a
Schema: Increase length of user_pass
and user_activation_key
fields to 255.
...
Props grvrulz and Miglosh for testing.
Fixes #33904 .
Built from https://develop.svn.wordpress.org/trunk@35638
git-svn-id: http://core.svn.wordpress.org/trunk@35602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-15 14:19:28 +00:00
Gary Pendergast
9974c9b18d
Emoji: Ensure twemoji kicks in on certain DOM mutations.
...
Twemoji will replace the `img` with the emoji character, in the event that the image fails to load. We deliberately avoid trying to change that emoji character when it's changed back. We do need to replace emoji characters that are changed by something other than Twemoji, which this rectifies.
Fixes #34640 .
Built from https://develop.svn.wordpress.org/trunk@35637
git-svn-id: http://core.svn.wordpress.org/trunk@35601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-14 09:52:29 +00:00
Helen Hou-Sandí
ae9e173082
Buttons: Standardize on .button-link
for link-like buttons.
...
This serves as both a reset and some basic styling. The class name also aligns with parallel components in other popular projects.
props paulwilde for the initial patch.
fixes #34242 .
Built from https://develop.svn.wordpress.org/trunk@35636
git-svn-id: http://core.svn.wordpress.org/trunk@35600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-13 15:47:27 +00:00
Weston Ruter
268626d061
Customize: Exclude referer
URL from being used for Close link if it is customize.php
.
...
This fixes an edge case where the Close button could never link the user out of the Customizer, if the user initially accessed it without a `url` param and then clicked a link (provided by a plugin) that took them to another `customize.php` URL.
See #32637 .
Built from https://develop.svn.wordpress.org/trunk@35635
git-svn-id: http://core.svn.wordpress.org/trunk@35599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-13 05:25:28 +00:00
Gary Pendergast
329bec7ca1
Embeds: Add support for the www subdomain to Instagram embed URLs.
...
Props skithund.
Fixes #34651 .
Built from https://develop.svn.wordpress.org/trunk@35634
git-svn-id: http://core.svn.wordpress.org/trunk@35598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 23:04:27 +00:00
Aaron Jorbin
7552f6fb2a
Remove PHP 7 from allowed failures list
...
PHP 7 has released it's 7th (and potentially final) Release Candidate today. While it is still not recommended for use in production, it is at a point that a test failure with it is something that needs to be triaged immediately. Congratulations to the PHP internals team on the upcoming final release of PHP 7.
Fixes #33410
Built from https://develop.svn.wordpress.org/trunk@35633
git-svn-id: http://core.svn.wordpress.org/trunk@35597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 21:45:29 +00:00
Sergey Biryukov
6209004bf7
Remove <code>
tags from translatable string in wp-includes/load.php
.
...
Add translator comment.
Props ramiy.
Fixes #34621 .
Built from https://develop.svn.wordpress.org/trunk@35632
git-svn-id: http://core.svn.wordpress.org/trunk@35596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 18:21:24 +00:00
Sergey Biryukov
541ab45e8f
Fix failing multisite test after [35629].
...
See #27317 .
Built from https://develop.svn.wordpress.org/trunk@35631
git-svn-id: http://core.svn.wordpress.org/trunk@35595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 17:12:25 +00:00
Sergey Biryukov
95c55ca251
Cast 'illegal_user_logins'
filter result to array.
...
See #27317 .
Built from https://develop.svn.wordpress.org/trunk@35630
git-svn-id: http://core.svn.wordpress.org/trunk@35594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 16:34:27 +00:00
Sergey Biryukov
b08ae1d60b
Users: After [35189], make 'illegal_user_logins'
check case-insensitive.
...
Props juliobox.
Fixes #27317 .
Built from https://develop.svn.wordpress.org/trunk@35629
git-svn-id: http://core.svn.wordpress.org/trunk@35593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 16:30:28 +00:00
Gary Pendergast
5e878b4e72
Build: Prevent non-breaking spaces from accidentally being inserted into JavaScript files.
...
See #34658 .
Built from https://develop.svn.wordpress.org/trunk@35628
git-svn-id: http://core.svn.wordpress.org/trunk@35592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 12:05:26 +00:00
Gary Pendergast
6381e168b7
Pinking Shears: Remove some errant non-breaking spaces from a few JavaScript files.
...
Props francoisb.
Fixes #34658 .
Built from https://develop.svn.wordpress.org/trunk@35627
git-svn-id: http://core.svn.wordpress.org/trunk@35591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 12:04:27 +00:00
Scott Taylor
23bc08f370
WordPress 4.4 Beta 4 version bump
...
Built from https://develop.svn.wordpress.org/trunk@35626
git-svn-id: http://core.svn.wordpress.org/trunk@35590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 00:03:25 +00:00
Scott Taylor
6cb728d295
WordPress 4.4 Beta 4
...
Built from https://develop.svn.wordpress.org/trunk@35625
git-svn-id: http://core.svn.wordpress.org/trunk@35589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:53:25 +00:00
Konstantin Obenland
e1901c38c1
Template: Un-deprecate wp_title()
.
...
Before it can be deprecated we should identify alternative usages and define
a path forward for them.
See [35294], #31078 .
Built from https://develop.svn.wordpress.org/trunk@35624
git-svn-id: http://core.svn.wordpress.org/trunk@35588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:50:25 +00:00
Scott Taylor
35d501c5de
Revert [35621], breaks XML-RPC unit tests.
...
See #30775 .
Built from https://develop.svn.wordpress.org/trunk@35623
git-svn-id: http://core.svn.wordpress.org/trunk@35587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:34:27 +00:00
Scott Taylor
128a9c3acd
List Tables: after [34271], account for searches when calculating pagination.
...
Fixes #29870 .
Built from https://develop.svn.wordpress.org/trunk@35622
git-svn-id: http://core.svn.wordpress.org/trunk@35586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 23:14:26 +00:00
Scott Taylor
415ab45b9f
Posts: allow empty posts to be deleted - $maybe_empty
should not be set to true
for updates.
...
Props DrewAPicture.
Fixes #30775 .
Built from https://develop.svn.wordpress.org/trunk@35621
git-svn-id: http://core.svn.wordpress.org/trunk@35585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:49:50 +00:00
Sergey Biryukov
c8e0cd5c65
I18N: In Translations::translate_entry()
, account for multi-line strings in files with Windows line endings.
...
Fixes #22172 .
Built from https://develop.svn.wordpress.org/trunk@35620
git-svn-id: http://core.svn.wordpress.org/trunk@35584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:49:25 +00:00
Dominik Schilling
1f15d30396
Upgrade: Revert [34543] because of incomplete and incorrect functionality.
...
See #33932 .
Fixes #34434 .
Built from https://develop.svn.wordpress.org/trunk@35619
git-svn-id: http://core.svn.wordpress.org/trunk@35583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:46:26 +00:00
Scott Taylor
9eb60905f2
Users: in wp_insert_user()
, when a password isn't provided and the user exists, ensure that the password isn't wiped out.
...
Adds unit test.
Props leewillis77.
Fixes #29880 .
Built from https://develop.svn.wordpress.org/trunk@35618
git-svn-id: http://core.svn.wordpress.org/trunk@35582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:31:26 +00:00
Scott Taylor
e6611c6b01
Mail: after [33124], add unit tests.
...
Props mdawaffe.
Fixes #28039 .
Built from https://develop.svn.wordpress.org/trunk@35617
git-svn-id: http://core.svn.wordpress.org/trunk@35581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 22:05:26 +00:00
Scott Taylor
b4daf516ec
Help/About: unify tab styling.
...
Props afercia.
Fixes #34214 .
Built from https://develop.svn.wordpress.org/trunk@35616
git-svn-id: http://core.svn.wordpress.org/trunk@35580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 21:54:26 +00:00
Dominik Schilling
27e4384e89
Comments: Dynamically update the document title text for all languages, not only English.
...
See [33821].
Fixes #33414 .
Built from https://develop.svn.wordpress.org/trunk@35615
git-svn-id: http://core.svn.wordpress.org/trunk@35579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 21:00:27 +00:00
Sergey Biryukov
db8c89cccb
Remove non-translatable HTML code from the first post content in populate_network()
and wp_install_defaults()
.
...
Add translator comment.
Props ramiy.
Fixes #34619 .
Built from https://develop.svn.wordpress.org/trunk@35614
git-svn-id: http://core.svn.wordpress.org/trunk@35578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 20:55:26 +00:00
Sergey Biryukov
d206e633c2
Users: Only show the profile picture if 'Show Avatars' option in Discussion Settings is enabled.
...
Props ocean90.
See #32286 .
Built from https://develop.svn.wordpress.org/trunk@35613
git-svn-id: http://core.svn.wordpress.org/trunk@35577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:41:25 +00:00
Dominik Schilling
5403b62a6a
REST API: Use correct @access
tag for WP_REST_Request->get_parameter_order()
.
...
Props Frozzare.
Fixes #34624 .
Built from https://develop.svn.wordpress.org/trunk@35612
git-svn-id: http://core.svn.wordpress.org/trunk@35576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:39:25 +00:00
Dominik Schilling
0251086dec
About: Don't use _n_noop()
for singular/plural strings which provide no placeholder for a number.
...
This allows for using proper plural forms in languages with more than two forms.
Props SergeyBiryukov.
Fixes #34307 .
See #28502 .
Built from https://develop.svn.wordpress.org/trunk@35611
git-svn-id: http://core.svn.wordpress.org/trunk@35575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:29:25 +00:00
Sergey Biryukov
694ff83cc6
Users: Add user's Gravatar to 'About the user' section on user profile page.
...
Add `user_profile_picture_description` filter for the description text displayed under the Gravatar.
Props carolinegeven, obrienlabs, SergeyBiryukov.
Fixes #32286 .
Built from https://develop.svn.wordpress.org/trunk@35610
git-svn-id: http://core.svn.wordpress.org/trunk@35574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 19:28:28 +00:00
Andrea Fercia
62e236b3c6
Accessibility: Improve form labels and descriptions for the Tags meta box in the Edit Post screen.
...
Fixes #34627 .
Built from https://develop.svn.wordpress.org/trunk@35609
git-svn-id: http://core.svn.wordpress.org/trunk@35573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 15:24:29 +00:00
Weston Ruter
025074bbda
Customize: Prevent multi-line checkbox control labels from wrapping under checkbox.
...
Props bordoni.
Fixes #34607 .
Built from https://develop.svn.wordpress.org/trunk@35608
git-svn-id: http://core.svn.wordpress.org/trunk@35572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 09:37:27 +00:00
Andrew Ozz
7e1c68ea78
TinyMCE:
...
- Fix the inline toolbar on images in iOS, move it out of the way so the default inline toolbar is not over it.
- Fix selecting images on touch in the editor (iOS Safari fails to select them most of the time).
Fixes #34557 .
Built from https://develop.svn.wordpress.org/trunk@35607
git-svn-id: http://core.svn.wordpress.org/trunk@35571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 03:27:25 +00:00
Gary Pendergast
d3f30288e9
Emoji: Use twemoji in browsers that don't support Unicode 8 emoji.
...
Some less advanced browsers are yet to add support for the important advances made in Unicode 8. Let's make ensure that their users can experience emoji in their full glory.
See #33592 .
Built from https://develop.svn.wordpress.org/trunk@35606
git-svn-id: http://core.svn.wordpress.org/trunk@35570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 02:25:25 +00:00
Andrea Fercia
5f93491286
Accessibility: improvements for the taxonomies Quick Edit form.
...
Changes the "Cancel" and "Update" controls in buttons for better semantics and
accessibility. On cancel and successful saving, moves focus back to the term title
to avoid a focus loss. Dispatches error and success messages to `wp.a11y.speak`
to give assistive technologies users an audible feedback.
Patch prepared at #wpcdit, first Italian WordPress Contributor Day.
Props garusky, chiara_09.
Fixes #34613 .
Built from https://develop.svn.wordpress.org/trunk@35605
git-svn-id: http://core.svn.wordpress.org/trunk@35569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 00:24:28 +00:00
Drew Jaynes
eba05b2c98
Permalinks: Use "Plain" instead of "None" for the ?p-###
, which is still a valid permalink structure, just not a "pretty" one.
...
Permalinks are enabled by default (where supported) since in 4.2. When that change was made, it rended the "Default" label (previous to [35599]) inaccurate.
Props Ankit-K-Gupta.
Fixes #34509 .
Built from https://develop.svn.wordpress.org/trunk@35604
git-svn-id: http://core.svn.wordpress.org/trunk@35568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 22:19:27 +00:00
Dominik Schilling
66dee42444
Passwords: Disable hidden input fields on profile/user edit page.
...
Prevents an issue where password helpers would autofill the hidden password fields and inadvertently causing password changes when editing other fields on the profile page.
Props adamsilverstein.
Fixes #33699 .
Built from https://develop.svn.wordpress.org/trunk@35603
git-svn-id: http://core.svn.wordpress.org/trunk@35567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 20:41:26 +00:00
Andrew Ozz
93fa052e49
TinyMCE: prevent resize handles in newer IE when inserting a wpView.
...
Fixes #29400 .
Built from https://develop.svn.wordpress.org/trunk@35602
git-svn-id: http://core.svn.wordpress.org/trunk@35566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 19:33:26 +00:00
Drew Jaynes
a90d108b82
Docs: Remove an empty line from the hook doc for the wp_calculate_image_srcset
filter, introduced in [35592].
...
Props kraftbj.
See #34612 .
Built from https://develop.svn.wordpress.org/trunk@35601
git-svn-id: http://core.svn.wordpress.org/trunk@35565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 17:15:29 +00:00
Dion Hulse
49e6e41fb4
Update random_compat to master.
...
Clarifies strings, Merges [35587] upstream.
See #34409 , #28633
Built from https://develop.svn.wordpress.org/trunk@35600
git-svn-id: http://core.svn.wordpress.org/trunk@35564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 12:00:30 +00:00
Drew Jaynes
c5a8c3aa86
Permalinks: Rename the "Default" permalink structure to "None" as permalinks have been enabled by default (where supported) since 4.2.
...
Updates help tabs and contextual text to match.
Props johnbillion, DrewAPicture.
Fixes #34509 .
Built from https://develop.svn.wordpress.org/trunk@35599
git-svn-id: http://core.svn.wordpress.org/trunk@35563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 06:58:25 +00:00
Drew Jaynes
626549448a
Docs: Move an inline comment that was preventing the hook docs for the user_has_cap
filter from being parsed.
...
Props ocean90.
Fixes #34639 .
Built from https://develop.svn.wordpress.org/trunk@35598
git-svn-id: http://core.svn.wordpress.org/trunk@35562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 06:45:25 +00:00
Andrew Ozz
8b3c5fb300
TinyMCE: always remove trailing <br>
added by WebKit browsers to the clipboard.
...
Fixes #34642 .
Built from https://develop.svn.wordpress.org/trunk@35597
git-svn-id: http://core.svn.wordpress.org/trunk@35561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 04:32:25 +00:00
Gary Pendergast
1f24f52673
Emoji: Add some new flags, and a handful from Unicode 8.0.
...
Including the following that should be used as often as possible:
U+1F1E6 U+1F1FA Flag for Australia
U+1F3CF Cricket Bat and Ball
U+1F32F Burrito
See #33592 .
Built from https://develop.svn.wordpress.org/trunk@35596
git-svn-id: http://core.svn.wordpress.org/trunk@35560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 03:35:25 +00:00
Andrew Ozz
f34c16674a
Responsive images: fix args order and streamline the srcset and sizes generation and better inline docs in get_header_image_tag()
.
...
See #21389 .
Built from https://develop.svn.wordpress.org/trunk@35595
git-svn-id: http://core.svn.wordpress.org/trunk@35559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 01:59:25 +00:00
Andrew Ozz
a86cac1676
Responsive images: add template helper functions to generate the tag for a (responsive) header image that includes srcset and sizes attributes.
...
Props Otto42, joemcgill, DH-Shredder, azaozz.
Fixes #21389 .
Built from https://develop.svn.wordpress.org/trunk@35594
git-svn-id: http://core.svn.wordpress.org/trunk@35558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 01:17:26 +00:00
Andrea Fercia
e6e4496822
Comments: in comment_form()
when replying to a comment ensure to set focus on the first focusable form element, regardless of what that form element is.
...
Props azaozz.
See #29974 .
Built from https://develop.svn.wordpress.org/trunk@35593
git-svn-id: http://core.svn.wordpress.org/trunk@35557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 00:43:26 +00:00
Drew Jaynes
c98b62c452
Docs: Fix some formatting in the hook doc for the wp_calculate_image_srcset
filter and clarify the summary.
...
See #34612 .
Built from https://develop.svn.wordpress.org/trunk@35592
git-svn-id: http://core.svn.wordpress.org/trunk@35556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 23:34:27 +00:00
Andrew Ozz
7d0aa3a54a
Responsive images: properly arrange the parameters for the wp_calculate_image_srcset
filter and add fix the inline documentation.
...
Props joemcgill.
Fixes #34612 .
Built from https://develop.svn.wordpress.org/trunk@35591
git-svn-id: http://core.svn.wordpress.org/trunk@35555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 23:30:26 +00:00
Konstantin Obenland
5eeeeb89ce
Menu: Continue to use post dashicon as default menu icon.
...
Prevents a bug where custom post types without a specified menu icon would
adopt the menu icon of the preceding post type. Introduced in [33723].
See #16865 .
Fixes #34637 .
Built from https://develop.svn.wordpress.org/trunk@35590
git-svn-id: http://core.svn.wordpress.org/trunk@35554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 22:00:26 +00:00
Andrew Ozz
42a955a89b
TinyMCE: update the keyboard shortcuts for the link dialog in the wplink
plugin. Fixes Ctrl + Alt + A on MacOS.
...
Fixes #34636 .
Built from https://develop.svn.wordpress.org/trunk@35589
git-svn-id: http://core.svn.wordpress.org/trunk@35553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 21:32:28 +00:00
Boone Gorges
02532ee7d5
Fix documentation typo introduced in [35585].
...
Props swissspidy, barryceelen.
See #34626 .
Built from https://develop.svn.wordpress.org/trunk@35588
git-svn-id: http://core.svn.wordpress.org/trunk@35552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 14:03:28 +00:00
Dion Hulse
f9c7ca8496
Random_Compat: Bump the OpenSSL requirement for windows servers to 5.4.1 while the upstream issue is resolved.
...
Before PHP 5.4.1 the OpenSSL extension used a OpenSSL provided function which is seemingly slow under some circumstances, PHP 5.4.1+ uses the windows crypto API.
Fixes #34409
Built from https://develop.svn.wordpress.org/trunk@35587
git-svn-id: http://core.svn.wordpress.org/trunk@35551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 04:50:25 +00:00
Dion Hulse
2103984c02
Fix a typo in a docblock
...
Built from https://develop.svn.wordpress.org/trunk@35586
git-svn-id: http://core.svn.wordpress.org/trunk@35550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:38:26 +00:00
Boone Gorges
545124ffb3
When deleting a term, delete its metadata as well.
...
Props barryceelen.
Fixes #34626 .
Built from https://develop.svn.wordpress.org/trunk@35585
git-svn-id: http://core.svn.wordpress.org/trunk@35549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:36:26 +00:00
Weston Ruter
f4659f7ee0
Customize: Fix focus and autofocus on nav_menu_item
controls.
...
Embed the `nav_menu_item` control not only when the contained `nav_menu` section expands, but also if the control was autofocused (via the `autofocus[control]` query param). Also applies change from [33596] to work-around a broken `:focusable` selector in jQuery UI.
See #33258 .
Fixes #34629 .
Built from https://develop.svn.wordpress.org/trunk@35584
git-svn-id: http://core.svn.wordpress.org/trunk@35548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 03:14:25 +00:00
Weston Ruter
1032bc6775
Customize: Fix broken unit test for WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()
.
...
Fixes issue in [35580] which caused unit tests to fail while run under multisite.
Fixes #32812 .
Built from https://develop.svn.wordpress.org/trunk@35583
git-svn-id: http://core.svn.wordpress.org/trunk@35547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 02:56:25 +00:00
Dion Hulse
09ada24c99
Upgrade: Force disable the rest-api plugin on upgrade to 4.4 unless it's beta5+. Previous versions of the plugin were not configured correctly to gradefully degrade during update which would cause fatal errors.
...
Props wonderboymusic.
Fixes #34415
Built from https://develop.svn.wordpress.org/trunk@35582
git-svn-id: http://core.svn.wordpress.org/trunk@35546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 01:22:28 +00:00
Weston Ruter
5411447dd3
Customize: Fix sub-nav menu items from appearing to bump to root level in preview upon saving.
...
This issue would appear when the parent nav menu item was also newly-inserted. The issue was only apparent in the prevew, as the actual data saved was correct. The `menu_item_parent` properties of the saved sub-nav menu items needed to get updated to refer to the newly-inserted parent `nav_menu_item` post IDs, as opposed to retaining the placeholder IDs.
Fixes #34628 .
Built from https://develop.svn.wordpress.org/trunk@35581
git-svn-id: http://core.svn.wordpress.org/trunk@35545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 01:19:26 +00:00
Weston Ruter
c470b872bd
Customize: Improve alignment of WP_Customize_Nav_Menu_Item_Setting::sanitize()
behavior with wp_update_nav_menu_item()
.
...
* Apply `title_save_pre`, `excerpt_save_pre`, and `content_save_pre` filters on a nav menu item's `title`, `attr_title`, and `description` properties respectively. This ensures that arbitrary markup can be supplied if the user has `unfiltered_html` cap, and for these fields to have markup stripped if not.
* Ensure a nav menu item's `post_status` is sanitized as `publish` or `draft` using the same conditions as `wp_update_nav_menu_item()`.
* Align `WP_Customize_Nav_Menu_Item_Setting::sanitize()` behavior for sanitizing `position` to be the same as `wp_update_nav_menu_item()`.
* Also apply `nav_menu_attr_title` and `nav_menu_description` filters in `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()` to ensure that previewing markup entered into menu item description will preview the same way as when the nav menu item is saved.
* Add unit tests.
Fixes #32812 .
Built from https://develop.svn.wordpress.org/trunk@35580
git-svn-id: http://core.svn.wordpress.org/trunk@35544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:48:26 +00:00
Dion Hulse
f47801d504
Media: Allow media_sideload_image()
to work when the upload directory is a PHP Stream. Using copy() instead of rename() allows the function to work across different stream sources.
...
Props mattheu.
Fixes #29257
Built from https://develop.svn.wordpress.org/trunk@35579
git-svn-id: http://core.svn.wordpress.org/trunk@35543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:44:27 +00:00
Gary Pendergast
af06409b97
Embeds: Add a filter for the site title HTML.
...
Props swissspidy.
Fixes #34534 .
Built from https://develop.svn.wordpress.org/trunk@35578
git-svn-id: http://core.svn.wordpress.org/trunk@35542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:11:26 +00:00
Gary Pendergast
a2349a2377
Embeds: Fix support for embedding in non-WordPress sites.
...
This moves the last of the iframe message code from PHP to JavaScript, so it can be included in any site, without needing to rely on any of WordPress' internal behaviour.
Props swissspidy.
Fixes #34451 .
Built from https://develop.svn.wordpress.org/trunk@35577
git-svn-id: http://core.svn.wordpress.org/trunk@35541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 00:08:27 +00:00
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
Jeremy Felt
23c1050fb9
MS: Allow "Network Admin Email" to be a non-user during network setup.
...
The network admin email setting for a network is often used as a catch-all or notification email separate from the actual user ID set as the owner of the new network. If a non-user email address is set during network installation, we can defer to the current user as the actual network admin and apply the entered email as the address to which general notifications are sent and emails are sent from.
In the future, we'll want to update the messaging around "Network Admin Email" to reflect its reality. See #34293 .
Props jjeaton.
Fixes #34065 .
Built from https://develop.svn.wordpress.org/trunk@35575
git-svn-id: http://core.svn.wordpress.org/trunk@35539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 03:16:26 +00:00
Andrew Ozz
9fb7dcc30d
TinyMCE: update to 4.2.7. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=888
...
Fixes #34620 .
Built from https://develop.svn.wordpress.org/trunk@35574
git-svn-id: http://core.svn.wordpress.org/trunk@35538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:32:26 +00:00
Jeremy Felt
c0a3348487
Multisite: Clarify documentation for WP_Network::get_by_path()
.
...
See #31985 .
Built from https://develop.svn.wordpress.org/trunk@35573
git-svn-id: http://core.svn.wordpress.org/trunk@35537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:25:25 +00:00
Jeremy Felt
f3c2c7350c
Site Icon: Wrap site icon retrieval with switch_to_blog()
as needed.
...
When the site icon for another site is requested, retrieving its ID via `get_blog_option()` is not enough. `switch_to_blog()` is used to set proper context when required.
Adds multsite tests for `has_site_icon()`.
Props imath.
Fixes #34312 .
Built from https://develop.svn.wordpress.org/trunk@35572
git-svn-id: http://core.svn.wordpress.org/trunk@35536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:04:27 +00:00
Jeremy Felt
d1c09d96bf
Site Icon: Use new wp_get_attachment_image_url()
to retrieve URL.
...
`wp_get_attachment_image_url()` is a nice replacement for `wp_get_attachment_image_src()` here after its introduction in 4.4.
Props imath.
See #34312 .
Built from https://develop.svn.wordpress.org/trunk@35571
git-svn-id: http://core.svn.wordpress.org/trunk@35535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 01:59:26 +00:00
Sergey Biryukov
a4dc43106c
Remove <code>
tags from translatable string in wp-admin/network/settings.php
.
...
Add translator comment.
Props ramiy.
Fixes #34618 .
Built from https://develop.svn.wordpress.org/trunk@35570
git-svn-id: http://core.svn.wordpress.org/trunk@35534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 01:34:26 +00:00
Andrew Ozz
1b44ae6663
Responsive images: make the new functions and filters signatures more consistent.
...
Props joemcgill.
Fixes #34612 .
Built from https://develop.svn.wordpress.org/trunk@35569
git-svn-id: http://core.svn.wordpress.org/trunk@35533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 21:36:27 +00:00
Scott Taylor
175064637f
Administration: when hiding the login modal and unbind the auth check, also unbind the heartbeat auth check.
...
Props nofearinc.
Fixes #28962 .
Built from https://develop.svn.wordpress.org/trunk@35568
git-svn-id: http://core.svn.wordpress.org/trunk@35532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:22:25 +00:00
Scott Taylor
e649fabb6a
Accessibility: add missing alt
attributes to a gaggle of <img>
s.
...
Props afercia.
Fixes #34583 .
Built from https://develop.svn.wordpress.org/trunk@35567
git-svn-id: http://core.svn.wordpress.org/trunk@35531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:12:27 +00:00
Scott Taylor
b17272831c
List Tables: fix row links CSS for RTL.
...
Props afercia.
Fixes #34150 .
Built from https://develop.svn.wordpress.org/trunk@35566
git-svn-id: http://core.svn.wordpress.org/trunk@35530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:05:25 +00:00
Scott Taylor
7a24b60c2a
List Tables: to ensure that get_primary_column_name()
can match columns that were added via the "manage_{$screen->id}_columns"
filer, call get_column_headers()
instead of $this->get_columns()
.
...
List Table classes and `WP_Screen` are already tangled together. The parent list table constructor adds a filter that is called by a function that references the instance globally, even though we have access to it via composition directly in the class that is adding the filter. So the fact that functions here have to be called that reference a screen instance we already have access to is what one might call... less than elegant.
#OOP
Props SergeyBiryukov.
Fixes #34508 .
Built from https://develop.svn.wordpress.org/trunk@35565
git-svn-id: http://core.svn.wordpress.org/trunk@35529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 15:27:25 +00:00
Dominik Schilling
a3d58b3fbe
Build Tools: Update the preserveComments
option for uglify:jqueryui
.
...
Uglify2 doesn't support the value "some" anymore. Replace it with the `/^!/` regex which produces the same output as before.
See https://build.trac.wordpress.org/changeset/35502 and https://build.trac.wordpress.org/changeset/35528 .
Fixes #34177 .
Built from https://develop.svn.wordpress.org/trunk@35564
git-svn-id: http://core.svn.wordpress.org/trunk@35528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 12:37:26 +00:00
Dominik Schilling
adc233f617
Build Tools: Update autoprefixer
to 0.6.1.
...
Release Post: https://github.com/postcss/autoprefixer/releases/tag/6.1.0
Includes changes to CSS files after `grunt precommit` because of the new transition support and a new parser for gradients (see [34637]).
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35563
git-svn-id: http://core.svn.wordpress.org/trunk@35527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 11:57:31 +00:00
Dominik Schilling
4c5347fe1a
Build Tools: Update grunt-postcss
to 0.7.1.
...
Change: https://github.com/nDmitry/grunt-postcss/commit/6e18c7d5
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35562
git-svn-id: http://core.svn.wordpress.org/trunk@35526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 11:43:34 +00:00
Andrew Ozz
72a1124c45
Responsive images: omit full size images from srcset attributes when the original file is an intermediate sized GIF so we don't accidentally add animation to an otherwise flat image. Update the tests to cover this case.
...
Props joemcgill, H-Shredder, SergeyBiryukov.
Fixes #34528 .
Built from https://develop.svn.wordpress.org/trunk@35561
git-svn-id: http://core.svn.wordpress.org/trunk@35525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 02:10:25 +00:00
Andrew Ozz
be44f0a3f7
Responsive images: add test for invalid size name. Remove invalid size from other tests.
...
Props jaspermdegroot.
See #33641 .
Built from https://develop.svn.wordpress.org/trunk@35560
git-svn-id: http://core.svn.wordpress.org/trunk@35524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 01:33:27 +00:00
Sergey Biryukov
788ea5ba5a
Reset Password: Improve wording for a string used in password reset email.
...
Props obrienlabs.
Fixes #34605 .
Built from https://develop.svn.wordpress.org/trunk@35559
git-svn-id: http://core.svn.wordpress.org/trunk@35523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 22:36:25 +00:00
Drew Jaynes
efdc838019
Docs: Add a missing version to the file header for wp-admin/users.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35558
git-svn-id: http://core.svn.wordpress.org/trunk@35522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 21:54:33 +00:00
Sergey Biryukov
9dd3f6fb16
Remove <code>
tags from translatable strings in wp-admin/setup-config.php
.
...
Add translator comments.
Props ramiy.
Fixes #34579 .
Built from https://develop.svn.wordpress.org/trunk@35557
git-svn-id: http://core.svn.wordpress.org/trunk@35521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 17:22:26 +00:00
Sergey Biryukov
2583c1e4ec
Replace 7 * DAY_IN_SECONDS
with WEEK_IN_SECONDS
in get_weekstartend()
.
...
Props MikeHansenMe.
Fixes #34603 .
Built from https://develop.svn.wordpress.org/trunk@35556
git-svn-id: http://core.svn.wordpress.org/trunk@35520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 16:37:27 +00:00
Sergey Biryukov
5f16d19be7
Use the MONTH_IN_SECONDS
constant added in [33698] for the month representation in human_time_diff()
logic.
...
Props tyxla.
Fixes #34602 .
Built from https://develop.svn.wordpress.org/trunk@35555
git-svn-id: http://core.svn.wordpress.org/trunk@35519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 16:34:26 +00:00
Sergey Biryukov
7ad65267b6
Media: Avoid a PHP warning in wp_generate_attachment_metadata()
if $metadata
is not an array.
...
This was previously fixed in [25968], but accidentally reverted in [32545].
Props skithund.
Fixes #34599 .
Built from https://develop.svn.wordpress.org/trunk@35554
git-svn-id: http://core.svn.wordpress.org/trunk@35518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 09:25:26 +00:00
Weston Ruter
b9d9c6d3c9
Customize: Fix typo in WP_Customize_Manager::_cmp_priority()
which caused unstable sorting for same-priority constructs in PHP.
...
The issue, however, does not manifest in the UI because the UI is now built via JS and the `wp.customize.utils.prioritySort()` algorithm did not have the same typo.
Props bordoni, westonruter.
Fixes #34594 .
Built from https://develop.svn.wordpress.org/trunk@35553
git-svn-id: http://core.svn.wordpress.org/trunk@35517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 06:58:25 +00:00
Sergey Biryukov
cbe0cad509
Remove <code>
tags from translatable strings in wp-admin/includes/network.php
.
...
Add translator comments.
Props ramiy.
Fixes #34598 .
Built from https://develop.svn.wordpress.org/trunk@35552
git-svn-id: http://core.svn.wordpress.org/trunk@35516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:59:25 +00:00
Sergey Biryukov
d6e25c0aae
Remove <code>
tags from translatable strings in wp-admin/includes/class-wp-upgrader.php
.
...
Add translator comments.
Props ramiy.
Fixes #34580 .
Built from https://develop.svn.wordpress.org/trunk@35551
git-svn-id: http://core.svn.wordpress.org/trunk@35515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:41:25 +00:00
Sergey Biryukov
8c2ed5330a
Remove <code>
tag from translatable string in wp-admin/options-media.php
.
...
Add translator comment.
Props ramiy.
Fixes #34581 .
Built from https://develop.svn.wordpress.org/trunk@35550
git-svn-id: http://core.svn.wordpress.org/trunk@35514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:28:25 +00:00
Sergey Biryukov
387d3bca32
Add translator comments for strings in wp-admin/edit-comments.php
.
...
Props ramiy for initial patch.
Fixes #34586 .
Built from https://develop.svn.wordpress.org/trunk@35549
git-svn-id: http://core.svn.wordpress.org/trunk@35513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:23:25 +00:00
Sergey Biryukov
77b0fad640
Remove <code>
tags from translatable strings in wp-includes/class-wp-user.php
.
...
Add translator comments.
Props ramiy.
Fixes #34576 .
Built from https://develop.svn.wordpress.org/trunk@35548
git-svn-id: http://core.svn.wordpress.org/trunk@35512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-06 00:06:25 +00:00
Sergey Biryukov
a0fa0d3328
Remove <code>
tags from translatable strings in wp-load.php
.
...
Add translator comments.
Props ramiy.
Fixes #34574 .
Built from https://develop.svn.wordpress.org/trunk@35547
git-svn-id: http://core.svn.wordpress.org/trunk@35511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:59:26 +00:00
Sergey Biryukov
b5b3b0b913
Remove <code>
tag from translatable string in trackback_url()
.
...
Add translator commment.
Props ramiy.
Fixes #34573 .
Built from https://develop.svn.wordpress.org/trunk@35546
git-svn-id: http://core.svn.wordpress.org/trunk@35510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:39:25 +00:00
Sergey Biryukov
09b9fae4db
Remove <code>
tag from translatable string in the_author()
.
...
Add translator commment.
Props ramiy.
See #34573 .
Built from https://develop.svn.wordpress.org/trunk@35545
git-svn-id: http://core.svn.wordpress.org/trunk@35509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 23:38:27 +00:00
Sergey Biryukov
123765d9c8
I18N: Add a translator comment for the string introduced in [24758] and made translatable in [29840].
...
Props swissspidy.
See #34249 .
Built from https://develop.svn.wordpress.org/trunk@35544
git-svn-id: http://core.svn.wordpress.org/trunk@35508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 21:18:25 +00:00
Sergey Biryukov
a7e305b06f
Use correct placeholders in translator comments added in [35542].
...
See #34249 .
Built from https://develop.svn.wordpress.org/trunk@35543
git-svn-id: http://core.svn.wordpress.org/trunk@35507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 21:05:25 +00:00
Drew Jaynes
48f4b7cfc3
I18N: Add translator comments to three _doing_it_wrong()
messages added for 4.3 and 4.4.
...
Also adds a full-stop to an invalid taxonomy message introduced in [34745] and later modified in [35428] for `wp_insert_post()`.
Props pavelevap.
Fixes #34249 .
Built from https://develop.svn.wordpress.org/trunk@35542
git-svn-id: http://core.svn.wordpress.org/trunk@35506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 20:56:32 +00:00
Aaron Jorbin
627844ca34
Bump grunt-contrib-cssmin to 0.14.0
...
This updates the underlying version of cssmin
Fixes #34177
Built from https://develop.svn.wordpress.org/trunk@35541
git-svn-id: http://core.svn.wordpress.org/trunk@35505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:58:28 +00:00
Aaron Jorbin
63026a897c
Bump grunt-contrib-copy to 0.8.2
...
updates an underlying dependency and fixes an issue with multiple copies
see #34177
Built from https://develop.svn.wordpress.org/trunk@35540
git-svn-id: http://core.svn.wordpress.org/trunk@35504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:56:30 +00:00
Aaron Jorbin
25d8f212b7
Bump grunt-sass to 1.1.0
...
This bumps the underlying version of node-sass to 3.4.0 and libsass to 3.3.0. It causes no difference in the current sass output.
Props netweb.
See #34177 .
Built from https://develop.svn.wordpress.org/trunk@35539
git-svn-id: http://core.svn.wordpress.org/trunk@35503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:53:43 +00:00
Aaron Jorbin
d60ca2f758
Bump grunt-contrib-uglify to 0.10.0
...
This includes an update to the underlying version of uglify which causes all of the JS to be modified.
See #34177
Built from https://develop.svn.wordpress.org/trunk@35538
git-svn-id: http://core.svn.wordpress.org/trunk@35502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 17:47:30 +00:00
Boone Gorges
91a5e4c502
Make get_term()
behave more consistently in the context of shared terms.
...
When `WP_Term` was introduced in [34997], the `$taxonomy` parameter for
`get_term()` was made optional. This meant that, when the optional param was
omitted, `get_term()` had no way of determining which term was intended when
the term_id was shared between multiple taxonomies. As a (somewhat sneaky) way
of fixing things, `get_term()` split any shared terms it found. But this could
cause problems with developer expectations: it's not clear why requesting a
term should result in a database update, much less a potential change in the
ID of a term.
In place of this technique, this changeset introduces a number of changes that
make the handling of shared terms a bit less insane:
* When a taxonomy is provided to `get_term()`, and a cached term is found matching the term_id, make sure the taxonomy also matches before returning it.
* When a taxonomy is not provided, ensure that the term is not shared before adding it to the cache.
* When a term is shared between taxonomies and no taxonomy is provided, return a `WP_Error` rather than splitting the term.
* When a term is shared between taxonomies, only one of which is valid, return the term from that taxonomy.
Props boonebgorges, dlh.
Fixes #34533 .
Built from https://develop.svn.wordpress.org/trunk@35537
git-svn-id: http://core.svn.wordpress.org/trunk@35501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 16:45:25 +00:00
Sergey Biryukov
3caaa702bf
Comments: Use _n()
in get_comments_number_text()
when setting the default string for multiple comments.
...
Fixes #34593 .
Built from https://develop.svn.wordpress.org/trunk@35536
git-svn-id: http://core.svn.wordpress.org/trunk@35500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 15:36:28 +00:00
Weston Ruter
1a55cbe59d
Customize: Hide "Change" button in themes section if there are fewer than two available themes.
...
Props danielbachhuber, westonruter.
Fixes #34549 .
Built from https://develop.svn.wordpress.org/trunk@35535
git-svn-id: http://core.svn.wordpress.org/trunk@35499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 01:26:25 +00:00
Weston Ruter
e0ac4e4d05
Customize: Correct phpdoc @return
type for WP_Customize_Manager::add_dynamic_settings()
.
...
Fixes regression in [32032], where `WP_Customize_Setting[]` should have been changed to `array` instead of `WP_Customize_Setting`.
See #31888 .
Built from https://develop.svn.wordpress.org/trunk@35534
git-svn-id: http://core.svn.wordpress.org/trunk@35498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-05 00:43:24 +00:00
Gary Pendergast
84c8243514
Themes: Remove an errant comma from theme.js
.
...
Added in [35527].
See #34206 .
Built from https://develop.svn.wordpress.org/trunk@35533
git-svn-id: http://core.svn.wordpress.org/trunk@35497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:49:26 +00:00
Gary Pendergast
27df997eed
Media Library: After [35499], increase the specificity of our selectors so that they don't cause problems for the wp-admin
Media Library page.
...
Props aaronrutley.
Fixes #32005 .
Built from https://develop.svn.wordpress.org/trunk@35532
git-svn-id: http://core.svn.wordpress.org/trunk@35496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:43:26 +00:00
Dominik Schilling
2c54b0358e
After [35518] define $_POST['post_view']
in test_dont_process_terms_if_taxonomy_does_not_allow_show_on_quick_edit()
.
...
See #34577 .
Built from https://develop.svn.wordpress.org/trunk@35531
git-svn-id: http://core.svn.wordpress.org/trunk@35495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 23:06:24 +00:00
Scott Taylor
07bb2da0c9
Bump 4.4-beta3 (again, again)
...
Built from https://develop.svn.wordpress.org/trunk@35530
git-svn-id: http://core.svn.wordpress.org/trunk@35494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 22:03:24 +00:00
Scott Taylor
14aca69402
4.4-beta3 (again)
...
Built from https://develop.svn.wordpress.org/trunk@35529
git-svn-id: http://core.svn.wordpress.org/trunk@35493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 22:00:26 +00:00
Scott Taylor
2487cfb005
Bump 4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35528
git-svn-id: http://core.svn.wordpress.org/trunk@35492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:56:25 +00:00
Sergey Biryukov
a41e5d0270
Themes: Add a Favorites tab to the Add Themes screen.
...
You can now browse and install your wordpress.org theme favorites from the theme installer, just like with plugins.
Props swissspidy.
Fixes #34206 .
Built from https://develop.svn.wordpress.org/trunk@35527
git-svn-id: http://core.svn.wordpress.org/trunk@35491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:49:26 +00:00
Scott Taylor
d8b65d5582
Bump 4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35526
git-svn-id: http://core.svn.wordpress.org/trunk@35490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:47:26 +00:00
Scott Taylor
149f39d203
4.4-beta3
...
Built from https://develop.svn.wordpress.org/trunk@35525
git-svn-id: http://core.svn.wordpress.org/trunk@35489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:46:28 +00:00
Andrew Ozz
09c16cb4ac
Responsive images: do not generate srcset
for GIFs that are inserted at full size. Prevents breaking animated GIFs.
...
Props joemcgill.
Fixes #34528 .
Built from https://develop.svn.wordpress.org/trunk@35524
git-svn-id: http://core.svn.wordpress.org/trunk@35488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:44:25 +00:00
Andrea Fercia
3c0ed4295e
List tables: Improve the displaying of pagination links on small screens.
...
Pagination links can break in two lines on small screens. Implements a partial fix, new ideas and better solutions should be explored though.
See #33962 .
Built from https://develop.svn.wordpress.org/trunk@35523
git-svn-id: http://core.svn.wordpress.org/trunk@35487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:43:25 +00:00
Dominik Schilling
600b303668
Revert [35372] because of possible encoding issues, needs more investigation.
...
See #10373 .
Built from https://develop.svn.wordpress.org/trunk@35522
git-svn-id: http://core.svn.wordpress.org/trunk@35486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:39:26 +00:00
Aaron Jorbin
37ad21d444
Bump grunt-contrib-compress
...
Upsteam changelog: change to verbose output dependency updates Archiver 0.16
See #34177
Built from https://develop.svn.wordpress.org/trunk@35521
git-svn-id: http://core.svn.wordpress.org/trunk@35485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:36:30 +00:00
Aaron Jorbin
57a4f0841e
Bump grunt-postcss
...
See #34177
Built from https://develop.svn.wordpress.org/trunk@35520
git-svn-id: http://core.svn.wordpress.org/trunk@35484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:32:53 +00:00
Sergey Biryukov
c6c366fec0
Adjust some of the strings added in [35508].
...
Fixes #34519 .
Built from https://develop.svn.wordpress.org/trunk@35519
git-svn-id: http://core.svn.wordpress.org/trunk@35483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:32:26 +00:00
Dominik Schilling
122f38f748
List Tables: Define the global $mode
variable for Quick Edit savings.
...
Also remove two unused global imports for `$mode`.
Fixes #34577 .
Built from https://develop.svn.wordpress.org/trunk@35518
git-svn-id: http://core.svn.wordpress.org/trunk@35482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:29:25 +00:00
Sergey Biryukov
5d87e7d2b8
Introduce wp_maybe_decline_date()
for languages where certain date formats need to be declined, and hook it to the date_i18n
filter.
...
If the locale specifies that month names require a genitive case in certain formats like `'j F Y'` or `'j. F'`, the month name will be replaced with a correct form.
Fixes #11226 .
Built from https://develop.svn.wordpress.org/trunk@35517
git-svn-id: http://core.svn.wordpress.org/trunk@35481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:28:26 +00:00
Andrea Fercia
c443d45708
Admin: Ensure notices with the below-h2
class are not repositioned after [35238].
...
Keeps the `.below-h2` class for backwards compatibility with plugins that are (incorrectly) using it. Plugins should use `.inline` instead.
Props stephenharris.
Fixes #34570 . See #34294 .
Built from https://develop.svn.wordpress.org/trunk@35516
git-svn-id: http://core.svn.wordpress.org/trunk@35480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:27:26 +00:00
Boone Gorges
973223ad5f
Don't allow term meta to be added to shared taxonomy terms.
...
`add_term_meta()` and `update_term_meta()` identify terms by `$term_id`. In
cases where a term is shared between taxonomies, `$term_id` is insufficient to
distinguish where the metadata belongs.
When attempting to add/update termmeta on a shared term, a `WP_Error` object
is returned. This gives developers enough information to decide whether they'd
like to force the term to be split and retry the save, or show an error in the
UI, or whatever.
Props boonebgorges, mboynes, DH-Shredder, jorbin, aaroncampbell.
Fixes #34544 .
Built from https://develop.svn.wordpress.org/trunk@35515
git-svn-id: http://core.svn.wordpress.org/trunk@35479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:24:26 +00:00
Scott Taylor
16637eeee4
REST API: in WP_REST_Server::dispatch()
, move preg_match()
out of it's current loop, which doesn't affect the context passed to it.
...
Props TobiasBg.
Fixes #34488 .
Built from https://develop.svn.wordpress.org/trunk@35514
git-svn-id: http://core.svn.wordpress.org/trunk@35478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:23:25 +00:00
Aaron Jorbin
9e5726c233
Bump matchdep from 0.3.0 to 1.0.0
...
This drops support for node 0.8.0 so if you still using that, it's time to upgrade your node.
See #34177
Built from https://develop.svn.wordpress.org/trunk@35513
git-svn-id: http://core.svn.wordpress.org/trunk@35477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:21:36 +00:00
Boone Gorges
5c1ca9d943
WP_Comment_Query
: Fill comment objects from database when cache is unavailable.
...
This fixes a bug where widgets loaded in a preview or the Customizer are
rendered inside of a `wp_suspend_cache_addition()` block and thus could not
find comment objects in the cache.
Props rommelxcastro, stevehenty.
Fixes #34138 .
Built from https://develop.svn.wordpress.org/trunk@35512
git-svn-id: http://core.svn.wordpress.org/trunk@35476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 21:09:27 +00:00
Drew Jaynes
1ddb8b94af
Customizer: Adjust styles on panel titles to prevent descenders – such as with the letters g, j, p, q, or y – from getting cut off in some browsers.
...
Props umeshnevase.
Fixes #33575 .
Built from https://develop.svn.wordpress.org/trunk@35511
git-svn-id: http://core.svn.wordpress.org/trunk@35475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:53:26 +00:00
Drew Jaynes
3575214485
Pages: Introduce the get_page_uri
filter, which makes it possible to manipulate a given page's URI before it's returned from the like-named get_page_uri()
.
...
Props tanner-m for the initial patch.
Fixes #15963 .
Built from https://develop.svn.wordpress.org/trunk@35510
git-svn-id: http://core.svn.wordpress.org/trunk@35474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:29:25 +00:00
Scott Taylor
d763eb80b7
XMLRPC: ensure that empty strings are not passed as null
, which will then fail isset()
...
Props solarissmoke.
Fixes #16980 .
Built from https://develop.svn.wordpress.org/trunk@35509
git-svn-id: http://core.svn.wordpress.org/trunk@35473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:08:25 +00:00
Aaron Jorbin
b026ad4b75
Adjust heading structure for pages using wp-admin/css/install.css
...
The readme, installation, upgrade, and repair pages use a common css file. The heading structure for these pages was inconstant with h2s where there should be h1s, h1s where there is no relevant info and sometimes, no h1s at all.
Fixes #34519
Props rianrietveld
Built from https://develop.svn.wordpress.org/trunk@35508
git-svn-id: http://core.svn.wordpress.org/trunk@35472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 18:00:24 +00:00
Scott Taylor
9135920061
Roles: map add_users
cap to promote_users
and remove it.
...
"Never used, will be removed." - The Ghost of 3.5 Nacin
Props Craig Ralston, renoirb.
Fixes #16719 .
Built from https://develop.svn.wordpress.org/trunk@35507
git-svn-id: http://core.svn.wordpress.org/trunk@35471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 17:54:25 +00:00
Scott Taylor
5e9ed67b82
Feeds: <comments>
is optional in RSS2, so don't include it when comments aren't present or open. Same for <wfw:commentRss>
and <slash:comments>
...
Adds unit test.
Props swissspidy, realloc, hakre, sivel.
Fixes #9134 .
Built from https://develop.svn.wordpress.org/trunk@35506
git-svn-id: http://core.svn.wordpress.org/trunk@35470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 17:47:25 +00:00
Sergey Biryukov
7d09847957
Add missing @group
to Tests_Rel_No_Follow
.
...
See #9959 .
Built from https://develop.svn.wordpress.org/trunk@35505
git-svn-id: http://core.svn.wordpress.org/trunk@35469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 16:36:24 +00:00
Drew Jaynes
96616877ac
Taxonomy: Introduce the dynamic taxonomy_labels_{$taxonomy}
filter, which can be used to manipulate the labels for a given taxonomy.
...
The addition of this hook brings parity with the earlier-introduced `post_type_labels_{$post_type}` filter, which allows for similarly manipulating labels for a given post type.
Note: It isn't possible to unset or remove default labels via either of these hooks, only to overwrite. This is because WordPress relies on defaults being set for use in various UIs and admin experiences.
Props flixos90.
Fixes #34554 .
Built from https://develop.svn.wordpress.org/trunk@35504
git-svn-id: http://core.svn.wordpress.org/trunk@35468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 16:03:25 +00:00
Drew Jaynes
fd10901db5
Docs: Add a missing return description for _get_custom_object_labels()
, a private core helper function.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@35503
git-svn-id: http://core.svn.wordpress.org/trunk@35467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 15:47:27 +00:00
Sergey Biryukov
18852f07f2
Menus: After [35450], use correct IDs in $initial_meta_boxes
.
...
Props swissspidy.
Fixes #33925 .
Built from https://develop.svn.wordpress.org/trunk@35502
git-svn-id: http://core.svn.wordpress.org/trunk@35466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 10:56:26 +00:00
Weston Ruter
154e3d4593
Customize: Simplify condition for returning nav_menus_invalid_post_type
error.
...
Props swissspidy.
See #16075 .
Built from https://develop.svn.wordpress.org/trunk@35501
git-svn-id: http://core.svn.wordpress.org/trunk@35465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 07:29:25 +00:00
Weston Ruter
77e365efbf
Customize: Add support for post_type_archive
nav menu items.
...
Props celloexpressions, westonruter.
Fixes #16075 .
Built from https://develop.svn.wordpress.org/trunk@35500
git-svn-id: http://core.svn.wordpress.org/trunk@35464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 04:30:26 +00:00
Gary Pendergast
e0cab8383c
Media Library: Allow longer labels in the filter dropdowns.
...
Props aaronrutley, AlbertoCT.
Fixes #32005 .
Built from https://develop.svn.wordpress.org/trunk@35499
git-svn-id: http://core.svn.wordpress.org/trunk@35463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 00:41:24 +00:00
Andrew Ozz
9e436c7e0f
Responsive images:
...
- Fix `_wp_upload_dir_baseurl()` to cache by blog_id.
- Replace `path_join()` with `trailingslashit()`, it's much faster.
- Rename $image_url to $image_src for consistency (used at about 50 other places).
- Couple of tests fixes.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35498
git-svn-id: http://core.svn.wordpress.org/trunk@35462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-04 00:22:26 +00:00
Sergey Biryukov
a9d6fa9c7a
Formatting: wp_make_link_relative()
should return an empty string if no path is present in the link.
...
Props bcworkz, MikeHansenMe, chriscct7, SergeyBiryukov.
Fixes #26819 .
Built from https://develop.svn.wordpress.org/trunk@35497
git-svn-id: http://core.svn.wordpress.org/trunk@35461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 21:36:25 +00:00
Sergey Biryukov
40a58409d8
Accessibility: After [35130], adjust the h2.nav-tab-wrapper
selector to only override .wrap > h2:first-child
.
...
This improves compatibility with plugins that use navigation tabs as a first H2 heading on their screens.
Props afercia.
Fixes #33559 .
Built from https://develop.svn.wordpress.org/trunk@35496
git-svn-id: http://core.svn.wordpress.org/trunk@35460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 20:49:27 +00:00
Drew Jaynes
6b14ca9407
Docs: Fix two notations for the $_wp_real_parent_file
global, which is an array.
...
Props NExt-Season.
Fixes #34443 .
Built from https://develop.svn.wordpress.org/trunk@35495
git-svn-id: http://core.svn.wordpress.org/trunk@35459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 20:13:26 +00:00
Andrea Fercia
04c2cd1913
Accessibility: Improve buttons focus and links style in the install screens.
...
Fixes #34530 .
Built from https://develop.svn.wordpress.org/trunk@35494
git-svn-id: http://core.svn.wordpress.org/trunk@35458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 17:59:24 +00:00
Andrea Fercia
862cf19772
Media: Improve form fields labels association in the Edit Media screen.
...
Fixes #34548 .
Built from https://develop.svn.wordpress.org/trunk@35493
git-svn-id: http://core.svn.wordpress.org/trunk@35457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 16:02:25 +00:00
Andrea Fercia
d7485cf10b
WP oEmbed: Improve the Sharing dialog accessibility.
...
Improves ARIA attributes, focus handling, and constrains tabbing within the modal dialog.
Fixes #34484 .
Built from https://develop.svn.wordpress.org/trunk@35492
git-svn-id: http://core.svn.wordpress.org/trunk@35456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 15:49:27 +00:00
Andrew Ozz
ea3d7c7962
Responsive images:
...
- More fixes to inline docs.
- Replace the last `wp_get_attachment_metadata()` with `get_post_meta()`.
- For consistency only accept array or named size in `wp_get_attachment_image_sizes()`.
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35491
git-svn-id: http://core.svn.wordpress.org/trunk@35455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-03 00:19:28 +00:00
Drew Jaynes
64f5e0683a
Docs: Document use of the $comment_status
global in the DocBlock for WP_Comments_List_Table::handle_row_actions()
.
...
Props shimakyohsuke.
Fixes #34425 .
Built from https://develop.svn.wordpress.org/trunk@35490
git-svn-id: http://core.svn.wordpress.org/trunk@35454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 21:33:27 +00:00
Sergey Biryukov
f43a25bbe1
Docs: After [32654], remove duplicate @param
tag in WP_List_Table::set_pagination_args()
DocBlock.
...
Add `@since` tag.
Props bobbingwide.
See #32444 .
Built from https://develop.svn.wordpress.org/trunk@35489
git-svn-id: http://core.svn.wordpress.org/trunk@35453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 21:03:24 +00:00
Sergey Biryukov
a44ee99ca5
Build Tools: Add Microsoft Edge to Autoprefixer options.
...
Props christophherr.
Fixes #34550 .
Built from https://develop.svn.wordpress.org/trunk@35488
git-svn-id: http://core.svn.wordpress.org/trunk@35452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-02 20:44:27 +00:00
Gary Pendergast
c39ae3e5e2
Upgrades: Add support for FULLTEXT
indexes to dbDelta()
.
...
Props edirect24, mdawaffe, pento.
Fixes #14445 .
Built from https://develop.svn.wordpress.org/trunk@35487
git-svn-id: http://core.svn.wordpress.org/trunk@35451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 23:10:25 +00:00
Weston Ruter
2e98e461a2
Customize: Fix auto-expand (and focus) on newly added widgets.
...
Add widget controls with an initially-true `active` state so that calling `expand()` will not be short-circuited. Previously the `active` state would be set once the preview refreshes, but this happens too late for the `addWidget` call. Fixes regression introduced in [35231].
Fixes #34514 .
Built from https://develop.svn.wordpress.org/trunk@35486
git-svn-id: http://core.svn.wordpress.org/trunk@35450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 22:27:26 +00:00
Drew Jaynes
6924523366
Docs: Correctly notate that the default $width
and $height
embed dimensions are passed to the embed_defaults
filter as a compacted array, and not two distinct parameters.
...
Props swissspidy.
Fixes #34522 .
Built from https://develop.svn.wordpress.org/trunk@35485
git-svn-id: http://core.svn.wordpress.org/trunk@35449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 15:42:25 +00:00
Sergey Biryukov
d49160ba5b
Docs: Correct $post
parameter description for display_post_states
filter.
...
Props grapplerulrich.
Fixes #34541 .
Built from https://develop.svn.wordpress.org/trunk@35484
git-svn-id: http://core.svn.wordpress.org/trunk@35448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 14:06:26 +00:00
Weston Ruter
8fed77574c
Customize: Return user to referring URL when leaving Customizer in absence of return
query param.
...
When referring URL is not available, default returning user to frontend URL instead of admin URL. Themes page is updated to include the `return` path in Customizer links.
Props McGuive7, westonruter.
Fixes #32637 .
Built from https://develop.svn.wordpress.org/trunk@35483
git-svn-id: http://core.svn.wordpress.org/trunk@35447 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 06:40:28 +00:00
Sergey Biryukov
10f3ff1753
Post List Table: Hierarchical post types should not default to sorting by date.
...
Regression introduced in [34728].
Props ellie.roepken.
Fixes #34473 . See #25493 .
Built from https://develop.svn.wordpress.org/trunk@35482
git-svn-id: http://core.svn.wordpress.org/trunk@35446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-01 00:49:24 +00:00
Andrew Ozz
26b6acd081
Responsive images: add $image_url
parameter to wp_get_attachment_image_sizes()
and use it in the filter. This allows themes and plugins to identify the image.
...
Props joemcgill.
Fixes #34477 .
Built from https://develop.svn.wordpress.org/trunk@35481
git-svn-id: http://core.svn.wordpress.org/trunk@35445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 22:49:24 +00:00
Scott Taylor
60eaf79b67
Canonical: when /%post_id%/
is the permalink structure, don't redirect IDs that match Auto Drafts.
...
Props SergeyBiryukov.
Fixes #29431 .
Built from https://develop.svn.wordpress.org/trunk@35480
git-svn-id: http://core.svn.wordpress.org/trunk@35444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:54:25 +00:00
Scott Taylor
d8eacd51d8
Media: add a new image size, medium_large
. Bumps db version to add new options.
...
Adds unit tests.
Props DH-Shredder, joemcgill, azaozz.
Fixes #34196 .
Built from https://develop.svn.wordpress.org/trunk@35479
git-svn-id: http://core.svn.wordpress.org/trunk@35443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:50:25 +00:00
Scott Taylor
382d455235
WP oEmbed: Improve height attribute sanitization
...
Props afercia, swissspidy.
Fixes #34527 .
Built from https://develop.svn.wordpress.org/trunk@35478
git-svn-id: http://core.svn.wordpress.org/trunk@35442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:39:25 +00:00
Scott Taylor
35dd8003b0
Admin Menu: allow more than one menu item to be added at the same priority/position.
...
Props chriscct7.
Fixes #23316 .
Built from https://develop.svn.wordpress.org/trunk@35477
git-svn-id: http://core.svn.wordpress.org/trunk@35441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:31:24 +00:00
Scott Taylor
e4a2e0c4a9
Filesystem: in WP_Filesystem_FTPext::parselisting()
, check for the existence of $b['islink']
before using it.
...
Props jesin.
Fixes #27975 .
Built from https://develop.svn.wordpress.org/trunk@35476
git-svn-id: http://core.svn.wordpress.org/trunk@35440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:17:24 +00:00
Scott Taylor
244cb3e595
Comments: don't auto-close comments on draft posts.
...
Adds unit tests.
Props solarissmoke, MikeHansenMe, nacin, rachelbaker.
Fixes #20262 .
Built from https://develop.svn.wordpress.org/trunk@35475
git-svn-id: http://core.svn.wordpress.org/trunk@35439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:13:24 +00:00
Scott Taylor
a36900c076
REST API: remove the @internal
annotation from rest_api_default_filters()
.
...
Props swissspidy, rachelbaker.
Fixes #34219 .
Built from https://develop.svn.wordpress.org/trunk@35474
git-svn-id: http://core.svn.wordpress.org/trunk@35438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:08:25 +00:00
Scott Taylor
5c57e68d48
Nav Menus: add responsive styles for viewport between 768 and 1000px.
...
Props datta.parad, chriscct7.
Fixes #28912 .
Built from https://develop.svn.wordpress.org/trunk@35473
git-svn-id: http://core.svn.wordpress.org/trunk@35437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 20:05:26 +00:00
Sergey Biryukov
74969ca0d3
Embeds: In get_post_embed_html()
, move the optional $post
argument after the required $width
and $height
.
...
Props swissspidy.
Fixes #34523 .
Built from https://develop.svn.wordpress.org/trunk@35472
git-svn-id: http://core.svn.wordpress.org/trunk@35436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:51:25 +00:00
Sergey Biryukov
0b845e0364
Embeds: In get_oembed_response_data()
, make the $post
argument required.
...
`get_oembed_response_data()` is called by the API endpoint controller and never in a context where it makes sense to use the global post object.
Props swissspidy.
See #34523 .
Built from https://develop.svn.wordpress.org/trunk@35471
git-svn-id: http://core.svn.wordpress.org/trunk@35435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:42:25 +00:00
Sergey Biryukov
64fdde928a
Embeds: Fix typo in oembed_request_post_id
filter DocBlock.
...
Props swissspidy.
See #34523 .
Built from https://develop.svn.wordpress.org/trunk@35470
git-svn-id: http://core.svn.wordpress.org/trunk@35434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:38:25 +00:00
Andrea Fercia
d5937d6a2c
Dashboard: Activity widget CSS cleanup after [35420].
...
Props tyxla.
Fixes #34524 . See #33558 .
Built from https://develop.svn.wordpress.org/trunk@35469
git-svn-id: http://core.svn.wordpress.org/trunk@35433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 13:49:25 +00:00
Drew Jaynes
e6578e7b4f
Docs: Use 3-digit, x.x.x-style semantic versioning in the DocBlocks for post_form_autocomplete_off()
and WP_Filesystem_SSH2::sftp_path()
.
...
Props aaronrutley.
Fixes #34518 .
Built from https://develop.svn.wordpress.org/trunk@35468
git-svn-id: http://core.svn.wordpress.org/trunk@35432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 13:16:24 +00:00
Gary Pendergast
1b30c48bca
Embeds: Revert [35083], as the PNG files ended up not being used in [35466].
...
See #34204 .
Built from https://develop.svn.wordpress.org/trunk@35467
git-svn-id: http://core.svn.wordpress.org/trunk@35431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 04:42:25 +00:00
Gary Pendergast
21393df10e
Embeds: Add fallbacks for IE7-9.
...
Older IE versions need just that little bit of extra tender care to keep them going.
Props peterwilsoncc, swissspidy, pento.
Fixes #34204 .
Built from https://develop.svn.wordpress.org/trunk@35466
git-svn-id: http://core.svn.wordpress.org/trunk@35430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 04:38:25 +00:00
Andrew Ozz
8edcfabf9c
Responsive images: few more inline docs fixes.
...
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35465
git-svn-id: http://core.svn.wordpress.org/trunk@35429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 23:36:25 +00:00
Andrew Ozz
2021bc0da2
Responsive images:
...
- Merge `wp_image_srcset_attr()` into `wp_calculate_image_srcset()`.
- Remove the `wp_image_srcset` filter.
- Fix the tests for the above changes.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35464
git-svn-id: http://core.svn.wordpress.org/trunk@35428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 23:27:24 +00:00
Andrea Fercia
f014928b44
Media: Restore proper conditional statement broken after [35427].
...
Unprops afercia.
See #34273 .
Built from https://develop.svn.wordpress.org/trunk@35463
git-svn-id: http://core.svn.wordpress.org/trunk@35427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 22:06:24 +00:00
John Blackbourn
37c2054778
Remove trailing whitespace introduced in [35351].
...
Props rachelbaker
Unprops johnbillion
Fixes #34512
Built from https://develop.svn.wordpress.org/trunk@35462
git-svn-id: http://core.svn.wordpress.org/trunk@35426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 21:39:25 +00:00
Helen Hou-Sandí
c69d749c75
View mode is only a screen option for posts lists.
...
see #22222 .
Built from https://develop.svn.wordpress.org/trunk@35461
git-svn-id: http://core.svn.wordpress.org/trunk@35425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 21:03:28 +00:00
John Blackbourn
263b2890d4
Add wp-post-new-reload
to the list of removable query vars so it doesn't persist in the URL.
...
Fixes #34510
Built from https://develop.svn.wordpress.org/trunk@35460
git-svn-id: http://core.svn.wordpress.org/trunk@35424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 18:06:34 +00:00
Andrea Fercia
f1faed4024
Accessibility: Bump the Settings API sections heading one level up.
...
Also, fix a typo in the `do_settings_sections()` DocBlock.
Props neoxx.
Fixes #34492 .
Built from https://develop.svn.wordpress.org/trunk@35459
git-svn-id: http://core.svn.wordpress.org/trunk@35423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 15:30:27 +00:00
Sergey Biryukov
9876e2cccf
Don't use <a>
in translatable strings in theme-compat/sidebar.php
.
...
Add translator comments.
Props ramiy.
Fixes #34503 .
Built from https://develop.svn.wordpress.org/trunk@35458
git-svn-id: http://core.svn.wordpress.org/trunk@35422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:40:26 +00:00
Sergey Biryukov
ba55e98b24
Add translator comments for strings in theme-compat/header.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35457
git-svn-id: http://core.svn.wordpress.org/trunk@35421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:39:25 +00:00
Sergey Biryukov
7b70909232
Add translator comments for strings in theme-compat/footer.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35456
git-svn-id: http://core.svn.wordpress.org/trunk@35420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:38:49 +00:00
Sergey Biryukov
d8f50fef8a
Don't use <a>
in translatable string in theme-compat/comments.php
.
...
Add translator comments.
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35455
git-svn-id: http://core.svn.wordpress.org/trunk@35419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:38:25 +00:00
Sergey Biryukov
c342525d42
Add translator comments for strings in theme-compat/comments-popup.php
.
...
Props ramiy.
See #34503 .
Built from https://develop.svn.wordpress.org/trunk@35454
git-svn-id: http://core.svn.wordpress.org/trunk@35418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 10:35:24 +00:00
Sergey Biryukov
80fdc4afba
Don't use <a>
in translatable string in wp-includes/ms-load.php
.
...
Add translator commment.
Props ramiy.
Fixes #34506 .
Built from https://develop.svn.wordpress.org/trunk@35453
git-svn-id: http://core.svn.wordpress.org/trunk@35417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 09:16:25 +00:00
Sergey Biryukov
55a7ba2ec7
Don't use <strong>
in translatable string in wp-includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34505 .
Built from https://develop.svn.wordpress.org/trunk@35452
git-svn-id: http://core.svn.wordpress.org/trunk@35416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 08:57:26 +00:00
Sergey Biryukov
1389f731b7
Don't use <strong>
in translatable strings in wp-signup.php
.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
Built from https://develop.svn.wordpress.org/trunk@35451
git-svn-id: http://core.svn.wordpress.org/trunk@35415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 08:52:25 +00:00
Drew Jaynes
8f603650f4
Menus: Prevent display conflicts in the screen options for Menus when a post type and taxonomy share the same slug.
...
Prior to this change, both taxonomies and post types added meta boxes to the Menus UI (which in-turn registered screen options) using the same ID formula: `add-{$id}`. This caused a conflict between the two elements, resulting in the rendering of a screen option for only the taxonomy or post type but not both. Moving to a new meta box ID for post types, `add-post-type-{$id}`, removes that conflict.
Note: This change in meta box IDs for post types effectively resets current user settings for the visibility of post types in the Menus UI.
Fixes #33925 .
Built from https://develop.svn.wordpress.org/trunk@35450
git-svn-id: http://core.svn.wordpress.org/trunk@35414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 05:47:24 +00:00
Drew Jaynes
e6d50be991
Multisite: Restore display of the Toolbar on wp-activate.php while logged-in.
...
Just as with wp-signup.php, display of the Toolbar on wp-activate.php was broken in [23512] due to a hook change for the `_wp_admin_bar_init()` callback. wp-signup.php was fixed in [35423] for #34418 .
See [35423] for more in-depth background and reasoning behind restoring display of the Toolbar on wp-activate.php and wp-signup.php.
Fixes #34496 . See #34418 .
Built from https://develop.svn.wordpress.org/trunk@35449
git-svn-id: http://core.svn.wordpress.org/trunk@35413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 04:24:23 +00:00
Gary Pendergast
cad430161c
Buttons: Add some vendor prefixes missed in [35422].
...
See #31459 .
Built from https://develop.svn.wordpress.org/trunk@35448
git-svn-id: http://core.svn.wordpress.org/trunk@35412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 03:13:25 +00:00
Sergey Biryukov
044901e783
Don't use <strong>
in translatable strings in wp-signup.php
.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
Built from https://develop.svn.wordpress.org/trunk@35447
git-svn-id: http://core.svn.wordpress.org/trunk@35411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 02:09:24 +00:00
John Blackbourn
8cbd79e3dc
Ensure that the scheme used in the URL returned by get_blogaddress_by_id()
always reflects the blog's URL, instead of using http
.
...
Props thomaswm
Fixes #14867
Built from https://develop.svn.wordpress.org/trunk@35446
git-svn-id: http://core.svn.wordpress.org/trunk@35410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 02:02:24 +00:00
Sergey Biryukov
746ba4c9c4
Replace a second instance of <code>
in translatable string left in [35440].
...
Props ramiy.
See #34498 .
Built from https://develop.svn.wordpress.org/trunk@35445
git-svn-id: http://core.svn.wordpress.org/trunk@35409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:56:25 +00:00
Sergey Biryukov
2920285225
Don't use <strong>
in translatable string in wp-admin/includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
Built from https://develop.svn.wordpress.org/trunk@35444
git-svn-id: http://core.svn.wordpress.org/trunk@35408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:37:24 +00:00
Sergey Biryukov
bfbd9e3ec3
Don't use <a>
in translatable strings in `wp-admin/includes/dashboard.php'.
...
Add translator commments.
Props ramiy.
Fixes #34501 .
Built from https://develop.svn.wordpress.org/trunk@35443
git-svn-id: http://core.svn.wordpress.org/trunk@35407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:33:25 +00:00
Sergey Biryukov
a83a250ee0
Don't use <strong>
in translatable string in wp-admin/includes/nav-menu.php
.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
Built from https://develop.svn.wordpress.org/trunk@35442
git-svn-id: http://core.svn.wordpress.org/trunk@35406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:17:26 +00:00
Sergey Biryukov
87105cdf24
Add <code>
tag missed in [35440].
...
See #34498 .
Built from https://develop.svn.wordpress.org/trunk@35441
git-svn-id: http://core.svn.wordpress.org/trunk@35405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:12:24 +00:00
Sergey Biryukov
58db99b512
Don't use <code>
in translatable strings in wp-admin/includes/class-wp-plugins-list-table.php
.
...
Add translator commments.
Props ramiy.
Fixes #34498 .
Built from https://develop.svn.wordpress.org/trunk@35440
git-svn-id: http://core.svn.wordpress.org/trunk@35404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 01:08:25 +00:00
Sergey Biryukov
1c21783283
Don't use <code>
in translatable string in wp-admin/includes/media.php
.
...
Add translator commment.
Props ramiy.
Fixes #34499 .
Built from https://develop.svn.wordpress.org/trunk@35439
git-svn-id: http://core.svn.wordpress.org/trunk@35403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 00:58:24 +00:00
Sergey Biryukov
e51f9061c5
Don't use <code>
in translatable strings in options-general.php
.
...
Add translator commments.
Props ramiy.
Fixes #34497 .
Built from https://develop.svn.wordpress.org/trunk@35438
git-svn-id: http://core.svn.wordpress.org/trunk@35402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-30 00:52:26 +00:00
Gary Pendergast
368e5f9fc3
Embeds: Provide a cached text fallback.
...
Sometimes, embedded sites might suffer from less than 100% uptime. Instead of leaving the embedding site with a big blank space where the embed should be, let's fall back to a link to the embedded post, so there's at least some context for the post.
Fixes #34462 .
Built from https://develop.svn.wordpress.org/trunk@35437
git-svn-id: http://core.svn.wordpress.org/trunk@35401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 23:11:24 +00:00
Gary Pendergast
8be4a22f82
Embeds: Who put this REST API infrastructure in my WordPress?
...
Well, while it's here, we probably should make use of it. The oEmbed endpoint now uses the REST API infrastructure, instead of providing its own.
Props swissspidy.
Fixes #34207 .
Built from https://develop.svn.wordpress.org/trunk@35436
git-svn-id: http://core.svn.wordpress.org/trunk@35400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 22:51:24 +00:00
John Blackbourn
c68c3804fa
Correctly populate the user_id
field for comments when a user submits a comment while logged in.
...
Props imath
Fixes #34493
Built from https://develop.svn.wordpress.org/trunk@35435
git-svn-id: http://core.svn.wordpress.org/trunk@35399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 21:29:24 +00:00
Sergey Biryukov
5d9dc4b8bf
REST API: Use correct version in _doing_it_wrong()
call.
...
Props TobiasBg.
Fixes #34490 .
Built from https://develop.svn.wordpress.org/trunk@35434
git-svn-id: http://core.svn.wordpress.org/trunk@35398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 20:12:24 +00:00
Sergey Biryukov
e7082e31dd
REST API: Add missing translator comments for deprecated function and argument strings.
...
Props akirk.
Fixes #34486 .
Built from https://develop.svn.wordpress.org/trunk@35433
git-svn-id: http://core.svn.wordpress.org/trunk@35397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 19:04:26 +00:00
Sergey Biryukov
a3aaa0f951
Embeds: Include post name in "Continue reading" links to provide a readable link for screenreaders.
...
Props swissspidy.
Fixes #34481 .
Built from https://develop.svn.wordpress.org/trunk@35432
git-svn-id: http://core.svn.wordpress.org/trunk@35396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 13:21:26 +00:00
Sergey Biryukov
1b0bc28579
Rename internal variable in set_transient()
.
...
The previous name was inadvertently changing the dynamic part of `set_transient_{transient}` action and the transient name passed to the action since [35082].
Props GregLone.
Fixes #34470 .
Built from https://develop.svn.wordpress.org/trunk@35431
git-svn-id: http://core.svn.wordpress.org/trunk@35395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:52:28 +00:00
Gary Pendergast
85c273818c
Embeds: Tweak a string added in [35429], and add a translator comment.
...
See #32522 .
Built from https://develop.svn.wordpress.org/trunk@35430
git-svn-id: http://core.svn.wordpress.org/trunk@35394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:42:25 +00:00
Gary Pendergast
59b1c9823a
Embeds: Tweak the "embed not found" message, based on the Twenty Sixteen 404 template.
...
See #32522 .
Built from https://develop.svn.wordpress.org/trunk@35429
git-svn-id: http://core.svn.wordpress.org/trunk@35393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 11:10:25 +00:00
Gary Pendergast
44fb83dc0b
Shortcodes: Tweak the error messages added in [34745].
...
See #34090 .
Built from https://develop.svn.wordpress.org/trunk@35428
git-svn-id: http://core.svn.wordpress.org/trunk@35392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 10:32:26 +00:00
Andrea Fercia
db8b09c40d
Media: Improve the headings hierarchy in the Media Views for better accessibility.
...
Fixes #34273 .
Built from https://develop.svn.wordpress.org/trunk@35427
git-svn-id: http://core.svn.wordpress.org/trunk@35391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 23:08:24 +00:00
Andrew Ozz
d7da5970fa
Responsive images: add inline docs for private functions.
...
Props swissspidy.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35426
git-svn-id: http://core.svn.wordpress.org/trunk@35390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 21:55:24 +00:00
Scott Taylor
ce23a01aa8
Bump 4.4 Beta 2.
...
Built from https://develop.svn.wordpress.org/trunk@35425
git-svn-id: http://core.svn.wordpress.org/trunk@35389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:48:25 +00:00
Scott Taylor
5f6bdd9d60
4.4-beta2
...
Built from https://develop.svn.wordpress.org/trunk@35424
git-svn-id: http://core.svn.wordpress.org/trunk@35388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:32:24 +00:00
Drew Jaynes
33d9b8e4d0
Multisite: Restore displaying the Toolbar on wp-signup.php while logged-in.
...
Prior to [23512], the Toolbar was still displayed on wp-signup.php while logged-in because it was hooked to the `init` action. When `_wp_admin_bar_init()` was moved to instead fire on `template_redirect` for the front-end and `admin_init` on the back-end, the visibility was lost because `template_redirect` isn't fired on wp-signup.php due to `WP_USE_THEMES` not being defined.
In order to maintain expected display results, a default filter has been added to hook `_wp_admin_bar_init()` to the `before_signup_header` action. This approach has the added benefit of allowing `_wp_admin_bar_init()` to be fired prior to the `wp_head` action where `_admin_bar_bump_cb()` is called (or the callback defined when 'admin-bar' theme support is added).
Fixes #34418 .
Built from https://develop.svn.wordpress.org/trunk@35423
git-svn-id: http://core.svn.wordpress.org/trunk@35387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:30:25 +00:00
Helen Hou-Sandí
68951bd30c
Buttons: Screen Options/Help shouldn't have active styling.
...
see #31459 .
Built from https://develop.svn.wordpress.org/trunk@35422
git-svn-id: http://core.svn.wordpress.org/trunk@35386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:26:24 +00:00
Helen Hou-Sandí
831f3d4105
Buttons: More consistent focus styling.
...
props afercia.
fixes #32915 .
Built from https://develop.svn.wordpress.org/trunk@35421
git-svn-id: http://core.svn.wordpress.org/trunk@35385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:17:27 +00:00
Scott Taylor
fc440ef0f0
Dashboard: cleanup after [35414].
...
Props afercia.
Fixes #33558 .
Built from https://develop.svn.wordpress.org/trunk@35420
git-svn-id: http://core.svn.wordpress.org/trunk@35384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:08:25 +00:00
Andrew Ozz
fd11ef9c45
Responsive images:
...
- Check if wp_get_attachment_metadata() has returned an array to prevent errors when using SVGs.
- Only add the srcset attribute if there will be a sizes attribute.
- Better filter names.
- Some more inline docs fixes.
Props jaspermdegroot.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35419
git-svn-id: http://core.svn.wordpress.org/trunk@35383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 20:01:26 +00:00
Scott Taylor
f507751a40
Thickbox: spinner should disappear when loading is done.
...
Props niklasbr, afercia.
Fixes #33311 .
Built from https://develop.svn.wordpress.org/trunk@35418
git-svn-id: http://core.svn.wordpress.org/trunk@35382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:19:26 +00:00
Boone Gorges
91c191f5d7
Don't specify an offset
default in get_posts()
.
...
The default value should be a null offset. A `0` default overrides any value
of `paged` passed to `get_posts()`. See [34697].
Fixes #34060 .
Built from https://develop.svn.wordpress.org/trunk@35417
git-svn-id: http://core.svn.wordpress.org/trunk@35381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:18:24 +00:00
Scott Taylor
70689237f3
Admin Menu: after [34861], prevent adjacent separators.
...
Props johnjamesjacoby.
Fixes #24104 .
Built from https://develop.svn.wordpress.org/trunk@35416
git-svn-id: http://core.svn.wordpress.org/trunk@35380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:06:24 +00:00
Scott Taylor
34a9b6e428
Mail: in wp_notify_postauthor()
and wp_notify_moderator()
, ensure that special chars aren't HTML-encoded in the email message body.
...
Props solarissmoke, leemon.
Fixes #12584 .
Built from https://develop.svn.wordpress.org/trunk@35415
git-svn-id: http://core.svn.wordpress.org/trunk@35379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 18:03:24 +00:00
Scott Taylor
843d1c003b
Dashboard: make tags used for headings more semantic.
...
Props Cheffheid, afercia.
Fixes #33558 .
Built from https://develop.svn.wordpress.org/trunk@35414
git-svn-id: http://core.svn.wordpress.org/trunk@35378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 17:57:25 +00:00
John Blackbourn
ef6abd3891
List the possible values for the dynamic portion of the {type}_template
hook.
...
See #14310 , #32246
Built from https://develop.svn.wordpress.org/trunk@35413
git-svn-id: http://core.svn.wordpress.org/trunk@35377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 14:06:27 +00:00
Andrew Ozz
61d21cc0d9
Responsive images:
...
- Introduce `wp_calculate_image_srcset()` that replaces `wp_get_attachment_image_srcset_array()` and is used as lower level function for retrieving the srcset data as array.
- Use the new function when generating `srcset` and `sizes` on the front-end. This is faster as no (other) image API functions are used.
- Change the `wp_get_attachment_image_srcset()`. Now it is meant for use in templates and is no longer used in core.
- A few logic fixes and improvements.
- Some names changed to be (hopefully) more descriptive.
- Fixed/updated tests.
Props joemcgill, jaspermdegroot, azaozz.
See #34430 .
Built from https://develop.svn.wordpress.org/trunk@35412
git-svn-id: http://core.svn.wordpress.org/trunk@35376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 05:41:24 +00:00
Sergey Biryukov
8d0f76bc11
Settings: Don't display Site Address field description if WP_HOME
is defined and the field is disabled.
...
Props dipesh.kakadiya.
Fixes #33354 .
Built from https://develop.svn.wordpress.org/trunk@35411
git-svn-id: http://core.svn.wordpress.org/trunk@35375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 04:54:26 +00:00
Dion Hulse
82d034a386
Update Random_Compat to master.
...
This update mostly concerns OpenSSL being unusable on PHP 5.3~5.3.3.
See #28633 , #34409
Built from https://develop.svn.wordpress.org/trunk@35410
git-svn-id: http://core.svn.wordpress.org/trunk@35374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-28 01:12:24 +00:00
Dominik Schilling
3def1c5014
Embeds: Provide a site icon via srcset
for HiDPI screens.
...
Fixes #34433 .
Built from https://develop.svn.wordpress.org/trunk@35409
git-svn-id: http://core.svn.wordpress.org/trunk@35373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 21:00:24 +00:00
Dominik Schilling
80116f2136
Embeds: Replace hardcoded error messages with get_status_header_desc( $http_code )
.
...
Fixes #34275 .
Built from https://develop.svn.wordpress.org/trunk@35408
git-svn-id: http://core.svn.wordpress.org/trunk@35372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 20:44:23 +00:00
Drew Jaynes
887dca222c
Docs: Standardize the file header for wp-admin/includes/ms-deprecated.php.
...
See #33701 .
Built from https://develop.svn.wordpress.org/trunk@35407
git-svn-id: http://core.svn.wordpress.org/trunk@35371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 20:08:27 +00:00
Gary Pendergast
1f8e6268d3
Embeds: Add a CDATA and HTML comment wrapper around the JavaScript included in the embed HTML. This ensures that user agents which naively strip unwanted tags, without also stripping the content within those tages (for example, Slack), don't show the embed as a mess of JavaScript.
...
Props peterwilsoncc.
Fixes #34429 .
Built from https://develop.svn.wordpress.org/trunk@35406
git-svn-id: http://core.svn.wordpress.org/trunk@35370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 23:55:26 +00:00
Sergey Biryukov
1acf9e9e49
After [35402], don't unnecessary run wp_get_attachment_metadata()
, wp_get_attachment_image_srcset()
, and wp_get_attachment_image_sizes()
in wp_img_add_srcset_and_sizes()
.
...
See #34379 .
Built from https://develop.svn.wordpress.org/trunk@35405
git-svn-id: http://core.svn.wordpress.org/trunk@35369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 18:42:24 +00:00