Andrew Ozz
d8c52aba85
TinyMCE, inline link:
...
- Fix applying the changes when pressing the Enter key in Firefox. No longer inserts new paragraph in the editor.
- Fix empty check when getting text from the dialog.
- Always focus the URL field when opening the dialog.
- Add back the keydown events in the modal.
See #33301 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36743 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 00:51:41 +00:00
Mike Schroder
be3ba15eec
Media: Correct "Exception" typo in WP_Image_Editor_Imagick::strip_meta().
...
Exceptions are caught better if they're not excpeted.
Props joemcgill.
See #33642 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36742 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 21:57:26 +00:00
Boone Gorges
3d8cade8c8
Tests: Don't modify global state before checking whether to skip get_locale()
tests.
...
Introduced in [36740].
Props ocean90.
See #35965 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36741 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 20:28:07 +00:00
Boone Gorges
da128bc5e3
Add tests for get_locale()
.
...
Props realloc.
Fixes #35965 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36740 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 20:21:11 +00:00
Drew Jaynes
f9d01cc7de
Docs: Fix two typos in return descriptions for WP_Theme
private usort()
methods.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36739 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:22:30 +00:00
Drew Jaynes
9c0f474a5b
Docs: Add missing parameter and return notations in the DocBlock for WP_Theme::_name_sort_i18n()
, a private usort()
helper.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36738 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:20:59 +00:00
Drew Jaynes
135ec99ab5
Docs: Add missing parameter and return notations in the DocBlock for WP_Theme::_name_sort()
, a private usort()
helper.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36737 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:18:52 +00:00
Drew Jaynes
06eced0604
Docs: Add a missing description for the &$themes
parameter in the DocBlock for WP_Theme::sort_by_name()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36736 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:11:56 +00:00
Drew Jaynes
223b94a039
Docs: Correctly document parameters in the hook doc for the get_meta_sql
filter as individual parameters rather than an array.
...
When an array of parameters is passed to `do_action|apply_filters_ref_array`, parameters should be documented as individuals instead of as part of the whole.
Props sudar.
Fixes #35962 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36735 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:09:23 +00:00
Drew Jaynes
75451f7b59
Docs: Add missing parameter and return descriptions to the DocBlock for WP_Theme::__isset()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36734 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:03:41 +00:00
Dominik Schilling (ocean90)
6a9e3bca79
Docs: Add missing @since
tags to WP_Styles
properties/methods.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36733 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 14:38:55 +00:00
Dominik Schilling (ocean90)
1385200e86
Docs: In WP_Dependencies
add a changelog entry for the $group
parameter.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36732 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:49:55 +00:00
Dominik Schilling (ocean90)
a57a6ac60c
Docs: In WP_Dependencies
add a changelog entry to methods which were moved from WP_Scripts
to WP_Dependencies
.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36731 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:22:57 +00:00
Dominik Schilling (ocean90)
02c6565269
Docs: Document properties of WP_Scripts
and add missing @since
tags.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36730 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:04:51 +00:00
Dominik Schilling (ocean90)
276635f8a3
Docs: Use correct @since
tags for script enqueue functions.
...
See [4968], [3788].
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36729 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 12:49:37 +00:00
Drew Jaynes
c160fdddd3
Docs: Add missing @param
and @return
notations to the DocBlock for WP_Feed_Cache_Transient::save()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36728 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:26:17 +00:00
Drew Jaynes
9b231ff3f8
Docs: Use the correct variable name for the $post_ID
parameter in the DocBlock for wp_add_trashed_suffix_to_post_name_for_trashed_posts()
.
...
See #11863 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36727 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:24:03 +00:00
Drew Jaynes
aed2535da9
Docs: Standardize summaries for two new internal functions used to handle suffixing trashed posts.
...
Also adds a notation of private access to each.
See #11863 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36726 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:22:08 +00:00
Drew Jaynes
15f3acfbf5
Docs: Add some missing @param
notations to various DocBlocks in wp-includes/ms-deprecated.php.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36725 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:15:45 +00:00
Drew Jaynes
39af9db8a5
Docs: Add a missing @param
entry for the $user_login
parameter in the DocBlock for the deprecated is_site_admin()
function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36724 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 08:55:50 +00:00
Drew Jaynes
02c41c25e9
Docs: Add a missing @param
entry for the $len
parameter in the DocBlock for the deprecated generate_random_password()
function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36723 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 08:53:22 +00:00
John Blackbourn
48aa555ced
Refactor some janky URL tests into data providers for clarity and better error reporting.
...
See #35954
git-svn-id: https://develop.svn.wordpress.org/trunk@36722 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 02:10:32 +00:00
John Blackbourn
1ebe4658f1
Remove (or at least reduce) the need to reset common $_SERVER
variables before assertions or between tests, by introducing a method which automatically resets them during test setup.
...
See #35954
git-svn-id: https://develop.svn.wordpress.org/trunk@36721 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 02:08:47 +00:00
Andrew Ozz
825e2e45fe
TinyMCE textpattern: fix error when inserting <hr>
if the new paragraph is not direct child of the body.
...
See #33300 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36720 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 01:55:33 +00:00
Ella Iseulde Van Dorpe
37fda5a8b9
TinyMCE: textpattern: clean up
...
* Use editor.once instead of storing into variables.
* Add pattern for hr.
See #33300 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36719 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:51:01 +00:00
Sergey Biryukov
918da6f8c2
L10n: Add test for get_available_languages()
.
...
Props realloc.
Fixes #35950 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36718 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:38:25 +00:00
John Blackbourn
701f639e30
Correct some more tests which were using example.org
instead of WP_TESTS_DOMAIN
.
...
See #34000
git-svn-id: https://develop.svn.wordpress.org/trunk@36717 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:25:10 +00:00
Andrew Ozz
1cfdb05750
TinyMCE, inline link:
...
- Make sure the inline dialog is not showing under the advanced modal.
- Fix checking if the link node contains text.
- Fix undo levels so all actions can be undone and redone.
See #33301 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36716 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:20:54 +00:00
John Blackbourn
6cf0caf13e
Unify the initialisation of $_SERVER
variables during test bootstrap. This abstracts the (re-)initialisation into a function that can be used inside of tests too, before assertions are performed.
...
See #35954
git-svn-id: https://develop.svn.wordpress.org/trunk@36715 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:59:56 +00:00
John Blackbourn
fd03f6ec19
Canonical: Improve the method names and inline docs for canonical redirect tests.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@36714 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:55:57 +00:00
John Blackbourn
a9a61a2764
Docs: Correct the possible return types for WP_Dependencies::query()
.
...
See #32246
git-svn-id: https://develop.svn.wordpress.org/trunk@36713 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:25:47 +00:00
John Blackbourn
15245415c7
Docs: Improve the description of the get_object_taxonomies()
function. Uncertainty has no place in documentation.
...
See #32246
git-svn-id: https://develop.svn.wordpress.org/trunk@36712 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:24:10 +00:00
John Blackbourn
fd8e31e3b2
Move some assertions in HTTPS related tests, so failures that occur before the environment reset don't result in a contaminated test environment.
...
See #35954
git-svn-id: https://develop.svn.wordpress.org/trunk@36711 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:17:34 +00:00
Dominik Schilling (ocean90)
d30e49fa60
L10n: Add test for wp_get_pomo_file_data()
.
...
Props realloc.
See #35284 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36710 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 15:01:23 +00:00
Dominik Schilling (ocean90)
9a7488aaf8
Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective).
...
Props obrienlabs, thewanderingbrit.
Fixes #34887 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36709 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 12:52:33 +00:00
Pascal Birchler
a57b5c8ce5
Embeds: Use a more accessible way to initially hide the iframe.
...
This fixes a bug in Firefox where assets inside the iframe aren't being displayed because they have no computed style.
See #35894 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36708 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 10:22:43 +00:00
Drew Jaynes
eaaef09d83
Docs: Use a third-person singular verb in the DocBlock summary for wp_add_inline_script()
, introduced in [36633].
...
See #14853 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36707 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 05:13:14 +00:00
Drew Jaynes
816a3e058c
Docs: Standardize DocBlocks for two new WP_Scripts
methods, add_inline_script()
and print_inline_script()
, introduced in [36633].
...
See #14853 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36706 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 05:10:46 +00:00
Drew Jaynes
f90a37805d
Docs: Make a few syntactical improvements to the DocBlock for _wp_get_current_user()
, introduced in [36651].
...
Includes a cross reference from the DocBlock for `wp_get_current_user()`, which itself is pluggable, but the new internal function is not.
See #19615 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36705 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 05:06:39 +00:00
Drew Jaynes
4acfd64d93
Posts: Rename the $args
parameter in get_post_types_by_support()
to $feature
for better self-documentation.
...
See #34010 . See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36704 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 04:55:01 +00:00
Andrew Ozz
be75cdbe7c
TinyMCE, inline link dialog:
...
- Reset the inline dialog when canceling the advanced modal. If there is a link it should be on the first stage: follow/preview link.
- Fix tabbing in the inline edit dialog.
See #33301 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36703 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 03:47:46 +00:00
Mike Schroder
c55cf787b1
Post 4.5-beta1 version bump.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@36702 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 03:34:32 +00:00
Mike Schroder
bd5250eee7
4.5-beta1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@36701 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 01:48:51 +00:00
Mike Schroder
e2d2c45c6b
Media: Optimize Imagick settings for quality and filesize
...
- Resamples and sharpens larger images before resize.
- Uses imagick::FILTER_TRIANGLE for a smoother resize.
- Introduces `WP_Image_Editor_Imagick::thumbnail_image()` protected method to efficiently resize images. Similar to the functionality of Imagick's `thumbnailImage()`.
- Introduces `WP_Image_Editor_Imagick::strip_meta()` protected method and `image_strip_meta` filter that, by default, strip image profiles to reduce file size, while leaving color profiles intact.
See: #33642 , #30402 , #28634 .
Props: joemcgill, dnewton, mikeschroder.
git-svn-id: https://develop.svn.wordpress.org/trunk@36700 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 22:50:10 +00:00
Aaron Jorbin
46baace6f3
Revert r36696
...
This broke embeds. Needs a better solution to also make sure all queries from the REST API aren't broken.
see #35907 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36699 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 22:11:50 +00:00
Konstantin Obenland
b73a1c9aa9
Customize: Introduce Logo support for themes.
...
Allows a common theme feature to have a common implementation provided by core and available in a consistent location for users.
See https://make.wordpress.org/core/2016/02/24/theme-logo-support/
Props kwight, enejb, jeherve, bhubbard, samhotchkiss, zinigor, eliorivero, adamsilverstein, melchoyce, ryan, mikeschroder, westonruter, pento, karmatosed, celloexpressions, obenland.
See #33755 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36698 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 22:09:54 +00:00
Dominik Schilling (ocean90)
320e8b1642
I18N: Fix placeholders and add translator comments after [36695].
...
See #35705 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36697 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 21:48:02 +00:00
Aaron Jorbin
c379b5fc24
Permit sticky posts to affect the query in REST_REQUEST
...
Needed for https://github.com/WP-API/WP-API/issues/2210
Props danielbachhuber.
Fixes #35907 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36696 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 21:43:15 +00:00
jeremyfelt
95ba2c38c0
Multisite: Provide an "Edit user" link after adding a new user
...
Props codex-m, jeremyfelt.
Fixes #35705 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36695 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 21:42:02 +00:00
Drew Jaynes
138b55c16e
Embeds: Update embed template paths and messages in tests, missed in [36693].
...
Props ocean90
See #34561 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36694 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-24 21:20:41 +00:00