Commit Graph

28966 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90) e61db3350d Update POT file for Twenty Fourteen.
props SergeyBiryukov.
see #30972, #30603.

git-svn-id: https://develop.svn.wordpress.org/trunk@31501 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 15:15:11 +00:00
Dominik Schilling (ocean90) e1f97b4b9d Revert [30790] and update POT file for Twenty Fifteen.
see #30972, #30603.

git-svn-id: https://develop.svn.wordpress.org/trunk@31500 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 13:42:46 +00:00
Dominik Schilling (ocean90) eefd9e3a4c i18n tools: Delete `data/not-gettexted-0-work.php`.
In NotGettextedTest this file is a copy of `data/not-gettexted-0.php` which will be removed after the test has finished.

git-svn-id: https://develop.svn.wordpress.org/trunk@31499 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 12:55:34 +00:00
Dominik Schilling (ocean90) 684b992597 i18n tools: Improve support for multi-line comments in StringExtractor.
props SergeyBiryukov.
fixes #30972.

git-svn-id: https://develop.svn.wordpress.org/trunk@31498 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 12:46:12 +00:00
Sergey Biryukov 7f69e6430b Themes: Add feedback for screen readers when search results are changed.
props obenland, joedolson.
see #26600.

git-svn-id: https://develop.svn.wordpress.org/trunk@31497 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 10:14:45 +00:00
Sergey Biryukov 579c7cd3bf Remove a stray single quote in `wp_insert_post()` documentation.
see #31359.

git-svn-id: https://develop.svn.wordpress.org/trunk@31496 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 09:49:38 +00:00
SergeyBiryukov 18ffeef266 Themes: Update the theme count when searching for installed themes, like we do on Add Themes screen.
props afercia.
see #26600.

git-svn-id: https://develop.svn.wordpress.org/trunk@31495 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 09:40:01 +00:00
Scott Taylor 87717c1218 Make sure the `grid` build does not load files from the `views` build.
Fix the errant back-compat assignment for `wp.media.view.Frame`.

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31494 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 08:47:01 +00:00
Scott Taylor 2b4ce0722a Make sure the `audio-video` build does not load files from the `views` build.
See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31493 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 08:28:30 +00:00
Scott Taylor d7af3e8bf0 Media JS files:
* specify globals in more files
* add missing `wp.media.*` namespace docs
* add doc blocks to files that had none

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31492 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 07:24:45 +00:00
Scott Taylor eabe8e42bb Specify globals in media JS files - it is important to denote where we are diverging from dependency injection.
See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31491 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 06:55:25 +00:00
Scott Taylor b8f24489bd After [30120], in media JS files, move from `@constructor` to `@class` annotations as per JSDoc preferred nomenclature: http://usejsdoc.org/tags-class.html
See #28510, #30193.


git-svn-id: https://develop.svn.wordpress.org/trunk@31490 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 06:27:45 +00:00
Scott Taylor 96f4fc7091 The `grid` build should not load `views/edit-image`, it already exists in the `views` build.
`views/edit-image.js` doesn't need to set a `render` method if it doesn't override its parent.

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31489 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 06:20:07 +00:00
Scott Taylor 4fe668e53a JSHint after [31487].
git-svn-id: https://develop.svn.wordpress.org/trunk@31488 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 05:56:03 +00:00
Scott Taylor e2bc047528 Restore the changes I made in [31016] for chromeless Vimeo that were missed in [31373].
Make sure that the build file for `grid` doesn't load `views/media-details.js`, it already exists in the `audio-video` build.

See #29267, #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31487 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 05:38:00 +00:00
Drew Jaynes c3cb2ab03b Clarify and complete default argument documentation for `wp_insert_post()`.
Props atimmer, SergeyBiryukov.
Fixes #31359.


git-svn-id: https://develop.svn.wordpress.org/trunk@31486 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 00:55:46 +00:00
Andrew Ozz 928ba6848c TinyMCE wpView: don't insert nested paragraphs when inserting embeddable URLs. Props iseulde, fixes #29526.
git-svn-id: https://develop.svn.wordpress.org/trunk@31485 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-20 23:16:34 +00:00
Sergey Biryukov 34fca78f68 Fix typo in [30760].
props afercia.
fixes #31393.

git-svn-id: https://develop.svn.wordpress.org/trunk@31484 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-20 17:08:32 +00:00
Sergey Biryukov 7d445a3e00 When creating a new user, pasting a password should update the password strength indicator.
props dipesh.kakadiya.
fixes #31226.

git-svn-id: https://develop.svn.wordpress.org/trunk@31483 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-20 13:04:03 +00:00
Drew Jaynes 747f6589a1 Add an entry to the changelog for `twentyfourteen_post_thumbnail()` noting that it was made 'pluggable'.
Fixes #31374.


git-svn-id: https://develop.svn.wordpress.org/trunk@31482 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-20 10:34:59 +00:00
Lance Willett b30afb0349 Twenty Fourteen: make `twentyfourteen_post_thumbnail()` pluggable.
Fixes #31374, props wordpressorru.


git-svn-id: https://develop.svn.wordpress.org/trunk@31481 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-19 19:42:24 +00:00
Sergey Biryukov 45d5c5ddbe Remove `src` from duplicate hook comments for `get_avatar` and `get_avatar_data`.
see #21195.

git-svn-id: https://develop.svn.wordpress.org/trunk@31480 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-19 14:58:40 +00:00
Sergey Biryukov 2175fbb21d Fix a typo in duplicate hook comment.
see [31107], #21195.

git-svn-id: https://develop.svn.wordpress.org/trunk@31479 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-19 14:55:34 +00:00
Boone Gorges 94791cd8f2 Respect 'default_option_' filters during early sanity checks in `add_option()` and `update_option()`.
`add_option()` and `update_option()` both call `get_option()` to compare the
value passed to the function with any existing value for the given option name.
When a `'default_option_'` filter is in place to change the default value of
an option, `add_option()` and `update_option()` ought to check against the
filtered value, rather than a hardcoded `false`, in order to determine whether
a prior value exists.

Props GregLone, tyxla.
Fixes #31047.

git-svn-id: https://develop.svn.wordpress.org/trunk@31473 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-18 19:13:43 +00:00
Aaron Jorbin f5e1e43410 Restore PHP 5.2 to Travis CI
Travis restored PHP 5.2 support late last week.

upstream: https://github.com/travis-ci/travis-ci/issues/3152

Props netweb for the heads up
Fixes #31244 



git-svn-id: https://develop.svn.wordpress.org/trunk@31472 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-18 17:46:18 +00:00
Andrew Ozz 0d0a97734d Add SVN eol-style = native where missing.
git-svn-id: https://develop.svn.wordpress.org/trunk@31471 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-17 21:36:18 +00:00
Andrew Ozz 4bbf98bf74 Add eol-style property and normalize EOLs.
git-svn-id: https://develop.svn.wordpress.org/trunk@31470 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-17 19:33:05 +00:00
Boone Gorges 086e03e8e2 Improved handling of expectedDeprecated and expectedIncorrectUsage annotations in unit tests.
* Do the `expectedDeprecated()` check in `assertPostConditions()` instead of `tearDown()`. Previously, `fail`ing inside of `tearDown()` was causing the rest of the teardown process to be aborted, resulting in inter-test leakage.
* Collect all `expectedDeprecated` and `expectedIncorrectUsage` annotations in an entire method and display them all when `fail`ing, instead of showing only the first one.

Props jdgrimes.
Fixes #31362.

git-svn-id: https://develop.svn.wordpress.org/trunk@31469 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-17 16:11:09 +00:00
Boone Gorges 8bf5fce78f Improve 'orderby' syntax for `WP_Comment_Query`.
Since [29027], `WP_Query` has supported an array of values for the `$orderby`
parameter, with field names as array keys and ASC/DESC as the array values.
This changeset introduces the same syntax to `WP_Comment_Query`.

We leverage the new support for multiple ORDER BY clauses to fix a bug that
causes comments to be queried in an indeterminate order when sorting by the
default `comment_date_gmt` and comments share the same value for
`comment_date_gmt`. By always including a `comment_ID` subclause at the end of
the ORDER BY statement, we ensure that comments always have a unique fallback
for sorting.

This changeset also includes improvements paralleling those introduced to
`WP_Query` in [31312] and [31340], which allow `$orderby` to accept array keys
from specific `$meta_query` clauses. This change lets devs sort by multiple
clauses of an associated meta query. See #31045.

Fixes #30478. See #31265.

git-svn-id: https://develop.svn.wordpress.org/trunk@31467 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-16 14:09:40 +00:00
Andrew Ozz 0dd81fe134 TinyMCE wpView: fire `nodeChanged` when an embedded iframe is resized so we can adjust the editor height and other UI components. Props iseulde, fixes #30646.
git-svn-id: https://develop.svn.wordpress.org/trunk@31466 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-15 18:18:06 +00:00
Dominik Schilling (ocean90) 73a85825fb `grunt autoprefixer` for [31333].
see ##29820.

git-svn-id: https://develop.svn.wordpress.org/trunk@31465 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-15 12:17:41 +00:00
Lance Willett 9e3fffdf09 Bundled themes: update CSS rules for `.screen-reader-text` to be consistent with current accessibility guidelines. Fixes #31279.
git-svn-id: https://develop.svn.wordpress.org/trunk@31464 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 17:28:19 +00:00
Drew Jaynes c77e726eef Add inline documentation to clarify the reasoning behind the various conditions that control how WP is loaded.
Props mattheweppelsheimer for the initial patch.
Fixes #30935.


git-svn-id: https://develop.svn.wordpress.org/trunk@31463 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 11:38:41 +00:00
Sergey Biryukov 9b463c5a45 Don't try to read a non-existent Exif:Title tag in `wp_read_image_metadata()`, as it's not a part of the Exif standard.
props tyxla.
fixes #31043.

git-svn-id: https://develop.svn.wordpress.org/trunk@31462 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 09:13:36 +00:00
Drew Jaynes 0653d029f2 Update the descriptions for `transition_post_status()` and the `{$new_stats}_{$post->post_type}` hook with more information about the expected behavior of transitioning post statuses.
In some cases, the values of `$old_status` and `$new_status` may be the same thing before and after a post status is "transitioned". An example of this would be the scenario where a published post is being updated: the status before and after the update both equal 'publish'.

Further, the documentation clarifies that if the intent is to only execute code when initially transitioningto a post status from something else, the 'transition_post_status' hook should be used instead of one of the dynamic hooks to avoid confusion.

Props Idealien for the initial patch.
Fixes #31099.


git-svn-id: https://develop.svn.wordpress.org/trunk@31461 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 09:10:29 +00:00
Sergey Biryukov ef04afe4bf Customizer: Remove margin for hidden controls.
props dlh.
fixes #31330.

git-svn-id: https://develop.svn.wordpress.org/trunk@31460 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 08:45:50 +00:00
Sergey Biryukov 5aac59d178 Replace hardcoded usage of `comment-page` with the comment pagination base.
props johnbillion, SergeyBiryukov, webord.
fixes #18084.

git-svn-id: https://develop.svn.wordpress.org/trunk@31459 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 03:47:02 +00:00
Boone Gorges 4138275df9 More careful type conversion in `WP_Query` `is_*()` methods.
`is_array( 1, '1-foo' )` returns true, which means that `is_page( 1 )`
was returning true when on a page with the slug '1-foo'. We avoid this odd
behavior by casting the queried object ID to a string before testing against
the value passed to the conditional function.

This also helps to avoid a problem where an arbitrary value for `$page` would
cause `is_page( $page )` to return true if the query had been manipulated by
a plugin to show that the current page's ID is 0.

Props boonebgorges, r-a-y, nunomorgadinho, wonderboymusic, clifgriffin.
Fixes #24674.

git-svn-id: https://develop.svn.wordpress.org/trunk@31458 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-14 02:08:46 +00:00
Sergey Biryukov 78b02ec722 Use more descriptive names for `register_post_type()` and `register_taxonomy()` tests with too long and too short names.
see #31134, #31135.

git-svn-id: https://develop.svn.wordpress.org/trunk@31457 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 23:33:56 +00:00
Sergey Biryukov b52cb0346e Toolbar: Remove title attributes from 'About WordPress', 'Add New', and 'My Account' items.
props afercia.
fixes #31324.

git-svn-id: https://develop.svn.wordpress.org/trunk@31456 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 20:19:09 +00:00
Sergey Biryukov 35ae49f843 Toolbar: Add a label for search field on front-end.
props afercia.
fixes #31323.

git-svn-id: https://develop.svn.wordpress.org/trunk@31455 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 19:20:53 +00:00
Lance Willett fc35ef690b Bundled themes: remove URLs from reset credits. Closes #30764.
git-svn-id: https://develop.svn.wordpress.org/trunk@31454 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 18:01:30 +00:00
Lance Willett 27ed2ce07c Bundled themes: replace `array_shift()` with `current()` for performance.
Props SergeyBiryukov, fixes #31260.

git-svn-id: https://develop.svn.wordpress.org/trunk@31453 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 17:51:22 +00:00
Boone Gorges 487d65ad78 Provide a secondary sort order for `wp_get_archives()` when `type=postbypost`.
Sorting by post_date alone can cause indeterminacy problems on different
versions of MySQL when post_date ties need to be broken. Using `ID` as a
secondary sort ensures that the order is always determinate.

Props herbmillerjr for an initial patch.
Fixes #30480.

git-svn-id: https://develop.svn.wordpress.org/trunk@31452 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 16:59:51 +00:00
Boone Gorges 0efce8c89c Improve documentation for return value of `wp_list_pluck()`.
`wp_list_pluck()` will preserve the original array keys if no `$index_key`
parameter is provided. This changeset updates the documentation accordingly.

Props adamsilverstein.
Fixes #31316.

git-svn-id: https://develop.svn.wordpress.org/trunk@31451 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 16:51:55 +00:00
John Blackbourn f4d6d4e66b Return a `WP_Error` if an empty name is provided when registering a post type.
Fixes #31134
Props tyxla, MikeHansenMe


git-svn-id: https://develop.svn.wordpress.org/trunk@31450 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 16:42:36 +00:00
John Blackbourn 22fc19e06d Return a `WP_Error` if an empty name is provided when registering a taxonomy.
Fixes #31135
Props tyxla, MikeHansenMe


git-svn-id: https://develop.svn.wordpress.org/trunk@31449 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 16:26:37 +00:00
Sergey Biryukov 83d5751a33 Use `get_admin_url()` to get the correct My Sites URL without calling `switch_to_blog()` directly.
props ocean90.
see #31314.

git-svn-id: https://develop.svn.wordpress.org/trunk@31448 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 12:52:10 +00:00
Sergey Biryukov bde2a220d9 Avoid a PHP notice in `wp_install_language_form()` and `wp_dropdown_languages()` if the language doesn't have a ISO 639-1 code.
props barrykooij.
fixes #31319.

git-svn-id: https://develop.svn.wordpress.org/trunk@31447 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 11:22:38 +00:00
Sergey Biryukov 997b9733c9 Use correct default values for some admin template functions.
props ipm-frommen.
fixes #31308.

git-svn-id: https://develop.svn.wordpress.org/trunk@31446 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-13 06:50:49 +00:00