Commit Graph

32694 Commits

Author SHA1 Message Date
Sergey Biryukov
05df76ff7b Cast 'illegal_user_logins' filter result to array.
See #27317.

git-svn-id: https://develop.svn.wordpress.org/trunk@35630 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-12 16:33:48 +00:00
Sergey Biryukov
0cff629050 Users: After [35189], make 'illegal_user_logins' check case-insensitive.
Props juliobox.
Fixes #27317.

git-svn-id: https://develop.svn.wordpress.org/trunk@35629 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-12 16:29:45 +00:00
Gary Pendergast
571084e0e1 Build: Prevent non-breaking spaces from accidentally being inserted into JavaScript files.
See #34658.



git-svn-id: https://develop.svn.wordpress.org/trunk@35628 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-12 12:04:55 +00:00
Gary Pendergast
6911ff1130 Pinking Shears: Remove some errant non-breaking spaces from a few JavaScript files.
Props francoisb.

Fixes #34658.



git-svn-id: https://develop.svn.wordpress.org/trunk@35627 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-12 12:03:51 +00:00
Scott Taylor
fbbf49ddc0 WordPress 4.4 Beta 4 version bump
git-svn-id: https://develop.svn.wordpress.org/trunk@35626 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-12 00:02:54 +00:00
Scott Taylor
c91db69e73 WordPress 4.4 Beta 4
git-svn-id: https://develop.svn.wordpress.org/trunk@35625 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 23:52:16 +00:00
Konstantin Obenland
46d6c9198e Template: Un-deprecate wp_title().
Before it can be deprecated we should identify alternative usages and define
a path forward for them.

See [35294], #31078.



git-svn-id: https://develop.svn.wordpress.org/trunk@35624 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 23:49:31 +00:00
Scott Taylor
a2b1dd9b01 Revert [35621], breaks XML-RPC unit tests.
See #30775.



git-svn-id: https://develop.svn.wordpress.org/trunk@35623 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 23:33:40 +00:00
Scott Taylor
b1d93d6d6a List Tables: after [34271], account for searches when calculating pagination.
Fixes #29870.



git-svn-id: https://develop.svn.wordpress.org/trunk@35622 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 23:13:46 +00:00
Scott Taylor
84aeb528fa Posts: allow empty posts to be deleted - $maybe_empty should not be set to true for updates.
Props DrewAPicture.
Fixes #30775.



git-svn-id: https://develop.svn.wordpress.org/trunk@35621 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 22:48:55 +00:00
Sergey Biryukov
69106a5971 I18N: In Translations::translate_entry(), account for multi-line strings in files with Windows line endings.
Fixes #22172.

git-svn-id: https://develop.svn.wordpress.org/trunk@35620 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 22:48:22 +00:00
Dominik Schilling (ocean90)
4f837ef5b6 Upgrade: Revert [34543] because of incomplete and incorrect functionality.
See #33932.
Fixes #34434.

git-svn-id: https://develop.svn.wordpress.org/trunk@35619 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 22:45:44 +00:00
Scott Taylor
688c155dd8 Users: in wp_insert_user(), when a password isn't provided and the user exists, ensure that the password isn't wiped out.
Adds unit test.

Props leewillis77.
Fixes #29880.


git-svn-id: https://develop.svn.wordpress.org/trunk@35618 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 22:30:27 +00:00
Scott Taylor
5462b6c6e9 Mail: after [33124], add unit tests.
Props mdawaffe.
Fixes #28039.


git-svn-id: https://develop.svn.wordpress.org/trunk@35617 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 22:04:59 +00:00
Scott Taylor
e540955d03 Help/About: unify tab styling.
Props afercia.
Fixes #34214.


git-svn-id: https://develop.svn.wordpress.org/trunk@35616 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 21:53:54 +00:00
Dominik Schilling (ocean90)
4d5fbe29f4 Comments: Dynamically update the document title text for all languages, not only English.
See [33821].
Fixes #33414.

git-svn-id: https://develop.svn.wordpress.org/trunk@35615 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 20:59:56 +00:00
Sergey Biryukov
de44d6b375 Remove non-translatable HTML code from the first post content in populate_network() and wp_install_defaults().
Add translator comment.

Props ramiy.
Fixes #34619.

git-svn-id: https://develop.svn.wordpress.org/trunk@35614 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 20:54:20 +00:00
Sergey Biryukov
242709ce40 Users: Only show the profile picture if 'Show Avatars' option in Discussion Settings is enabled.
Props ocean90.
See #32286.

git-svn-id: https://develop.svn.wordpress.org/trunk@35613 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 19:40:44 +00:00
Dominik Schilling (ocean90)
fbddde19eb REST API: Use correct @access tag for WP_REST_Request->get_parameter_order().
Props Frozzare.
Fixes #34624.

git-svn-id: https://develop.svn.wordpress.org/trunk@35612 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 19:38:24 +00:00
Dominik Schilling (ocean90)
ad8c043554 About: Don't use _n_noop() for singular/plural strings which provide no placeholder for a number.
This allows for using proper plural forms in languages with more than two forms.

Props SergeyBiryukov.
Fixes #34307.
See #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@35611 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 19:28:12 +00:00
Sergey Biryukov
7674a767ed Users: Add user's Gravatar to 'About the user' section on user profile page.
Add `user_profile_picture_description` filter for the description text displayed under the Gravatar.

Props carolinegeven, obrienlabs, SergeyBiryukov.
Fixes #32286.

git-svn-id: https://develop.svn.wordpress.org/trunk@35610 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 19:27:11 +00:00
Andrea Fercia
5310c447b8 Accessibility: Improve form labels and descriptions for the Tags meta box in the Edit Post screen.
Fixes #34627.

git-svn-id: https://develop.svn.wordpress.org/trunk@35609 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 15:23:10 +00:00
Weston Ruter
c854c33f82 Customize: Prevent multi-line checkbox control labels from wrapping under checkbox.
Props bordoni.
Fixes #34607.


git-svn-id: https://develop.svn.wordpress.org/trunk@35608 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 09:36:53 +00:00
Andrew Ozz
de759f047f TinyMCE:
- Fix the inline toolbar on images in iOS, move it out of the way so the default inline toolbar is not over it.
- Fix selecting images on touch in the editor (iOS Safari fails to select them most of the time).

Fixes #34557.

git-svn-id: https://develop.svn.wordpress.org/trunk@35607 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 03:26:59 +00:00
Gary Pendergast
8f83c08385 Emoji: Use twemoji in browsers that don't support Unicode 8 emoji.
Some less advanced browsers are yet to add support for the important advances made in Unicode 8. Let's make ensure that their users can experience emoji in their full glory.

See #33592.



git-svn-id: https://develop.svn.wordpress.org/trunk@35606 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 02:24:40 +00:00
Andrea Fercia
80569cc816 Accessibility: improvements for the taxonomies Quick Edit form.
Changes the "Cancel" and "Update" controls in buttons for better semantics and
accessibility. On cancel and successful saving, moves focus back to the term title
to avoid a focus loss. Dispatches error and success messages to `wp.a11y.speak`
to give assistive technologies users an audible feedback.

Patch prepared at #wpcdit, first Italian WordPress Contributor Day.

Props garusky, chiara_09.
Fixes #34613.

git-svn-id: https://develop.svn.wordpress.org/trunk@35605 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-11 00:23:15 +00:00
Drew Jaynes
18dd8595cf Permalinks: Use "Plain" instead of "None" for the ?p-###, which is still a valid permalink structure, just not a "pretty" one.
Permalinks are enabled by default (where supported) since in 4.2. When that change was made, it rended the "Default" label (previous to [35599]) inaccurate.

Props Ankit-K-Gupta.
Fixes #34509.


git-svn-id: https://develop.svn.wordpress.org/trunk@35604 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 22:18:16 +00:00
Dominik Schilling (ocean90)
66db054bae Passwords: Disable hidden input fields on profile/user edit page.
Prevents an issue where password helpers would autofill the hidden password fields and inadvertently causing password changes when editing other fields on the profile page.

Props adamsilverstein.
Fixes #33699.

git-svn-id: https://develop.svn.wordpress.org/trunk@35603 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 20:40:18 +00:00
Andrew Ozz
bf8e1083de TinyMCE: prevent resize handles in newer IE when inserting a wpView.
Fixes #29400.

git-svn-id: https://develop.svn.wordpress.org/trunk@35602 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 19:32:01 +00:00
Drew Jaynes
fec164e485 Docs: Remove an empty line from the hook doc for the wp_calculate_image_srcset filter, introduced in [35592].
Props kraftbj.
See #34612.


git-svn-id: https://develop.svn.wordpress.org/trunk@35601 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 17:14:33 +00:00
Dion Hulse
bea9afed7d Update random_compat to master.
Clarifies strings, Merges [35587] upstream.
See #34409, #28633


git-svn-id: https://develop.svn.wordpress.org/trunk@35600 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 11:59:15 +00:00
Drew Jaynes
530d10e330 Permalinks: Rename the "Default" permalink structure to "None" as permalinks have been enabled by default (where supported) since 4.2.
Updates help tabs and contextual text to match.

Props johnbillion, DrewAPicture.
Fixes #34509.


git-svn-id: https://develop.svn.wordpress.org/trunk@35599 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 06:57:05 +00:00
Drew Jaynes
092c62e738 Docs: Move an inline comment that was preventing the hook docs for the user_has_cap filter from being parsed.
Props ocean90.
Fixes #34639.


git-svn-id: https://develop.svn.wordpress.org/trunk@35598 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 06:44:51 +00:00
Andrew Ozz
bcbe8ae224 TinyMCE: always remove trailing <br> added by WebKit browsers to the clipboard.
Fixes #34642.

git-svn-id: https://develop.svn.wordpress.org/trunk@35597 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 04:31:04 +00:00
Gary Pendergast
845aa2d01e Emoji: Add some new flags, and a handful from Unicode 8.0.
Including the following that should be used as often as possible:

U+1F1E6 U+1F1FA Flag for Australia
U+1F3CF Cricket Bat and Ball
U+1F32F Burrito

See #33592.



git-svn-id: https://develop.svn.wordpress.org/trunk@35596 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 03:34:37 +00:00
Andrew Ozz
d51aa96069 Responsive images: fix args order and streamline the srcset and sizes generation and better inline docs in get_header_image_tag().
See #21389.

git-svn-id: https://develop.svn.wordpress.org/trunk@35595 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 01:58:38 +00:00
Andrew Ozz
cc3e1611bc Responsive images: add template helper functions to generate the tag for a (responsive) header image that includes srcset and sizes attributes.
Props Otto42, joemcgill, DH-Shredder, azaozz.
Fixes #21389.

git-svn-id: https://develop.svn.wordpress.org/trunk@35594 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 01:16:16 +00:00
Andrea Fercia
62c7da8710 Comments: in comment_form() when replying to a comment ensure to set focus on the first focusable form element, regardless of what that form element is.
Props azaozz.
See #29974.

git-svn-id: https://develop.svn.wordpress.org/trunk@35593 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-10 00:43:01 +00:00
Drew Jaynes
a21b20c3f6 Docs: Fix some formatting in the hook doc for the wp_calculate_image_srcset filter and clarify the summary.
See #34612.


git-svn-id: https://develop.svn.wordpress.org/trunk@35592 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 23:33:06 +00:00
Andrew Ozz
57f41cc1ec Responsive images: properly arrange the parameters for the wp_calculate_image_srcset filter and add fix the inline documentation.
Props joemcgill.
Fixes #34612.

git-svn-id: https://develop.svn.wordpress.org/trunk@35591 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 23:29:56 +00:00
Konstantin Obenland
a6a2159c7d Menu: Continue to use post dashicon as default menu icon.
Prevents a bug where custom post types without a specified menu icon would
adopt the menu icon of the preceding post type. Introduced in [33723].

See #16865.
Fixes #34637.



git-svn-id: https://develop.svn.wordpress.org/trunk@35590 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 21:59:11 +00:00
Andrew Ozz
b31e52a6e8 TinyMCE: update the keyboard shortcuts for the link dialog in the wplink plugin. Fixes Ctrl + Alt + A on MacOS.
Fixes #34636.

git-svn-id: https://develop.svn.wordpress.org/trunk@35589 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 21:31:48 +00:00
Boone Gorges
c4e06bbb22 Fix documentation typo introduced in [35585].
Props swissspidy, barryceelen.
See #34626.

git-svn-id: https://develop.svn.wordpress.org/trunk@35588 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 14:02:45 +00:00
Dion Hulse
645071345f Random_Compat: Bump the OpenSSL requirement for windows servers to 5.4.1 while the upstream issue is resolved.
Before PHP 5.4.1 the OpenSSL extension used a OpenSSL provided function which is seemingly slow under some circumstances, PHP 5.4.1+ uses the windows crypto API.

Fixes #34409


git-svn-id: https://develop.svn.wordpress.org/trunk@35587 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 04:49:53 +00:00
Dion Hulse
13000b7036 Fix a typo in a docblock
git-svn-id: https://develop.svn.wordpress.org/trunk@35586 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:37:08 +00:00
Boone Gorges
c13a263830 When deleting a term, delete its metadata as well.
Props barryceelen.
Fixes #34626.

git-svn-id: https://develop.svn.wordpress.org/trunk@35585 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:35:56 +00:00
Weston Ruter
01b19a6345 Customize: Fix focus and autofocus on nav_menu_item controls.
Embed the `nav_menu_item` control not only when the contained `nav_menu` section expands, but also if the control was autofocused (via the `autofocus[control]` query param). Also applies change from [33596] to work-around a broken `:focusable` selector in jQuery UI.

See #33258.
Fixes #34629.


git-svn-id: https://develop.svn.wordpress.org/trunk@35584 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 03:13:09 +00:00
Weston Ruter
0e39b86500 Customize: Fix broken unit test for WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item().
Fixes issue in [35580] which caused unit tests to fail while run under multisite.

Fixes #32812.



git-svn-id: https://develop.svn.wordpress.org/trunk@35583 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 02:56:01 +00:00
Dion Hulse
94ed2c31ba Upgrade: Force disable the rest-api plugin on upgrade to 4.4 unless it's beta5+. Previous versions of the plugin were not configured correctly to gradefully degrade during update which would cause fatal errors.
Props wonderboymusic.
Fixes #34415


git-svn-id: https://develop.svn.wordpress.org/trunk@35582 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 01:21:29 +00:00
Weston Ruter
c5e342b9f9 Customize: Fix sub-nav menu items from appearing to bump to root level in preview upon saving.
This issue would appear when the parent nav menu item was also newly-inserted. The issue was only apparent in the prevew, as the actual data saved was correct. The `menu_item_parent` properties of the saved sub-nav menu items needed to get updated to refer to the newly-inserted parent `nav_menu_item` post IDs, as opposed to retaining the placeholder IDs.

Fixes #34628.


git-svn-id: https://develop.svn.wordpress.org/trunk@35581 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-09 01:18:32 +00:00