Dominik Schilling
a782df35d7
Bump 4.0 branch to version 4.0.7.
...
Built from https://develop.svn.wordpress.org/branches/4.0@33575
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 11:52:35 +00:00
Dion Hulse
b5a80e84fe
Fix `do_shortcode('<[shortcode]')` edge case.
...
Props miqrogroove.
Merges [33499] to the 4.0 branch.
See #33116 .
Built from https://develop.svn.wordpress.org/branches/4.0@33565
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 07:18:33 +00:00
Dominik Schilling
e8797fc7d0
Comments: IDs are integers.
...
Merge of [33555] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@33558
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 04:59:53 +00:00
Dominik Schilling
acd70d39a4
Themes: Fix some broken links in the legacy theme preview.
...
Merge of [33549] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@33551
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 04:57:43 +00:00
Dominik Schilling
9e21a4aaf5
Customizer: Use `hash_equals()` for widgets.
...
Merge of [33535] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@33538
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 04:53:08 +00:00
Dominik Schilling
30df27a0c7
Nav menus: Consistent titles in widgets.
...
Merge of [33529] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@33531
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-03 20:58:37 +00:00
Andrew Ozz
5b23ca5d93
Backport r33469 and r33470 to 4.0.
...
See #33106 .
Built from https://develop.svn.wordpress.org/branches/4.0@33522
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-31 01:44:36 +00:00
Gary Pendergast
b3356b6f77
Bump 4.0 branch to version 4.0.6.
...
Built from https://develop.svn.wordpress.org/branches/4.0@33397
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 11:07:33 +00:00
Gary Pendergast
60eb789f93
Shortcodes: Improve the reliablity of shortcodes inside HTML tags.
...
Merge of [33359] to the 4.0 branch.
Props miqrogroove.
See #15694 .
Built from https://develop.svn.wordpress.org/branches/4.0@33381
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 04:50:37 +00:00
Gary Pendergast
5d196f2b09
Capabilities: When creating an auto-draft, ensure that the current user still has permission to do so.
...
Merge of [33357] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@33376
git-svn-id: http://core.svn.wordpress.org/branches/4.0@33347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 04:01:36 +00:00
Dominik Schilling
9e426bbb49
4.0.5 version bumps.
...
Built from https://develop.svn.wordpress.org/branches/4.0@32436
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 23:28:36 +00:00
John Blackbourn
6dbcbfae60
WPDB: Allow queries to reference tables in the dbname.tablename format, and allow table names to contain any valid character, rather than just ASCII.
...
Merge of [32368] to the 4.0 branch.
Props pento, willstedt for the initial patch.
See #32090 .
Built from https://develop.svn.wordpress.org/branches/4.0@32413
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 21:04:34 +00:00
Dominik Schilling
c9168e3a54
WPDB: When sanity checking query character sets, there's no need to check queries that don't return user data.
...
Merges [32374] to the 4.0 branch.
props pento.
see #32104 .
Built from https://develop.svn.wordpress.org/branches/4.0@32403
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 20:04:38 +00:00
Helen Hou-Sandí
69de48fd72
The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.
...
Merges [32375] to the 4.0 branch.
props pento.
See #32204 .
Built from https://develop.svn.wordpress.org/branches/4.0@32397
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 19:43:37 +00:00
Michael Adams
7e35f92679
WPDB: When checking that a string can be sent to MySQL, we shouldn't use `mb_convert_encoding()`, as it behaves differently to MySQL's character encoding conversion.
...
Merge of [32364] to the 4.0 branch.
Props mdawaffe, pento, nbachiyski, jorbin, johnjamesjacoby, jeremyfelt.
See #32165 .
Built from https://develop.svn.wordpress.org/branches/4.0@32388
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 19:09:39 +00:00
Andrew Ozz
d6df175451
TinyMCE: work-around a bug in the tags matching regex.
...
For 4.0.
Built from https://develop.svn.wordpress.org/branches/4.0@32372
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 05:34:38 +00:00
Gary Pendergast
4fe0310d7a
4.0:
...
- WPDB: Sanity check that any strings being stored in the DB are not too long to store correctly.
- When upgrading, remove any suspicious comments.
Built from https://develop.svn.wordpress.org/branches/4.0@32313
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-27 17:17:37 +00:00
Gary Pendergast
4b6fa85282
4.0 branch is now 4.0.4.
...
Built from https://develop.svn.wordpress.org/branches/4.0@32302
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-27 14:11:37 +00:00
Helen Hou-Sandí
8254664893
The 4.0 branch is now 4.0.3.
...
Built from https://develop.svn.wordpress.org/branches/4.0@32283
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-23 21:35:37 +00:00
Gary Pendergast
488576e125
WPDB: When sanity checking a string by sending it to MySQL for conversion checks, the incorrect data structure was being returned from wpdb::strip_invalid_text(), causing all write queries to fail for some character sets when the query contained non-ASCII characters.
...
Merge of [32261] to the 4.0 branch.
See #32051 .
Built from https://develop.svn.wordpress.org/branches/4.0@32272
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-23 11:44:39 +00:00
Gary Pendergast
e20485b9cb
WPDB: When deciding if a query needs extra sanity checking based on collation, return early when we can. Merges [32232] and [32233] to the 4.0 branch.
...
See #32029 .
Built from https://develop.svn.wordpress.org/branches/4.0@32235
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 06:19:40 +00:00
Gary Pendergast
530a462ba1
Fix some `wpdb::check_safe_collation()` calls missed in [32181].
...
Built from https://develop.svn.wordpress.org/branches/4.0@32225
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 19:06:42 +00:00
Gary Pendergast
d4d995bb8e
Bump 4.0 branch to 4.0.2.
...
Built from https://develop.svn.wordpress.org/branches/4.0@32219
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 17:40:10 +00:00
Gary Pendergast
2af7429643
In Multisite, prevent plugins from unintentionally switching sites. Merge of [32173] to the 4.0 branch.
...
Props mdawaffe, pento.
Built from https://develop.svn.wordpress.org/branches/4.0@32199
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 13:20:36 +00:00
Gary Pendergast
c5dbb01a4c
Update the Plupload Flash file to the latest version. Merge of [32168] to the 4.0 branch.
...
Props azaozz.
Built from https://develop.svn.wordpress.org/branches/4.0@32197
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 13:04:35 +00:00
Gary Pendergast
766a6f6fa1
Remove some old backwards compatibility code from TinyMCE. Merge of [32166] to the 4.0 branch.
...
Props azaozz.
Built from https://develop.svn.wordpress.org/branches/4.0@32193
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 12:49:33 +00:00
Gary Pendergast
3170d00fa6
Clean up some edge cases in `sanitize_sql_orderby()`. Merge of [32164] to the 4.0 branch.
...
Props vortfu, dd32.
Built from https://develop.svn.wordpress.org/branches/4.0@32189
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 12:32:39 +00:00
Gary Pendergast
55be6d3e44
`wpdb::$checking_collation` was incorrectly marked as `protected` instead of `private` in [32181].
...
Built from https://develop.svn.wordpress.org/branches/4.0@32184
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 11:21:35 +00:00
Gary Pendergast
548201e950
Merge the query sanity checks from #21212 to the 4.0 branch.
...
Props pento, nacin, mdawaffe, DrewAPicture.
Built from https://develop.svn.wordpress.org/branches/4.0@32181
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 10:54:40 +00:00
Gary Pendergast
285af6e86c
The 4.0 branch is now 4.0.2-alpha.
...
Built from https://develop.svn.wordpress.org/branches/4.0@32153
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 03:34:41 +00:00
Gary Pendergast
be559a4584
Backport the PHPUnit test fixes from [31622] to the 4.0 branch.
...
Props boonebgorges.
See #31537 .
Built from https://develop.svn.wordpress.org/branches/4.0@32148
git-svn-id: http://core.svn.wordpress.org/branches/4.0@32126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-19 07:43:42 +00:00
Andrew Nacin
e34cfb7c73
Undo changes to the 4.0 branch caused by clean-css 2.2.8 (branch) versus 2.2.16 (trunk).
...
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 17:41:01 +00:00
Andrew Nacin
d9f6f1c2ea
4.0.1 version bumps.
...
Built from https://develop.svn.wordpress.org/branches/4.0@30475
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 16:32:32 +00:00
Andrew Nacin
39c7ff2304
Prevent high resource usage when hashing large passwords. props mdawaffe, pento
...
Merges [30466] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30467
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 16:05:39 +00:00
Andrew Nacin
d9cd72430f
Anchor texturize to shortcodes to improve regex efficiency.
...
For the 4.0 branch; see [30449] for trunk.
props miqrogroove.
see #29557 for segfault issues.
Built from https://develop.svn.wordpress.org/branches/4.0@30450
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 14:30:37 +00:00
Andrew Nacin
be45cc1d6a
Better validation of the URL used in core HTTP requests.
...
Merges [30443] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30444
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 14:01:52 +00:00
Andrew Nacin
50a4318776
TinyMCE: Verify HTML in captions. props azaozz
...
Merges [30435] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30436
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:50:41 +00:00
Andrew Nacin
65ac1b9a84
Invalidate password keys when a user's email changes.
...
Merges [30430] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30431
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:40:53 +00:00
Andrew Nacin
5fcfb73bf6
Fix typo in style filter. props miqrogroove
...
Merges [30425] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30426
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:16:29 +00:00
Andrew Nacin
dd9f42a1f6
Playlists are video by default. props duck_
...
Merges [30422] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30423
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:12:31 +00:00
Andrew Nacin
432912f7e9
Use hash_equals() for old md5 hashes.
...
Merges [30412] to the 4.0 branch.
Built from https://develop.svn.wordpress.org/branches/4.0@30413
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 12:02:35 +00:00
Andrew Nacin
3a108f5bce
Media Grid: Don't attempt to delete an attachment that can't be deleted.
...
Merges [29755] to the 4.0 branch.
props wonderboymusic.
fixes #29597 .
Built from https://develop.svn.wordpress.org/branches/4.0@30409
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 11:09:32 +00:00
Andrew Nacin
e2cf18d5b9
Don't display Edit links for attachments user cannot edit.
...
Merges [29723] to the 4.0 branch.
props skaeser.
fixes #29596 .
Built from https://develop.svn.wordpress.org/branches/4.0@30408
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 11:07:36 +00:00
Andrew Nacin
94f0e4dfb6
Media Grid: when the modal is open, don't respond to arrow keys when `<textarea>` has focus.
...
Merges [29777] (and [30378]) to the 4.0 branch.
Props ryelle, adamsilverstein.
Fixes #29725 .
Built from https://develop.svn.wordpress.org/branches/4.0@30407
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 11:06:29 +00:00
Andrew Nacin
3f256ab656
TinyMCE: fix image captions regexp when wpautop is disabled in wp_editor().
...
Merges [29730] to the 4.0 branch.
props azaozz.
fixes #29592 .
Built from https://develop.svn.wordpress.org/branches/4.0@30406
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 11:00:51 +00:00
Andrew Nacin
0e76113043
In get_adjacent_post(), $excluded_terms should check term_id rather than term_taxonomy_id.
...
Merges [30263] (and [30264] [30401]) to the 4.0 branch.
props boonebgorges.
fixes #29663 , see #22112 .
Built from https://develop.svn.wordpress.org/branches/4.0@30405
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 10:59:35 +00:00
Andrew Nacin
59ae9aa3a7
Media Frames: Set the box-sizing CSS property to border-box for checkboxes and radio buttons.
...
Merges [29727] to the 4.0 branch.
props mlteal.
fixes #29493 .
Built from https://develop.svn.wordpress.org/branches/4.0@30262
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 13:24:42 +00:00
Andrew Nacin
4f14d9f7f8
In `wp_audio|video_shortcode()`, make sure that `autoplay` and `loop` are booleans. Passing `'false'` to them will force them to be active, which is bad.
...
Merges [30185] to the 4.0 branch.
props wonderboymusic.
fixes #29825 .
Built from https://develop.svn.wordpress.org/branches/4.0@30261
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:23:29 +00:00
Andrew Nacin
eec6b41e3d
Create correct permalinks for child posts of hierarchical post types when default permalinks are used.
...
Merges [29765] to the 4.0 branch.
props loushou.
fixes #29615 .
Built from https://develop.svn.wordpress.org/branches/4.0@30260
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:22:35 +00:00
Andrew Nacin
7be0716c9f
Avoid PHP notices in media modal caused by orphaned attachments.
...
Merges [29724] to the 4.0 branch.
props SergeyBiryukov.
fixes #29566 .
Built from https://develop.svn.wordpress.org/branches/4.0@30259
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:16:33 +00:00
Andrew Nacin
8930d00db0
Make sure the $parent argument of wp_insert_attachment() still works as expected after [28579].
...
Merges [29745] to the 4.0 branch.
props jesin, dikiy_forester.
fixes #29646 .
Built from https://develop.svn.wordpress.org/branches/4.0@30258
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:15:30 +00:00
Andrew Nacin
5add2ed4b1
TinyMCE wpView: when pasting/inserting content before a view, add new paragraph above it and insert the content there.
...
Merges [29766] to the 4.0 branch.
props avryl.
fixes #29380 .
Built from https://develop.svn.wordpress.org/branches/4.0@30257
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:13:29 +00:00
Andrew Nacin
b94cfff6ad
Create new $wp_roles object in install_blog() to avoid protected _init() call
...
Merges [30242] to the 4.0 branch.
Our call to `$wp_roles->_init()` relied on the `__call()` method in `WP_Roles` to handle the link to the protected method. This works back to PHP 5.2.9, when a bug was fixed allowing access to protected methods through this exact approach.
`install_blog()` needs a fresh `$wp_roles` object after `populate_roles()` resets everything in its path. We can create this new object from scratch, effectively doing the same thing with the call to `_init()` via the constructor.
props jeremyfelt.
fixes #29692 .
Built from https://develop.svn.wordpress.org/branches/4.0@30255
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:09:05 +00:00
Andrew Nacin
2db717b03b
Revert [28610] in order to avoid infinite redirect loops on reverse proxies which proxy from HTTPS to HTTP.
...
Merges [30090] to the 4.0 branch.
fixes #28610 .
Built from https://develop.svn.wordpress.org/branches/4.0@30253
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 07:16:39 +00:00
Andrew Nacin
f904bbceb5
Upgrade MediaElement to 2.15.1.
...
Merges [29733] to the 4.0 branch.
Changes from 2.15.0:
https://github.com/johndyer/mediaelement/compare/2.15.0...2.15.1
Continues to revert upstream commit b7f82b4 to restore the status quo for Chromium support.
props wonderboymusic.
fixes #29620 .
Built from https://develop.svn.wordpress.org/branches/4.0@30252
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 07:11:31 +00:00
Andrew Nacin
e2c870f41b
Quicktags: move focusing the editor after inserting content to the end of the code blocks.
...
Merges [29884] to the 4.0 branch.
Fixes a bug in Chrome where both the textarea and the window may auto-scroll to unexpected position on clicking a Quicktags button.
props azaozz, avryl.
fixes #29944 .
Built from https://develop.svn.wordpress.org/branches/4.0@30250
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 07:03:32 +00:00
Andrew Nacin
bab3933829
The 4.0 branch is 4.0.1-alpha.
...
Built from https://develop.svn.wordpress.org/branches/4.0@30248
git-svn-id: http://core.svn.wordpress.org/branches/4.0@30248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 06:49:37 +00:00
Andrew Nacin
4edbc74e65
Add safeguards for when ext/hash is not compiled with PHP.
...
Merges [29751] to the 4.0 branch.
fixes #29518 .
Built from https://develop.svn.wordpress.org/branches/4.0@29761
git-svn-id: http://core.svn.wordpress.org/branches/4.0@29533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-23 18:14:39 +00:00
Helen Hou-Sandí
250c2ce999
WordPress 4.0.
...
Built from https://develop.svn.wordpress.org/trunk@29709
git-svn-id: http://core.svn.wordpress.org/trunk@29483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 15:32:15 +00:00
Andrew Nacin
f7392ef917
Pinking shears.
...
Built from https://develop.svn.wordpress.org/trunk@29707
git-svn-id: http://core.svn.wordpress.org/trunk@29481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 15:23:16 +00:00
Andrew Nacin
0b3ba1e405
Media grid details: Load large images instead of originals, if available.
...
fixes #29498 .
Built from https://develop.svn.wordpress.org/trunk@29704
git-svn-id: http://core.svn.wordpress.org/trunk@29478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 14:38:16 +00:00
Andrew Nacin
00fac0639d
Link to apps.wordpress.org instead of wordpress.org/mobile.
...
props pento.
fixes #29496 .
Built from https://develop.svn.wordpress.org/trunk@29703
git-svn-id: http://core.svn.wordpress.org/trunk@29477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 14:22:15 +00:00
Helen Hou-Sandí
69be1c682f
4.0-RC3.
...
Built from https://develop.svn.wordpress.org/trunk@29699
git-svn-id: http://core.svn.wordpress.org/trunk@29474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 18:07:17 +00:00
Helen Hou-Sandí
5a786077c5
4.0-RC2.
...
Built from https://develop.svn.wordpress.org/trunk@29696
git-svn-id: http://core.svn.wordpress.org/trunk@29471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 11:37:15 +00:00
Sergey Biryukov
2ff943b7b0
Restore the post type's view_item label for preview links that don't submit the changes.
...
fixes #28350 .
Built from https://develop.svn.wordpress.org/trunk@29695
git-svn-id: http://core.svn.wordpress.org/trunk@29470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 11:33:16 +00:00
Andrew Nacin
9db108dbe0
Allow language specified by the WPLANG constant (but not installed) to be chosen.
...
fixes #29456 .
Built from https://develop.svn.wordpress.org/trunk@29691
git-svn-id: http://core.svn.wordpress.org/trunk@29466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 08:03:16 +00:00
Andrew Nacin
cb242bb358
MediaElement: Bump version. see #29110 .
...
Built from https://develop.svn.wordpress.org/trunk@29689
git-svn-id: http://core.svn.wordpress.org/trunk@29464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 06:33:16 +00:00
Andrew Nacin
4d6697aaa6
MediaElement: Revert upstream commit b7f82b4 to restore the status quo for Chromium support.
...
fixes #29110 .
Built from https://develop.svn.wordpress.org/trunk@29688
git-svn-id: http://core.svn.wordpress.org/trunk@29463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 06:32:15 +00:00
Helen Hou-Sandí
a48a526e76
Media: Better padding for attachment items.
...
props avryl.
fixes #29085 .
Built from https://develop.svn.wordpress.org/trunk@29687
git-svn-id: http://core.svn.wordpress.org/trunk@29462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 06:28:16 +00:00
Andrew Nacin
b0f6b888b9
Media: Avoid repeated thumbnail resizing.
...
props avryl, wonderboymusic, azaozz.
fixes #27423 .
Built from https://develop.svn.wordpress.org/trunk@29686
git-svn-id: http://core.svn.wordpress.org/trunk@29461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 06:10:19 +00:00
Andrew Nacin
38af73bfab
Only media grid (not modal) should show "Uploaded by" and "Uploaded to".
...
props wonderboymusic.
fixes #29482 .
Built from https://develop.svn.wordpress.org/trunk@29683
git-svn-id: http://core.svn.wordpress.org/trunk@29458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 02:17:18 +00:00
Andrew Nacin
4cfdb9851f
Media Modal: Fix 'Insert from URL' oEmbed previews.
...
props johnbillion, azaozz.
fixes #29473 .
Built from https://develop.svn.wordpress.org/trunk@29680
git-svn-id: http://core.svn.wordpress.org/trunk@29455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 00:37:16 +00:00
Andrew Nacin
e496cc6e4b
Media: Ensure media-views is enqueued and registered before localizing.
...
fixes #24724 .
Built from https://develop.svn.wordpress.org/trunk@29678
git-svn-id: http://core.svn.wordpress.org/trunk@29453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 19:36:16 +00:00
Andrew Nacin
6af7341655
Revert [28840]; wp_localize_script() must be called on a registered handle.
...
see #24724 .
Built from https://develop.svn.wordpress.org/trunk@29677
git-svn-id: http://core.svn.wordpress.org/trunk@29452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 19:35:16 +00:00
Sergey Biryukov
2d1cc72d7f
Simplify the code for calling refresh_blog_details() whenever 'blogname', 'siteurl', or 'post_count' option is updated.
...
props pento, nacin.
fixes #26410 .
Built from https://develop.svn.wordpress.org/trunk@29668
git-svn-id: http://core.svn.wordpress.org/trunk@29442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 07:30:16 +00:00
Sergey Biryukov
8cc6ad5066
Check $post->post_status directly in _update_posts_count_on_delete() for better performance.
...
props pento.
fixes #27952 .
Built from https://develop.svn.wordpress.org/trunk@29667
git-svn-id: http://core.svn.wordpress.org/trunk@29441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 07:17:17 +00:00
Andrew Nacin
b5f0a32baa
Unit tests for has_filter() not resetting the array pointer.
...
props pento.
fixes #29070 . see [29472].
Built from https://develop.svn.wordpress.org/trunk@29665
git-svn-id: http://core.svn.wordpress.org/trunk@29439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 06:50:15 +00:00
Andrew Nacin
53f1ba51e4
DB: Revert [28814] and require a WHERE for wpdb::update().
...
see #26106 .
Built from https://develop.svn.wordpress.org/trunk@29664
git-svn-id: http://core.svn.wordpress.org/trunk@29438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 04:56:15 +00:00
Andrew Nacin
4417e75e2c
Canonical: Apply redirects to HEAD requests too. Adjusts [28958].
...
props SergeyBiryukov.
fixes #27498 .
Built from https://develop.svn.wordpress.org/trunk@29663
git-svn-id: http://core.svn.wordpress.org/trunk@29437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 04:48:17 +00:00
Sergey Biryukov
3cdc7b1679
Avoid PHP notices when checking for local requests in in WP_Http.
...
props markoheijnen.
fixes #29392 .
Built from https://develop.svn.wordpress.org/trunk@29661
git-svn-id: http://core.svn.wordpress.org/trunk@29435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-02 02:06:17 +00:00
Andrew Ozz
703b625820
Media: add a class to the <script> tag for the JSON encoded playlist data so it can be easily selected in WPPlaylistView. Props SergeyBiryukov, fixes #29383
...
Built from https://develop.svn.wordpress.org/trunk@29660
git-svn-id: http://core.svn.wordpress.org/trunk@29434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-01 19:55:18 +00:00
Andrew Nacin
9718e8413a
Query: Add comment to the parse_tax_query() method reflecting [28987].
...
see #28739 .
Built from https://develop.svn.wordpress.org/trunk@29658
git-svn-id: http://core.svn.wordpress.org/trunk@29432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-01 19:51:16 +00:00
Andrew Ozz
2d3eea5ab2
TinyMCE: fix the 'tabfocus' plugin to check if default is prevented on pressing tab, bind the events later so other plugins can cancel them. Merged upstream in 86098b3485
together with another change.
...
Fixes #29430
Built from https://develop.svn.wordpress.org/trunk@29657
git-svn-id: http://core.svn.wordpress.org/trunk@29431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-01 19:03:16 +00:00
Helen Hou-Sandí
72593add22
Media grid: Don't show a misleading message for an empty library.
...
This uses the existing string from the list table. We should revisit a better overall experience for the two situations (empty library vs. search with no results) in 4.1.
props voldemortensen.
fixes #29404 .
Built from https://develop.svn.wordpress.org/trunk@29655
git-svn-id: http://core.svn.wordpress.org/trunk@29429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-01 18:39:17 +00:00
Andrew Nacin
9cbad29eb8
Meta Query: Revert [28659] (and [28665]) due to regressions.
...
props boonebgorges.
fixes #29285 . see #25538 .
Built from https://develop.svn.wordpress.org/trunk@29650
git-svn-id: http://core.svn.wordpress.org/trunk@29424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 20:23:16 +00:00
Andrew Ozz
c59604e137
TinyMCE wpView: fix 'undefined' head when not adding more stylesheets to the sandbox iframe, fixes #29399
...
Built from https://develop.svn.wordpress.org/trunk@29649
git-svn-id: http://core.svn.wordpress.org/trunk@29423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 18:23:18 +00:00
Helen Hou-Sandí
0df2fa0c61
4.0-RC1.
...
Built from https://develop.svn.wordpress.org/trunk@29647
git-svn-id: http://core.svn.wordpress.org/trunk@29421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 06:14:15 +00:00
Andrew Nacin
768136c6da
Rename the public methods in the session tokens API.
...
Introduces a new get( $token ) method. get_token() would not have made sense and spurred the overall renaming. Public methods are now get, get_all, verify, create, update, destroy, destroy_others, and destroy_all.
The protected abstract methods designed for alternative implementations remain the same.
props mdawaffe.
see #20276 .
Built from https://develop.svn.wordpress.org/trunk@29635
git-svn-id: http://core.svn.wordpress.org/trunk@29409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 02:07:16 +00:00
Andrew Nacin
ac3dd27737
Plugin/Theme Uploads: New capabilities; unify UIs; ensure compatibility with old filters.
...
Introduce upload_plugins and upload_themes capabilities to allow blocking of plugin and theme uploads, versus the old hacky (and not secure) ways of just hiding UI tabs. These are simply meta capabilities that map to install_plugins and install_themes.
Also:
* Use the same nice design for the plugin upload screen as the theme upload screen.
* Better compatibility for the old install_themes_tabs filter added in [29002]. see #28578 .
* Ensure using the install_plugins_tabs filter to remove the upload tab removes the new button.
* Use 'Add Plugins' instead of 'Install Plugins' to match 'Add Themes'.
fixes #29236 .
Built from https://develop.svn.wordpress.org/trunk@29634
git-svn-id: http://core.svn.wordpress.org/trunk@29408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 01:32:18 +00:00
Helen Hou-Sandí
a3579ccba1
Media modals: Better responsive views, especially the header.
...
* Only show the "dropdown" when there is a menu. Note that this uses a `:not()` selector, but it is supported in browsers that support media queries so it is safe to use here.
* Make the header shorter when on particularly narrow screens, which also tend to be shorter.
* Don't restrict the height of images in the attachment details modal, to take advantage of all available space.
fixes #29339 .
Built from https://develop.svn.wordpress.org/trunk@29632
git-svn-id: http://core.svn.wordpress.org/trunk@29406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 21:50:16 +00:00
Dominik Schilling
d544610681
Language packs: No WPLANG anymore.
...
* The WPLANG constant is no longer needed. Remove define('WPLANG', ''); from wp-config-sample.php. Populate WPLANG option based on the WPLANG constant. When get_option('WPLANG') is an empty string it will override WPLANG.
* Introduce translations_api() which is available to communicate with the translation API. Move translation install related functions to a new file.
* Replace mu_dropdown_languages() with wp_dropdown_languages(). wp_dropdown_languages() is now populated by the translation API.
* Remove wp_install_load_language() and allow load_default_textdomain() to switch a core translation.
fixes #13069 , #15677 , #19760 , #28730 , #29281 .
Built from https://develop.svn.wordpress.org/trunk@29630
git-svn-id: http://core.svn.wordpress.org/trunk@29404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 19:59:16 +00:00
Helen Hou-Sandí
7586e15e0d
Media: only apply `wp-filter` class to the grid view toolbar.
...
props gcorne.
fixes #29381 .
Built from https://develop.svn.wordpress.org/trunk@29629
git-svn-id: http://core.svn.wordpress.org/trunk@29403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 19:06:15 +00:00
Helen Hou-Sandí
c392ff6f90
Editor scrolling: reduce the amount of height jumping on load.
...
props avryl.
fixes #29307 .
Built from https://develop.svn.wordpress.org/trunk@29628
git-svn-id: http://core.svn.wordpress.org/trunk@29402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 18:39:17 +00:00
Helen Hou-Sandí
9e8b9a78ca
Media library: Unify headers between view modes.
...
Includes back compat for `views_upload` links. These look a little awkward, but do not appear to be commonly used. Also prevents the view mode links from being dropped on smaller screens so a user doesn't get "stuck" in the list view.
This is different from other list tables, but aligns well with other uploaded content management screens (themes, plugins).
props pento, helen.
fixes #28946 .
Built from https://develop.svn.wordpress.org/trunk@29625
git-svn-id: http://core.svn.wordpress.org/trunk@29399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 15:58:15 +00:00
Dominik Schilling
32030a073f
RTL: Fix modal alignments.
...
* Prevent horizontal scrollbars in Chrome.
* URL fields should be always LTR.
* Force the plugin details to be LTR for all screens, see #19778 .
fixes #29352 .
Built from https://develop.svn.wordpress.org/trunk@29623
git-svn-id: http://core.svn.wordpress.org/trunk@29397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 12:55:16 +00:00
Andrew Nacin
3951d9689c
Require a non-empty $nonce value in wp_verify_nonce().
...
props ocean90.
fixes #29217 .
Built from https://develop.svn.wordpress.org/trunk@29620
git-svn-id: http://core.svn.wordpress.org/trunk@29394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 07:39:19 +00:00
Helen Hou-Sandí
7b75eff693
Image Details modal: Restore narrow responsive layout.
...
props celloexpressions.
fixes #29337 .
Built from https://develop.svn.wordpress.org/trunk@29617
git-svn-id: http://core.svn.wordpress.org/trunk@29391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 05:20:16 +00:00
Helen Hou-Sandí
e51fdf9d7d
Focus styling: bring the blue glow to more places.
...
Handles color picker, theme browser, help/screen options, TinyMCE dialog buttons, jQuery UI dialog buttons, and buttons in color schemes.
props avryl, celloexpressions. fixes #28267 .
Built from https://develop.svn.wordpress.org/trunk@29616
git-svn-id: http://core.svn.wordpress.org/trunk@29390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 05:17:17 +00:00
Scott Taylor
149346ff6e
MCE View sandboxes:
...
* Use a `MutationObserver` to listen to the `body` class of the parent editor frame.
* In `wpview_media_sandbox_styles()`, only return the MEjs stylesheets.
* In `wp_ajax_parse_media_shortcode()` and `wp_ajax_parse_embed()`, return an object instead of an HTML blob to allow passing `body` and `head` separately
Props avryl, azaozz.
Fixes #29048 .
Built from https://develop.svn.wordpress.org/trunk@29615
git-svn-id: http://core.svn.wordpress.org/trunk@29389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 04:46:15 +00:00
Scott Taylor
80bda02c0f
Media Modal:
...
* the Image Details frame does not have a menu, indicate that by setting `menu: false` when adding states.
* mimic the default router rendering by toggling a `hide-menu` class on the frame when the region for menu is `null`
* remove the dead render code for the Image Details frame
See #29339 .
Built from https://develop.svn.wordpress.org/trunk@29613
git-svn-id: http://core.svn.wordpress.org/trunk@29387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 04:22:16 +00:00