Commit Graph

32605 Commits

Author SHA1 Message Date
Sergey Biryukov
9e8e68f001 Add <code> tag missed in [35440].
See #34498.

git-svn-id: https://develop.svn.wordpress.org/trunk@35441 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:11:53 +00:00
Sergey Biryukov
540e4b5edd Don't use <code> in translatable strings in wp-admin/includes/class-wp-plugins-list-table.php.
Add translator commments.

Props ramiy.
Fixes #34498.

git-svn-id: https://develop.svn.wordpress.org/trunk@35440 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:07:11 +00:00
Sergey Biryukov
d21d397d49 Don't use <code> in translatable string in wp-admin/includes/media.php.
Add translator commment.

Props ramiy.
Fixes #34499.

git-svn-id: https://develop.svn.wordpress.org/trunk@35439 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 00:57:22 +00:00
Sergey Biryukov
99f4630635 Don't use <code> in translatable strings in options-general.php.
Add translator commments.

Props ramiy.
Fixes #34497.

git-svn-id: https://develop.svn.wordpress.org/trunk@35438 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 00:51:03 +00:00
Gary Pendergast
63d9e9df96 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@35437 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 23:10:46 +00:00
Gary Pendergast
4832d8d933 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@35436 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 22:50:13 +00:00
John Blackbourn
4b10def07e Correctly populate the user_id field for comments when a user submits a comment while logged in.
Props imath
Fixes #34493


git-svn-id: https://develop.svn.wordpress.org/trunk@35435 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 21:28:39 +00:00
Sergey Biryukov
170d361287 REST API: Use correct version in _doing_it_wrong() call.
Props TobiasBg.
Fixes #34490.

git-svn-id: https://develop.svn.wordpress.org/trunk@35434 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 20:11:22 +00:00
Sergey Biryukov
42e7bfd9b5 REST API: Add missing translator comments for deprecated function and argument strings.
Props akirk.
Fixes #34486.

git-svn-id: https://develop.svn.wordpress.org/trunk@35433 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 19:03:47 +00:00
Sergey Biryukov
391b67356a Embeds: Include post name in "Continue reading" links to provide a readable link for screenreaders.
Props swissspidy.
Fixes #34481.

git-svn-id: https://develop.svn.wordpress.org/trunk@35432 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 13:20:04 +00:00
Sergey Biryukov
78a2cf3db6 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35431 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 11:51:21 +00:00
Gary Pendergast
198ad14ffd Embeds: Tweak a string added in [35429], and add a translator comment.
See #32522.



git-svn-id: https://develop.svn.wordpress.org/trunk@35430 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 11:41:32 +00:00
Gary Pendergast
01f507a051 Embeds: Tweak the "embed not found" message, based on the Twenty Sixteen 404 template.
See #32522.



git-svn-id: https://develop.svn.wordpress.org/trunk@35429 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 11:09:39 +00:00
Gary Pendergast
9b47d5fcd6 Shortcodes: Tweak the error messages added in [34745].
See #34090.



git-svn-id: https://develop.svn.wordpress.org/trunk@35428 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-29 10:31:31 +00:00
Andrea Fercia
347b0bf108 Media: Improve the headings hierarchy in the Media Views for better accessibility.
Fixes #34273.

git-svn-id: https://develop.svn.wordpress.org/trunk@35427 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 23:07:08 +00:00
Andrew Ozz
63b27d209a Responsive images: add inline docs for private functions.
Props swissspidy.
See #34430.

git-svn-id: https://develop.svn.wordpress.org/trunk@35426 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 21:54:04 +00:00
Scott Taylor
501fef30d6 Bump 4.4 Beta 2.
git-svn-id: https://develop.svn.wordpress.org/trunk@35425 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:47:40 +00:00
Scott Taylor
1cf714aa3d 4.4-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@35424 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:31:36 +00:00
Drew Jaynes
f4bba7cf95 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35423 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:29:19 +00:00
Helen Hou-Sandi
21f7dddfe4 Buttons: Screen Options/Help shouldn't have active styling.
see #31459.


git-svn-id: https://develop.svn.wordpress.org/trunk@35422 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:25:45 +00:00
Helen Hou-Sandi
6c243567cf Buttons: More consistent focus styling.
props afercia.
fixes #32915.


git-svn-id: https://develop.svn.wordpress.org/trunk@35421 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:16:43 +00:00
Scott Taylor
e52a0d4e7f Dashboard: cleanup after [35414].
Props afercia.
Fixes #33558.


git-svn-id: https://develop.svn.wordpress.org/trunk@35420 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:07:16 +00:00
Andrew Ozz
2fadc857de 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35419 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 20:00:14 +00:00
Scott Taylor
430d5b13be Thickbox: spinner should disappear when loading is done.
Props niklasbr, afercia.
Fixes #33311.


git-svn-id: https://develop.svn.wordpress.org/trunk@35418 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 18:18:42 +00:00
Boone Gorges
f1ca28c2ab 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35417 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 18:17:27 +00:00
Scott Taylor
ad471ac474 Admin Menu: after [34861], prevent adjacent separators.
Props johnjamesjacoby.
Fixes #24104.


git-svn-id: https://develop.svn.wordpress.org/trunk@35416 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 18:05:05 +00:00
Scott Taylor
2b11f8cc1c 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35415 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 18:02:41 +00:00
Scott Taylor
83f90bf851 Dashboard: make tags used for headings more semantic.
Props Cheffheid, afercia.
Fixes #33558.


git-svn-id: https://develop.svn.wordpress.org/trunk@35414 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 17:56:22 +00:00
John Blackbourn
c1aa66cd52 List the possible values for the dynamic portion of the {type}_template hook.
See #14310, #32246


git-svn-id: https://develop.svn.wordpress.org/trunk@35413 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 14:05:04 +00:00
Andrew Ozz
855ba2518b 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35412 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 05:40:04 +00:00
Sergey Biryukov
21532e1f7f Settings: Don't display Site Address field description if WP_HOME is defined and the field is disabled.
Props dipesh.kakadiya.
Fixes #33354.

git-svn-id: https://develop.svn.wordpress.org/trunk@35411 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 04:53:56 +00:00
Dion Hulse
fb109971e4 Update Random_Compat to master.
This update mostly concerns OpenSSL being unusable on PHP 5.3~5.3.3.
See #28633, #34409


git-svn-id: https://develop.svn.wordpress.org/trunk@35410 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-28 01:11:57 +00:00
Dominik Schilling (ocean90)
60f6db0c06 Embeds: Provide a site icon via srcset for HiDPI screens.
Fixes #34433.

git-svn-id: https://develop.svn.wordpress.org/trunk@35409 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-27 20:59:37 +00:00
Dominik Schilling (ocean90)
88cdbb6a49 Embeds: Replace hardcoded error messages with get_status_header_desc( $http_code ).
Fixes #34275.

git-svn-id: https://develop.svn.wordpress.org/trunk@35408 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-27 20:43:00 +00:00
Drew Jaynes
1353016c4f Docs: Standardize the file header for wp-admin/includes/ms-deprecated.php.
See #33701.


git-svn-id: https://develop.svn.wordpress.org/trunk@35407 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-27 20:07:45 +00:00
Gary Pendergast
9387dff5af 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@35406 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 23:54:04 +00:00
Sergey Biryukov
c608146996 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35405 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 18:41:31 +00:00
Sergey Biryukov
aeca8fcfd8 After [35402], don't unnecessary run wp_get_attachment_image_srcset() and wp_get_attachment_image_sizes() in wp_get_attachment_image() if srcset is passed as an argument.
See #34379.

git-svn-id: https://develop.svn.wordpress.org/trunk@35404 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 18:40:01 +00:00
Drew Jaynes
c1db6a9a56 Docs: Add a @subpackage tag to the file header for wp-admin/includes/ms-admin-filters.php.
See #33701.


git-svn-id: https://develop.svn.wordpress.org/trunk@35403 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 18:05:52 +00:00
Sergey Biryukov
9b29cf2574 Remove assignments from conditions in wp_get_attachment_image() and wp_img_add_srcset_and_sizes().
See #34379.

git-svn-id: https://develop.svn.wordpress.org/trunk@35402 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 16:28:27 +00:00
Sergey Biryukov
558984a8ab Docs: After [34453], correct inline comments in wp_get_attachment_image_sizes().
Props jaspermdegroot.
Fixes #34453.

git-svn-id: https://develop.svn.wordpress.org/trunk@35401 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 16:16:52 +00:00
Sergey Biryukov
0dd41231fa Docs: After [35399], correct $class parameter type and description for post_class filter.
See #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35400 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:11:53 +00:00
Sergey Biryukov
d8ddd686d5 In get_post_class(), ensure that we always coerce the class list passed to the function to an array, even when it's empty.
This is consistent with `get_body_class()`, see [18176].

See #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35399 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:08:47 +00:00
Sergey Biryukov
8a105470b4 Docs: Correct $class parameter type and description for body_class filter.
Props JPry.
Fixes #34452.

git-svn-id: https://develop.svn.wordpress.org/trunk@35398 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 15:02:53 +00:00
Sergey Biryukov
ee4e4b8ff2 Embeds: Rename TinyMCE wpoembed plugin to wpembed.
Props swissspidy.
Fixes #34272.

git-svn-id: https://develop.svn.wordpress.org/trunk@35397 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 14:49:25 +00:00
Andrea Fercia
fa29612530 Customizer: Remove the no more used add-menu-item-loading spinner.
Also makes more room for longer translations.

Props dipali.dhole27@gmail.com.
Fixes #34342.

git-svn-id: https://develop.svn.wordpress.org/trunk@35396 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 13:58:53 +00:00
Gary Pendergast
6d8ecd2fd6 Embeds: Move the embed iframe script to the footer, as it isn't being run until DOMContentLoaded is fired.
Props brainstormforce, pratikchaskar.

Fixes #344444.



git-svn-id: https://develop.svn.wordpress.org/trunk@35395 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 05:49:51 +00:00
Gary Pendergast
887e88d7d0 Docs: Fix a typo in the print_embed_scripts() function header.
Props brainstormforce.

Fixes #34445.



git-svn-id: https://develop.svn.wordpress.org/trunk@35394 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-26 05:18:48 +00:00
Drew Jaynes
95be0b747f Docs: Add missing DocBlocks for the $type and $sidebar_id properties, and summaries for the to_json() and render_content() methods in WP_Widget_Area_Customize_Control.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@35393 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-25 19:57:46 +00:00
Sergey Biryukov
ab7d3bd104 Post 4.4-beta1 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@35392 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-25 15:18:03 +00:00