Andrew Ozz
98a63f523f
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35464 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 23:26:44 +00:00
Andrea Fercia
90a15b9649
Media: Restore proper conditional statement broken after [35427].
...
Unprops afercia.
See #34273 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35463 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 22:05:22 +00:00
John Blackbourn
31f63b8b52
Remove trailing whitespace introduced in [35351].
...
Props rachelbaker
Unprops johnbillion
Fixes #34512
git-svn-id: https://develop.svn.wordpress.org/trunk@35462 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 21:38:36 +00:00
Helen Hou-Sandi
a701118676
View mode is only a screen option for posts lists.
...
see #22222 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35461 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 21:02:35 +00:00
John Blackbourn
0b05c7aa24
Add `wp-post-new-reload` to the list of removable query vars so it doesn't persist in the URL.
...
Fixes #34510
git-svn-id: https://develop.svn.wordpress.org/trunk@35460 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 18:05:31 +00:00
Andrea Fercia
2b54d3143b
Accessibility: Bump the Settings API sections heading one level up.
...
Also, fix a typo in the `do_settings_sections()` DocBlock.
Props neoxx.
Fixes #34492 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35459 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 15:29:31 +00:00
Sergey Biryukov
fff36156c2
Don't use `<a>` in translatable strings in `theme-compat/sidebar.php`.
...
Add translator comments.
Props ramiy.
Fixes #34503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35458 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:39:02 +00:00
Sergey Biryukov
80a257622b
Add translator comments for strings in `theme-compat/header.php`.
...
Props ramiy.
See #34503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35457 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:38:20 +00:00
Sergey Biryukov
8cd3b7d040
Add translator comments for strings in `theme-compat/footer.php`.
...
Props ramiy.
See #34503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35456 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:37:52 +00:00
Sergey Biryukov
8334945146
Don't use `<a>` in translatable string in `theme-compat/comments.php`.
...
Add translator comments.
Props ramiy.
See #34503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35455 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:37:09 +00:00
Sergey Biryukov
bcc5046d40
Add translator comments for strings in `theme-compat/comments-popup.php`.
...
Props ramiy.
See #34503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35454 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 10:34:37 +00:00
Sergey Biryukov
64bf19ba40
Don't use `<a>` in translatable string in `wp-includes/ms-load.php`.
...
Add translator commment.
Props ramiy.
Fixes #34506 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35453 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 09:15:42 +00:00
Sergey Biryukov
4bca320a77
Don't use `<strong>` in translatable string in `wp-includes/nav-menu.php`.
...
Add translator commment.
Props ramiy.
Fixes #34505 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35452 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 08:56:36 +00:00
Sergey Biryukov
7e3cac2095
Don't use `<strong>` in translatable strings in `wp-signup.php`.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35451 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 08:51:24 +00:00
Drew Jaynes
a18f309761
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35450 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 05:46:53 +00:00
Drew Jaynes
cc8772262d
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35449 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 04:23:13 +00:00
Gary Pendergast
11ff4d07f9
Buttons: Add some vendor prefixes missed in [35422].
...
See #31459 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35448 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 03:12:44 +00:00
Sergey Biryukov
eb0a1074d7
Don't use `<strong>` in translatable strings in `wp-signup.php`.
...
Add translator commments.
Props ramiy.
Fixes #34502 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35447 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 02:08:03 +00:00
John Blackbourn
3eb0e3a4bb
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
git-svn-id: https://develop.svn.wordpress.org/trunk@35446 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 02:01:32 +00:00
Sergey Biryukov
bb045e4e3c
Replace a second instance of `<code>` in translatable string left in [35440].
...
Props ramiy.
See #34498 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35445 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:55:49 +00:00
Sergey Biryukov
dfd5f4c188
Don't use `<strong>` in translatable string in `wp-admin/includes/nav-menu.php`.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35444 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:36:53 +00:00
Sergey Biryukov
4c7f6dfad3
Don't use `<a>` in translatable strings in `wp-admin/includes/dashboard.php'.
...
Add translator commments.
Props ramiy.
Fixes #34501 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35443 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:32:17 +00:00
Sergey Biryukov
aee4a4e278
Don't use `<strong>` in translatable string in `wp-admin/includes/nav-menu.php`.
...
Add translator commment.
Props ramiy.
Fixes #34500 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35442 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 01:16:39 +00:00
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