Drew Jaynes
ebfc39e754
Docs: Add a missing return description for `_get_custom_object_labels()`, a private core helper function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35503 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 15:46:49 +00:00
SergeyBiryukov
059eb46ddd
Menus: After [35450], use correct IDs in `$initial_meta_boxes`.
...
Props swissspidy.
Fixes #33925 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35502 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 10:55:01 +00:00
Weston Ruter
46778fe2b0
Customize: Simplify condition for returning `nav_menus_invalid_post_type` error.
...
Props swissspidy.
See #16075 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35501 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 07:28:36 +00:00
Weston Ruter
5084a0b28a
Customize: Add support for `post_type_archive` nav menu items.
...
Props celloexpressions, westonruter.
Fixes #16075 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35500 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 04:29:39 +00:00
Gary Pendergast
ff6e398b6f
Media Library: Allow longer labels in the filter dropdowns.
...
Props aaronrutley, AlbertoCT.
Fixes #32005 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35499 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 00:40:31 +00:00
Andrew Ozz
01e9de382e
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35498 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 00:21:23 +00:00
Sergey Biryukov
88c274fad8
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35497 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 21:35:17 +00:00
Sergey Biryukov
b077aecd6a
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35496 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 20:48:21 +00:00
DrewAPicture
d49c379d18
Docs: Fix two notations for the `$_wp_real_parent_file` global, which is an array.
...
Props NExt-Season.
Fixes #34443 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35495 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 20:12:02 +00:00
Andrea Fercia
f25e642086
Accessibility: Improve buttons focus and links style in the install screens.
...
Fixes #34530 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35494 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 17:58:15 +00:00
Andrea Fercia
29f271da44
Media: Improve form fields labels association in the Edit Media screen.
...
Fixes #34548 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35493 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 16:01:11 +00:00
Andrea Fercia
3b587473b5
WP oEmbed: Improve the Sharing dialog accessibility.
...
Improves ARIA attributes, focus handling, and constrains tabbing within the modal dialog.
Fixes #34484 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35492 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 15:48:37 +00:00
Andrew Ozz
d037ebdb31
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35491 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-03 00:18:07 +00:00
Drew Jaynes
d464e70d9c
Docs: Document use of the `$comment_status` global in the DocBlock for `WP_Comments_List_Table::handle_row_actions()`.
...
Props shimakyohsuke.
Fixes #34425 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35490 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-02 21:32:14 +00:00
Sergey Biryukov
ae68fbfcee
Docs: After [32654], remove duplicate `@param` tag in `WP_List_Table::set_pagination_args()` DocBlock.
...
Add `@since` tag.
Props bobbingwide.
See #32444 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35489 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-02 21:02:29 +00:00
Sergey Biryukov
88d63f743e
Build Tools: Add Microsoft Edge to Autoprefixer options.
...
Props christophherr.
Fixes #34550 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35488 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-02 20:43:55 +00:00
Gary Pendergast
c9f7e05f7b
Upgrades: Add support for `FULLTEXT` indexes to `dbDelta()`.
...
Props edirect24, mdawaffe, pento.
Fixes #14445 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35487 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 23:09:49 +00:00
Weston Ruter
3ef1e8194b
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35486 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 22:26:47 +00:00
Drew Jaynes
d74794fdde
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35485 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 15:41:28 +00:00
Sergey Biryukov
bce985a5d7
Docs: Correct `$post` parameter description for `display_post_states` filter.
...
Props grapplerulrich.
Fixes #34541 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35484 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 14:05:42 +00:00
Weston Ruter
204bad4685
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35483 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 06:39:50 +00:00
Sergey Biryukov
ca898ccbdb
Post List Table: Hierarchical post types should not default to sorting by date.
...
Regression introduced in [34728].
Props ellie.roepken.
Fixes #34473 . See #25493 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35482 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-01 00:48:36 +00:00
Andrew Ozz
f64bc40f69
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35481 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 22:48:08 +00:00
Scott Taylor
d74ab4b6df
Canonical: when `/%post_id%/` is the permalink structure, don't redirect IDs that match Auto Drafts.
...
Props SergeyBiryukov.
Fixes #29431 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35480 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:53:41 +00:00
Scott Taylor
bd7bf83886
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35479 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:49:26 +00:00
Scott Taylor
d944108b13
WP oEmbed: Improve height attribute sanitization
...
Props afercia, swissspidy.
Fixes #34527 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35478 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:38:07 +00:00
Scott Taylor
aa616b1b45
Admin Menu: allow more than one menu item to be added at the same priority/position.
...
Props chriscct7.
Fixes #23316 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35477 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:30:06 +00:00
Scott Taylor
df134d1763
Filesystem: in `WP_Filesystem_FTPext::parselisting()`, check for the existence of `$b['islink']` before using it.
...
Props jesin.
Fixes #27975 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35476 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:16:32 +00:00
Scott Taylor
957a800bd3
Comments: don't auto-close comments on draft posts.
...
Adds unit tests.
Props solarissmoke, MikeHansenMe, nacin, rachelbaker.
Fixes #20262 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35475 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:12:16 +00:00
Scott Taylor
14253d11b3
REST API: remove the `@internal` annotation from `rest_api_default_filters()`.
...
Props swissspidy, rachelbaker.
Fixes #34219 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35474 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:07:21 +00:00
Scott Taylor
96eda396a6
Nav Menus: add responsive styles for viewport between 768 and 1000px.
...
Props datta.parad, chriscct7.
Fixes #28912 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35473 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 20:04:04 +00:00
Sergey Biryukov
fbd0b570fc
Embeds: In `get_post_embed_html()`, move the optional `$post` argument after the required `$width` and `$height`.
...
Props swissspidy.
Fixes #34523 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35472 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:50:23 +00:00
Sergey Biryukov
29f940c5b2
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35471 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:42:01 +00:00
Sergey Biryukov
b0c7058037
Embeds: Fix typo in `oembed_request_post_id` filter DocBlock.
...
Props swissspidy.
See #34523 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35470 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 15:37:10 +00:00
Andrea Fercia
c01ce19d70
Dashboard: Activity widget CSS cleanup after [35420].
...
Props tyxla.
Fixes #34524 . See #33558 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35469 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 13:48:14 +00:00
Drew Jaynes
37145d5b88
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35468 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 13:15:01 +00:00
Gary Pendergast
2edd6a894b
Embeds: Revert [35083], as the PNG files ended up not being used in [35466].
...
See #34204 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35467 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 04:41:07 +00:00
Gary Pendergast
47e6c78d88
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35466 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-31 04:37:41 +00:00
Andrew Ozz
62c0557b90
Responsive images: few more inline docs fixes.
...
Props jaspermdegroot.
See #34430 .
git-svn-id: https://develop.svn.wordpress.org/trunk@35465 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-30 23:35:14 +00:00
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