Commit Graph

32746 Commits

Author SHA1 Message Date
Gary Pendergast
c0d9fea512 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@35532 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 23:42:38 +00:00
Dominik Schilling (ocean90)
3effd276e0 After [35518] define $_POST['post_view'] in test_dont_process_terms_if_taxonomy_does_not_allow_show_on_quick_edit().
See #34577.

git-svn-id: https://develop.svn.wordpress.org/trunk@35531 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 23:05:03 +00:00
Scott Taylor
46a7884f1c Bump 4.4-beta3 (again, again)
git-svn-id: https://develop.svn.wordpress.org/trunk@35530 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 22:02:46 +00:00
Scott Taylor
88c4a6bee2 4.4-beta3 (again)
git-svn-id: https://develop.svn.wordpress.org/trunk@35529 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:59:52 +00:00
Scott Taylor
d06c31d70c Bump 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35528 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:55:58 +00:00
Sergey Biryukov
1631a99336 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35527 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:48:43 +00:00
Scott Taylor
ea41755c4b Bump 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35526 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:46:04 +00:00
Scott Taylor
4dbba7ec68 4.4-beta3
git-svn-id: https://develop.svn.wordpress.org/trunk@35525 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:45:31 +00:00
Andrew Ozz
611ddaf9bf Responsive images: do not generate srcset for GIFs that are inserted at full size. Prevents breaking animated GIFs.
Props joemcgill.
Fixes #34528.

git-svn-id: https://develop.svn.wordpress.org/trunk@35524 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:43:44 +00:00
Andrea Fercia
89227eebe3 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35523 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:43:00 +00:00
Dominik Schilling (ocean90)
05f93d500d Revert [35372] because of possible encoding issues, needs more investigation.
See #10373.

git-svn-id: https://develop.svn.wordpress.org/trunk@35522 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:38:43 +00:00
Aaron Jorbin
22f3852c84 Bump grunt-contrib-compress
Upsteam changelog: change to verbose output dependency updates Archiver 0.16

See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35521 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:35:07 +00:00
Aaron Jorbin
f0bd796c15 Bump grunt-postcss
See #34177


git-svn-id: https://develop.svn.wordpress.org/trunk@35520 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:31:24 +00:00
Sergey Biryukov
1f59a960d2 Adjust some of the strings added in [35508].
Fixes #34519.

git-svn-id: https://develop.svn.wordpress.org/trunk@35519 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:31:05 +00:00
Dominik Schilling (ocean90)
5ee5029109 List Tables: Define the global $mode variable for Quick Edit savings.
Also remove two unused global imports for `$mode`.

Fixes #34577.

git-svn-id: https://develop.svn.wordpress.org/trunk@35518 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:28:55 +00:00
Sergey Biryukov
8cbd66ca86 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35517 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:27:41 +00:00
Andrea Fercia
3ffaa37727 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35516 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:26:58 +00:00
Boone Gorges
7f79d26ca5 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35515 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:23:28 +00:00
Scott Taylor
dc3f5a0cf5 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35514 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:22:21 +00:00
Aaron Jorbin
eef98a3495 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



git-svn-id: https://develop.svn.wordpress.org/trunk@35513 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:21:00 +00:00
Boone Gorges
c8dd2d480d 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@35512 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:09:01 +00:00
Drew Jaynes
74b68afa3f 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35511 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:52:13 +00:00
Drew Jaynes
d09f6ef81c 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35510 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:28:31 +00:00
Scott Taylor
75673887d1 XMLRPC: ensure that empty strings are not passed as null, which will then fail isset()
Props solarissmoke.
Fixes #16980.


git-svn-id: https://develop.svn.wordpress.org/trunk@35509 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 18:07:45 +00:00
Aaron Jorbin
395bc6e8d8 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



git-svn-id: https://develop.svn.wordpress.org/trunk@35508 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:59:35 +00:00
Scott Taylor
48501d6658 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35507 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:53:40 +00:00
Scott Taylor
ee98fd84bb 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35506 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 17:46:41 +00:00
Sergey Biryukov
00ee9a62d1 Add missing @group to Tests_Rel_No_Follow.
See #9959.

git-svn-id: https://develop.svn.wordpress.org/trunk@35505 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 16:35:02 +00:00
Drew Jaynes
14cd5cf3ed 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35504 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 16:02:12 +00:00
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