Compare commits

...

115 Commits
4.6 ... 3.8.10

Author SHA1 Message Date
Dion Hulse
ee561704b9 Tag 3.8.10
Built from https://develop.svn.wordpress.org/tags/3.8.10@33582


git-svn-id: http://core.svn.wordpress.org/tags/3.8.10@33549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 12:49:20 +00:00
Dominik Schilling
09a38682f8 Bump 3.8 branch to version 3.8.10.
Built from https://develop.svn.wordpress.org/branches/3.8@33576


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 11:52:44 +00:00
Dion Hulse
32274112c6 Fix do_shortcode('<[shortcode]') edge case.
Props miqrogroove.

Merges [33499] to the 3.8 branch.
See #33116.

Built from https://develop.svn.wordpress.org/branches/3.8@33567


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 07:18:54 +00:00
Dominik Schilling
0128210d88 Comments: IDs are integers.
Merge of [33555] to the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@33560


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 05:00:15 +00:00
Dominik Schilling
6d3a23c410 Themes: Fix some broken links in the legacy theme preview.
Merge of [33549] to the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@33553


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 04:58:04 +00:00
Dominik Schilling
ebe4779cea Heartbeat: Ensure post locks are released.
Merge of [33542] to the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@33547


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 04:56:15 +00:00
Dominik Schilling
7641da2980 Nav menus: Consistent titles in widgets.
Merge of [33529] to the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@33533


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-03 20:58:59 +00:00
Andrew Ozz
53f980d4be Backport r33469 and r33470 to 3.8.
See #33106.
Built from https://develop.svn.wordpress.org/branches/3.8@33524


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-31 01:45:23 +00:00
Gary Pendergast
b796308091 Bump 3.9 branch to version 3.8.9.
Built from https://develop.svn.wordpress.org/branches/3.8@33399


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 11:09:09 +00:00
Gary Pendergast
fbc90de16c Shortcodes: Improve the reliablity of shortcodes inside HTML tags.
Merge of [33359] to the 3.8 branch.

Props miqrogroove.

See #15694.


Built from https://develop.svn.wordpress.org/branches/3.8@33388


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 05:09:09 +00:00
Gary Pendergast
9a0402d634 Capabilities: When creating an auto-draft, ensure that the current user still has permission to do so.
Merge of [33357] to the 3.8 branch.


Built from https://develop.svn.wordpress.org/branches/3.8@33378


git-svn-id: http://core.svn.wordpress.org/branches/3.8@33349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-23 04:19:10 +00:00
Dominik Schilling
c56e499391 3.8.8 version bumps.
Built from https://develop.svn.wordpress.org/branches/3.8@32438


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 23:34:10 +00:00
Michael Adams
74417f8f5c Upgrade: $wpdb->get_col_length() sanity check: bail on unexpected return value.
Merges [32429] for the 3.8 branch.

See #32165.

Built from https://develop.svn.wordpress.org/branches/3.8@32434


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 23:14:25 +00:00
Michael Adams
d342b4c478 Upgrade: Ensure unintelligible DB schemas don't result in content loss.
Merge of [32417] to the 3.8 branch.

See #32165.

Props ocean90.

Built from https://develop.svn.wordpress.org/branches/3.8@32422


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 21:53:25 +00:00
John Blackbourn
d4c9ce4bda 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 3.8 branch.

Props pento, willstedt for the initial patch.

See #32090.

Built from https://develop.svn.wordpress.org/branches/3.8@32415


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 21:13:11 +00:00
Aaron Jorbin
84c27f1b42 When upgrading WordPress remove genericons example.html files
[32385] for 3.8 branch

Props @dd32, @boonebgorges, @johnjamesjacoby, @drewapicture, @jorbin


Built from https://develop.svn.wordpress.org/branches/3.8@32410


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 20:40:10 +00:00
Dominik Schilling
1695bed869 WPDB: When sanity checking query character sets, there's no need to check queries that don't return user data.
Merges [32374] to the 3.8 branch.

props pento.
see #32104.
Built from https://develop.svn.wordpress.org/branches/3.8@32406


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 20:07:10 +00:00
Helen Hou-Sandí
75b1ce17ad The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.
Merges [32375] to the 3.8 branch.

props pento.
See #32204.

Built from https://develop.svn.wordpress.org/branches/3.8@32399


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 19:44:11 +00:00
Michael Adams
b9558b5c68 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 3.8 branch.

Props mdawaffe, pento, nbachiyski, jorbin, johnjamesjacoby, jeremyfelt.

See #32165.

Built from https://develop.svn.wordpress.org/branches/3.8@32390


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 19:15:10 +00:00
Michael Adams
b6bdb208dd 3.8:
- 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/3.8@32317


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-27 18:34:10 +00:00
Gary Pendergast
d6c009f72c 3.8 branch is now 3.8.8.
Built from https://develop.svn.wordpress.org/branches/3.8@32304


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-27 14:12:24 +00:00
Helen Hou-Sandí
da9b7a3b48 The 3.8 branch is now 3.8.7.
Built from https://develop.svn.wordpress.org/branches/3.8@32285


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-23 21:36:02 +00:00
Gary Pendergast
1975036fc4 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 3.8 branch.

See #32051.


Built from https://develop.svn.wordpress.org/branches/3.8@32274


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-23 11:52:11 +00:00
Gary Pendergast
b93fea1bbb WPDB: When deciding if a query needs extra sanity checking based on collation, return early when we can. Merges [32232] and [32233] to the 3.8 branch.
See #32029.


Built from https://develop.svn.wordpress.org/branches/3.8@32240


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 07:01:10 +00:00
Gary Pendergast
983bd76658 Bump 3.8 branch to 3.8.6.
Built from https://develop.svn.wordpress.org/branches/3.8@32215


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 17:36:11 +00:00
Gary Pendergast
4427438a56 3.8: Update about.php.
Built from https://develop.svn.wordpress.org/branches/3.8@32214


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 17:34:09 +00:00
Gary Pendergast
46b1d12a64 Ensure post titles are correctly escaped on the Dashboard. Merge of [32175] to the 3.8 branch.
Props helen, ocean90, dd32, pento.


Built from https://develop.svn.wordpress.org/branches/3.8@32205


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 13:42:10 +00:00
Gary Pendergast
67b4625791 In Multisite, prevent plugins from unintentionally switching sites. Merge of [32173] to the 3.8 branch.
Props mdawaffe, pento.


Built from https://develop.svn.wordpress.org/branches/3.8@32201


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 13:26:10 +00:00
Gary Pendergast
7bf1b6ce40 Remove some old backwards compatibility code from TinyMCE. Merge of [32166] to the 3.8 branch.
Props azaozz.


Built from https://develop.svn.wordpress.org/branches/3.8@32195


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 12:55:11 +00:00
Gary Pendergast
049740b854 Clean up some edge cases in sanitize_sql_orderby(). Merge of [32164] to the 3.8 branch.
Props vortfu, dd32.


Built from https://develop.svn.wordpress.org/branches/3.8@32191


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 12:38:10 +00:00
Gary Pendergast
e5706783f0 Merge the query sanity checks from #21212 to the 3.8 branch.
Props pento, nacin, mdawaffe, DrewAPicture.


Built from https://develop.svn.wordpress.org/branches/3.8@32186


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 11:32:11 +00:00
Gary Pendergast
2671c3eb8f 3.8: Bump package.json, readme.html and license.txt.
Built from https://develop.svn.wordpress.org/branches/3.8@32158


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 03:48:09 +00:00
Gary Pendergast
37d6092e6c The 3.8 branch is now 3.8.6-alpha.
Built from https://develop.svn.wordpress.org/branches/3.8@32157


git-svn-id: http://core.svn.wordpress.org/branches/3.8@32132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 03:46:10 +00:00
Andrew Nacin
86dbc0e9f7 3.8.5 version bumps.
Built from https://develop.svn.wordpress.org/branches/3.8@30473


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 16:26:19 +00:00
Andrew Nacin
81a07d58df Prevent high resource usage when hashing large passwords. props mdawaffe, pento
Merges [30466] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30469


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 16:07:10 +00:00
Andrew Nacin
a8ee34c745 Validate image data.
Merges [30458] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30464


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 15:59:10 +00:00
Andrew Nacin
e8613eb44a Anchor texturize to shortcodes to improve regex efficiency.
Merges [30452] to the 3.8 branch.

props miqrogroove.
see #29557 for segfault issues.

Built from https://develop.svn.wordpress.org/branches/3.8@30455


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 14:37:10 +00:00
Andrew Nacin
10f8d67e1b Better validation of the URL used in core HTTP requests.
Merges [30443] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30446


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 14:02:23 +00:00
Andrew Nacin
b8f2bbf7d3 Press This: Ensure the error message is printed. props johnbillion
Merges [30438] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30441


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 14:00:10 +00:00
Andrew Nacin
916509ecd6 Invalidate password keys when a user's email changes.
Merges [30430] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30433


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:42:25 +00:00
Andrew Nacin
41c66d64fb Fix typo in style filter. props miqrogroove
Merges [30425] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30428


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 13:16:52 +00:00
Andrew Nacin
fb7b89a23d Form validation for password resets.
Merges [30417] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30420


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 12:25:11 +00:00
Andrew Nacin
2a05a279fd Use hash_equals() for old md5 hashes.
Merges [30412] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@30415


git-svn-id: http://core.svn.wordpress.org/branches/3.8@30410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 12:05:11 +00:00
Andrew Nacin
57e6b6e116 Password resets: Use network_site_url() for form actions.
Merges [29631] to the 3.8 branch.

props mdawaffe.
fixes #29156.

Built from https://develop.svn.wordpress.org/branches/3.8@29639


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-27 03:05:10 +00:00
Andrew Nacin
78d0ddfa36 3.8.4
Built from https://develop.svn.wordpress.org/branches/3.8@29412


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 18:27:27 +00:00
Andrew Nacin
fafada01b7 Use delimiters when building nonce hashes. Part two of [29386].
Built from https://develop.svn.wordpress.org/branches/3.8@29409


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 17:58:11 +00:00
Andrew Nacin
7f5fcb184b Ignore entities in XML-RPC requests.
Merges [29404] to the 3.8 branch.

props mdawaffe, nacin.

Built from https://develop.svn.wordpress.org/branches/3.8@29406


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 17:51:11 +00:00
Andrew Nacin
8905d8bda9 Escape late in get_avatar().
Merges [29397] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@29399


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 07:51:25 +00:00
Andrew Nacin
1282f9b034 Don't pass around the password reset key.
Merges [29327] and [29381] to the 3.9 branch.

props mdawaffe.
fixes #29060.

Built from https://develop.svn.wordpress.org/branches/3.8@29395


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 06:38:13 +00:00
Andrew Nacin
1f14360fe8 Disable external entities in ID3.
Merges [29378] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@29391


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 05:58:10 +00:00
Andrew Nacin
72d44b2fce Constant time for wp_verify_nonce().
Merges [29384] to the 3.8 branch.

Built from https://develop.svn.wordpress.org/branches/3.8@29386


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 05:43:22 +00:00
Andrew Nacin
f9bf8f0886 3.8.4-alpha
Built from https://develop.svn.wordpress.org/branches/3.8@29385


git-svn-id: http://core.svn.wordpress.org/branches/3.8@29163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-06 05:43:12 +00:00
Andrew Nacin
a12cfb6179 3.8.3
Built from https://develop.svn.wordpress.org/branches/3.8@28118


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-14 19:04:11 +00:00
Andrew Nacin
0afc974ff2 Avoid stomping of bulk postdata inside the bulk_edit_posts() loop.
Merge [28113] to the 3.8 branch.

Reverts [27991] which did not fix it for authors and comment/ping status.

props dd32, DrewAPicture.
fixes #27792.

Built from https://develop.svn.wordpress.org/branches/3.8@28114


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-14 08:11:11 +00:00
Andrew Nacin
16f887b203 3.8.3-RC1
Built from https://develop.svn.wordpress.org/branches/3.8@28076


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-11 16:56:11 +00:00
Andrew Nacin
3067ceb31a Recover auto-drafts lost via Quick Draft.
For the 3.8 branch. See [28074].

see #27734.

Built from https://develop.svn.wordpress.org/branches/3.8@28075


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-11 16:55:11 +00:00
Andrew Nacin
e635b17840 Ensure edit_post() promotes an auto-draft to draft. Fixes Quick Draft.
For the 3.8 branch. Regression from [27976] that does not affect trunk.

props dd32.
see #27734.

Built from https://develop.svn.wordpress.org/branches/3.8@28073


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-11 04:34:13 +00:00
Andrew Nacin
bf71d64b32 3.8.2
Built from https://develop.svn.wordpress.org/branches/3.8@28057


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 18:14:12 +00:00
Andrew Nacin
4b48ad6142 Bump Akismet external in the 3.8 branch to 2.6.0.
git-svn-id: http://core.svn.wordpress.org/branches/3.8@27887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 18:11:22 +00:00
Andrew Nacin
78a915e0e5 Harden HMAC verification. props duck_. [28053] for 3.8.
Built from https://develop.svn.wordpress.org/branches/3.8@28054


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-08 18:07:11 +00:00
Andrew Nacin
ab6a888483 3.8.2-RC1
Built from https://develop.svn.wordpress.org/branches/3.8@27994


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-07 19:40:20 +00:00
Andrew Nacin
4150ceb4e5 Avoid stomping of bulk postdata inside the bulk_edit_posts() loop.
Merges [27990] to the 3.8 branch.

props kovshenin.
see [27964], see #27452.

Built from https://develop.svn.wordpress.org/branches/3.8@27991


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-07 19:36:12 +00:00
Andrew Nacin
b514c5b4f7 Better checks for contributors when saving posts.
Merges [27964] and [27975] to the 3.8 branch.

props dd32, kovshenin, plocha.
see #27452.

Built from https://develop.svn.wordpress.org/branches/3.8@27976


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-06 22:16:12 +00:00
Dion Hulse
9bdfc8debc Background Updates: Fix a PHP Warning caused by a Upgrader instance being passed into the Theme & Plugin $extra_stats parameter.
Background Updates: Fix two variable typos in r27905

Merges [27906], [27928] to the 3.8 branch.
Fixes #27633.

Built from https://develop.svn.wordpress.org/branches/3.8@27929


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-03 05:40:12 +00:00
Andrew Nacin
8126b3edf9 Background Updates: Record plugin & theme update statistics like we do for core updates.
Pass plugin/theme update objects into the Background updater for consistency with core & translations.

Merges [27905] to the 3.8 branch.

props dd32.
fixes #27633.

Built from https://develop.svn.wordpress.org/branches/3.8@27923


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-03 03:59:11 +00:00
Andrew Nacin
4cd181f75c Update Plupload Silverlight binary to 1.5.8 in the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@27920


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-03 03:34:11 +00:00
Andrew Nacin
7e19af8b0e Remove links_recently_updated_time (hardening).
Merges some of [27916] to the 3.8 branch.

props Tom Adams.
see #27649.

Built from https://develop.svn.wordpress.org/branches/3.8@27917


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-03 03:15:12 +00:00
Andrew Nacin
1cda6d1e1a Revert [27609] from the 3.8 branch, as it should have been applied to trunk. see #27453.
Built from https://develop.svn.wordpress.org/branches/3.8@27889


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-01 08:16:11 +00:00
Andrew Nacin
0ccfe99e03 Fix two CSS issues in the 3.8 branch.
* Comments dashboard widget: Use the proper class to avoid stretched "unapproved" red lines. [27564]
 * Fix the tags input in small viewports and make it a more reasonable size. (Was unusable in Firefox.) [27254]

fixes #26910, #27082.

Built from https://develop.svn.wordpress.org/branches/3.8@27877


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 21:22:12 +00:00
Andrew Nacin
f5009dccb2 Themes screen: Use a normal error for WP_Theme errors.
Merges [27760] to the 3.8 branch.

fixes #27235.

Built from https://develop.svn.wordpress.org/branches/3.8@27876


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 21:13:10 +00:00
Andrew Nacin
2cca791a3e Use .screen-reader-text class instead of an alt attribute for overlay button labels on Themes screen.
Merges [27119] to the 3.8 branch.

props bramd.
fixes #26603.

Built from https://develop.svn.wordpress.org/branches/3.8@27875


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 20:52:10 +00:00
Andrew Nacin
236ea231f3 Fix validation issue in get_the_password_form() caused by wpautop().
Merges [27134] to the 3.8 branch.

props andykeith.
fixes #27071.

Built from https://develop.svn.wordpress.org/branches/3.8@27874


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 20:49:10 +00:00
Andrew Nacin
b1aac3577f Forward pingback IP during pingback verification.
Merges [27872] to the 3.8 branch.

props tellyworth, nacin.
fixes #27613.

Built from https://develop.svn.wordpress.org/branches/3.8@27873


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-31 20:45:12 +00:00
Andrew Nacin
5ca428459f In WP_Query::get_queried_object(), account for pre_get_posts by checking for tag when tag_id isn't present.
Merges [27511] to the 3.8 branch.

props mattonomics, wonderboymusic.
fixes #27362.

Built from https://develop.svn.wordpress.org/branches/3.8@27647


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-21 17:21:11 +00:00
Andrew Nacin
7db85ec323 Add context to a string new to the admin.
Previously this string was used in TinyMCE on the frontend.

see #27453.

Built from https://develop.svn.wordpress.org/branches/3.8@27609


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-19 05:38:13 +00:00
Andrew Nacin
53a150cabb Default Themes: Update POT files for the 3.8 branch.
Built from https://develop.svn.wordpress.org/branches/3.8@27591


git-svn-id: http://core.svn.wordpress.org/branches/3.8@27434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-18 19:20:22 +00:00
Andrew Nacin
831b3ca50d 3.8.1
Built from https://develop.svn.wordpress.org/branches/3.8@27024


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-23 20:17:11 +00:00
Andrew Nacin
4c3e2026dc 3.8 branch: Undo the colors.css changes in [26938] and move the rules to wp-admin.css.
This will prevent us from shipping a full re-build of the color schemes in 3.8.1.

see #26699.

Built from https://develop.svn.wordpress.org/branches/3.8@27023


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-23 18:25:11 +00:00
Andrew Nacin
d8f63b7c5d Properly detect line height of Quick Draft textarea.
Merges [27021] to the 3.8 branch. Half was committed in [27013].

props batmoo.
fixes #26915.

Built from https://develop.svn.wordpress.org/branches/3.8@27022


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-23 18:09:11 +00:00
Andrew Nacin
14a732d42a 3.8.1-RC1
Built from https://develop.svn.wordpress.org/branches/3.8@27014


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 21:08:11 +00:00
Andrew Nacin
4ac004127d Themes screen: Add aria-describedby attributes to provide better information to screen readers.
Merges [27012] to the 3.8 branch.

props joedolson for initial patch.
fixes #26602.

Built from https://develop.svn.wordpress.org/branches/3.8@27013


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 21:01:10 +00:00
Andrew Ozz
01057aaa58 Improve keyboard accessibility for the admin menu when in responsive mode, props SergeyBiryukov, fixes #26639 for 3.8.1.
Built from https://develop.svn.wordpress.org/branches/3.8@27010


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 20:03:11 +00:00
Andrew Nacin
709b498b20 Responsive improvements to submenus in the toolbar.
Merges [27006] to the 3.8 branch.

 * Remove .ab-sub-wrapper rules in the 782px media query, as they're duplicates of the rules set on line 161.
 * Reposition the arrows for submenus at responsive sizes where the menus are taller.
 * Set the submenu position to static at smartphone sizes, so it's not positioned outside of its parent (and thus offscreen).

props undergroundnetwork, iammattthomas.
fixes #26720.

Built from https://develop.svn.wordpress.org/branches/3.8@27009


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 19:01:11 +00:00
Andrew Nacin
8b28841993 Themes screen: Various IE8 adjustments and fixes.
Merges [27007] to the 3.8 branch.

props morganestes, matveb.
fixes #26541.

Built from https://develop.svn.wordpress.org/branches/3.8@27008


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 18:58:11 +00:00
Andrew Nacin
d5130fde52 3.8.1-beta1
Built from https://develop.svn.wordpress.org/branches/3.8@27002


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 17:54:11 +00:00
Andrew Nacin
990ac85f6d Dashboard widgets: Don't link to Pages or Posts for Authors or Contributors respectively.
Merges [26999] to the 3.8 branch.

props mattheu.
fixes #26574.

Built from https://develop.svn.wordpress.org/branches/3.8@27001


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 17:18:10 +00:00
Andrew Nacin
73af6045ba Eliminate the 1px padding adjustment on active buttons because it creates an un-clickable dead zone 1px high and spanning the entire width of the button.
Merges half of [26993] to the 3.8 branch.

props johnbillion.
see #26700.

Built from https://develop.svn.wordpress.org/branches/3.8@26998


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 16:45:11 +00:00
Andrew Nacin
7dc690486a Copy media modal colors out of colors.css and into media-views.css, as the modal can be triggered on the front end.
Merges part of [26929] to the 3.8 branch.

props avryl.
props collinsinternet for the initial patch.
fixes #26677.

Built from https://develop.svn.wordpress.org/branches/3.8@26992


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-21 18:05:13 +00:00
Andrew Nacin
44f715b3e7 Add a contrasting border to admin feature pointers.
Merges [26970] to the 3.8 branch.

props iammattthomas.
fixes #26689.

Built from https://develop.svn.wordpress.org/branches/3.8@26971


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-17 04:14:10 +00:00
Andrew Nacin
b3680fc0b2 Switch Twitter oEmbed to SSL due to a Twitter API change that broke embedding across all WordPress sites.
Merges [26967] to the 3.8 branch.

props yurivictor, cojennin.
fixes #26844.

Built from https://develop.svn.wordpress.org/branches/3.8@26969


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-17 03:30:10 +00:00
Andrew Nacin
c366307aee Dashicons: Update to the latest dashicons files.
Merges [26925] to the 3.8 branch.

props empireoflight, melchoyce.
fixes #26518.

Built from https://develop.svn.wordpress.org/branches/3.8@26965


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-16 22:13:10 +00:00
Andrew Ozz
8c614b689b Widgets: fix scaling of extra-wide widgets on 480px and 320px devices, fixes #26701 for 3.8.1.
Built from https://develop.svn.wordpress.org/branches/3.8@26964


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-16 22:00:11 +00:00
Andrew Nacin
32d8f24bc2 The comment screen hides the author column at narrow screen sizes; this adds back the author info above the comment content.
Merges [26961] to the 3.8 branch.

props SergeyBiryukov.
fixes #26618.

Built from https://develop.svn.wordpress.org/branches/3.8@26962


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-16 21:36:10 +00:00
Andrew Nacin
d9b3d8d571 Don't let Quick Draft ignore default comment_status and ping_status.
Merges [26959] to the 3.8 branch.

props kovshenin.
fixes #26722.

Built from https://develop.svn.wordpress.org/branches/3.8@26960


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-16 20:27:12 +00:00
Andrew Nacin
deb9f45605 Themes: Search the theme's slug too.
Merges [26921] to the 3.8 branch.

props matveb.
see #26730.

Built from https://develop.svn.wordpress.org/branches/3.8@26957


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:29:25 +00:00
Andrew Nacin
9a60d7c96f Keyboard navigation friendliness for themes.php.
Merges [26922] to the 3.8 branch.

props matveb, azaozz, jorbin.
fixes #26527.

Built from https://develop.svn.wordpress.org/branches/3.8@26956


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:29:11 +00:00
Andrew Nacin
b339f0306e Change 'Width' to 'Layout' to match the hard-coded list of translatable theme features in get_theme_feature_list().
Merges [26905] to the 3.8 branch.

props janrenn.
fixes #26777.

Built from https://develop.svn.wordpress.org/branches/3.8@26955


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:24:11 +00:00
Andrew Nacin
948efce330 Force LTR direction for code and plugin/theme editors.
Merges [26888] to the 3.8 branch.

props SergeyBiryukov, nivijah.
fixes #26666.

Built from https://develop.svn.wordpress.org/branches/3.8@26954


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:22:12 +00:00
Andrew Nacin
0784fea1a3 RTL: Flip half-star star ratings.
Merges [26952] to the 3.8 branch.

props SergeyBiryukov.
fixes #26814.

Built from https://develop.svn.wordpress.org/branches/3.8@26953


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:20:10 +00:00
Andrew Nacin
efa6b65c76 Avoid a fatal error in wp_reset_postdata() if $wp_query global is not set.
Merges [25932] to the 3.9 branch.

props SergeyBiryukov.
fixes #26775.

Built from https://develop.svn.wordpress.org/branches/3.8@26951


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:17:11 +00:00
Andrew Nacin
38e13206b5 Fix CSS clashes on the Network Themes page.
Merges [26919] [26923] to the 3.8 branch.

props SergeyBiryukov.
fixes #26513, #26517.

Built from https://develop.svn.wordpress.org/branches/3.8@26950


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 08:13:12 +00:00
Andrew Nacin
4ac653520b Adjust widths of toolbar items at mobile sizes for better fitting on narrow screens. Fixes toolbar wrapping when using multisite.
Merges [26920] to the 3.8 branch.

props iammattthomas.
fixes #26537.

Built from https://develop.svn.wordpress.org/branches/3.8@26949


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 07:58:11 +00:00
Andrew Nacin
e67f7a5d38 Break long words in Quick Draft content to prevent ugly overflow, as was previously done.
Merges [26928] to the 3.8 branch.

props aubreypwd, SergeyBiryukov.
fixes #26658.

Built from https://develop.svn.wordpress.org/branches/3.8@26948


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 07:50:11 +00:00
Andrew Nacin
72e139cc9c Fix incorrect -mox prefixes in CSS.
Merges [26887] to the 3.8 branch.

props morganestes.
fixes #26702.

Built from https://develop.svn.wordpress.org/branches/3.8@26947


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 07:46:12 +00:00
Andrew Nacin
44b3801d2f Query: Fix category handling in pre_get_posts when pretty permalinks are in use (category_name query variable).
Merges [26864] [26874] [26875] to the 3.8 branch.

props wonderboymusic, SergeyBiryukov.
fixes #26627.

Built from https://develop.svn.wordpress.org/branches/3.8@26946


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-15 07:34:13 +00:00
Andrew Nacin
047f9c7e46 Update versions in the 3.8 branch. see #26629.
Built from https://develop.svn.wordpress.org/branches/3.8@26939


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-13 18:16:11 +00:00
Helen Hou-Sandí
0a8375b03b Fix alignment and borders of plugin/theme updates on the Updates screen.
Merges [26935] to the 3.8 branch.

props morganestes, ocean90.
see #26699.

Built from https://develop.svn.wordpress.org/branches/3.8@26938


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-13 17:24:13 +00:00
Andrew Nacin
023e4da0e8 Pass the $user_id to the admin_color_scheme_picker hook for context.
Prevents the admin color scheme from changing when editing another user.

Merges [26924] to the 3.8 branch.
see #26607.

Built from https://develop.svn.wordpress.org/branches/3.8@26937


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-13 16:28:11 +00:00
Andrew Nacin
a1201ee5cf Add missing id attribute to "Search Installed Themes" input.
Merges [26885] to the 3.8 branch.

props SergeyBiryukov.
fixes #26599.

Built from https://develop.svn.wordpress.org/branches/3.8@26936


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-13 16:24:12 +00:00
Dion Hulse
3d7d844c5f Uploads: Fix the Order of Operations for wp_mkdir_p() which caused this branch to never be hit. Props fboender. Fixes #26781 for 3.8.1. See #25822
Built from https://develop.svn.wordpress.org/branches/3.8@26927


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-08 23:18:13 +00:00
Andrew Nacin
bcef561b53 The 3.8 branch is now 3.8.1-alpha.
Built from https://develop.svn.wordpress.org/branches/3.8@26862


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-12 19:45:13 +00:00
Andrew Nacin
23bc5da134 Twenty Fourteen POT update.
Built from https://develop.svn.wordpress.org/branches/3.8@26859


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-12 05:31:11 +00:00
Andrew Nacin
9c17470b3e Version bump.
Built from https://develop.svn.wordpress.org/branches/3.8@26856


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-11 23:58:39 +00:00
Andrew Nacin
ed26a60fdb Remove temporary hooks from the 3.8 branch.
fixes #25656 for 3.8.

Built from https://develop.svn.wordpress.org/branches/3.8@26855


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-11 23:58:28 +00:00
Andrew Nacin
7bee7fa3df Branch 3.8
Built from https://develop.svn.wordpress.org/@26854


git-svn-id: http://core.svn.wordpress.org/branches/3.8@26741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-11 23:03:50 +00:00
115 changed files with 2832 additions and 539 deletions

View File

@@ -1,6 +1,6 @@
WordPress - Web publishing software
Copyright 2013 by the contributors
Copyright 2015 by the contributors
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@@ -9,7 +9,7 @@
<body>
<h1 id="logo">
<a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
<br /> Version 3.8
<br /> Version 3.8.10
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>

View File

@@ -38,6 +38,50 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</a>
</h2>
<div class="changelog point-releases">
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 10 ); ?></h3>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 2 ), '3.8.10', number_format_i18n( 2 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.10' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue.',
'<strong>Version %1$s</strong> addressed some security issues.', 2 ), '3.8.9' ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.9' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 3 ), '3.8.8', number_format_i18n( 3 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.8' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.', 1 ), '3.8.7', number_format_i18n( 1 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.7' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue.',
'<strong>Version %1$s</strong> addressed some security issues.', 8 ), '3.8.6' ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.6' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue.',
'<strong>Version %1$s</strong> addressed some security issues.', 8 ), '3.8.5', number_format_i18n( 8 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.5' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue.',
'<strong>Version %1$s</strong> addressed some security issues.', 5 ), '3.8.4', number_format_i18n( 5 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.4' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.', 2 ), '3.8.3', number_format_i18n( 2 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.3' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 9 ), '3.8.2', number_format_i18n( 9 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.2' ); ?>
</p>
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.', 31 ), '3.8.1', number_format_i18n( 31 ) ); ?>
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_3.8.1' ); ?>
</p>
</div>
<div class="changelog">
<h2 class="about-headline-callout"><?php _e( 'Introducing a modern new&nbsp;design' ); ?></h2>
<img class="about-overview-img" src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/overview.png?1" />

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -305,7 +305,7 @@ body.rtl,
display: block;
max-width: none;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
}
}

View File

@@ -1 +1 @@
html{background:#eee;margin:0 20px}body{background:#fff;color:#555;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0074a2;text-decoration:none}a:hover{color:#2ea2cc}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0;padding-bottom:7px;font-weight:400}h2{font-size:16px}p,li,dd,dt{padding-bottom:2px;font-size:14px;line-height:1.5}code,.code{font-family:Consolas,Monaco,monospace}ul,ol,dl{padding:5px 22px 5px 5px}a img{border:0}abbr{border:0;font-variant:normal}#logo{margin:6px 0 14px;border-bottom:0;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:80px 80px;background-position:center top;background-repeat:no-repeat;color:#999;height:80px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:80px;text-indent:-9999px;outline:0;overflow:hidden;display:block}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.step .button-large{font-size:14px}textarea{border:1px solid #dfdfdf;font-family:"Open Sans",sans-serif;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 0 10px 20px;border-bottom:8px solid #fff;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:right;padding:16px 0 10px 20px;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:"Open Sans",sans-serif}.form-table input[type=text],.form-table input[type=password]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td{vertical-align:middle;padding:16px 0 10px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}#pass-strength-result{background-color:#eee;border-color:#ddd!important;border-style:solid;border-width:1px;margin:5px 0 5px 5px;padding:5px;text-align:center;width:200px;display:none}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#dbname,#uname,#pwd,#dbhost,#prefix,#user_login,#admin_email,#pass1,#pass2{direction:ltr}body.rtl,.rtl textarea,.rtl input,.rtl submit{font-family:Tahoma,sans-serif}:lang(he-il) body.rtl,:lang(he-il) .rtl textarea,:lang(he-il) .rtl input,:lang(he-il) .rtl submit{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table th,.form-table td{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}textarea,input{font-size:16px}.form-table td input[type=text],.form-table td input[type=password],.form-table td select,.form-table td textarea,.form-table span.description{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box;-mox-box-sizing:border-box}}
html{background:#eee;margin:0 20px}body{background:#fff;color:#555;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0074a2;text-decoration:none}a:hover{color:#2ea2cc}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0;padding-bottom:7px;font-weight:400}h2{font-size:16px}p,li,dd,dt{padding-bottom:2px;font-size:14px;line-height:1.5}code,.code{font-family:Consolas,Monaco,monospace}ul,ol,dl{padding:5px 22px 5px 5px}a img{border:0}abbr{border:0;font-variant:normal}#logo{margin:6px 0 14px;border-bottom:0;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:80px 80px;background-position:center top;background-repeat:no-repeat;color:#999;height:80px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:80px;text-indent:-9999px;outline:0;overflow:hidden;display:block}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.step .button-large{font-size:14px}textarea{border:1px solid #dfdfdf;font-family:"Open Sans",sans-serif;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 0 10px 20px;border-bottom:8px solid #fff;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:right;padding:16px 0 10px 20px;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:"Open Sans",sans-serif}.form-table input[type=text],.form-table input[type=password]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td{vertical-align:middle;padding:16px 0 10px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}#pass-strength-result{background-color:#eee;border-color:#ddd!important;border-style:solid;border-width:1px;margin:5px 0 5px 5px;padding:5px;text-align:center;width:200px;display:none}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#dbname,#uname,#pwd,#dbhost,#prefix,#user_login,#admin_email,#pass1,#pass2{direction:ltr}body.rtl,.rtl textarea,.rtl input,.rtl submit{font-family:Tahoma,sans-serif}:lang(he-il) body.rtl,:lang(he-il) .rtl textarea,:lang(he-il) .rtl input,:lang(he-il) .rtl submit{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table th,.form-table td{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}textarea,input{font-size:16px}.form-table td input[type=text],.form-table td input[type=password],.form-table td select,.form-table td textarea,.form-table span.description{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box;-moz-box-sizing:border-box}}

View File

@@ -305,7 +305,7 @@ body.rtl,
display: block;
max-width: none;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
}
}

View File

@@ -1 +1 @@
html{background:#eee;margin:0 20px}body{background:#fff;color:#555;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0074a2;text-decoration:none}a:hover{color:#2ea2cc}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0;padding-bottom:7px;font-weight:400}h2{font-size:16px}p,li,dd,dt{padding-bottom:2px;font-size:14px;line-height:1.5}code,.code{font-family:Consolas,Monaco,monospace}ul,ol,dl{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}#logo{margin:6px 0 14px;border-bottom:0;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:80px 80px;background-position:center top;background-repeat:no-repeat;color:#999;height:80px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:80px;text-indent:-9999px;outline:0;overflow:hidden;display:block}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.step .button-large{font-size:14px}textarea{border:1px solid #dfdfdf;font-family:"Open Sans",sans-serif;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;border-bottom:8px solid #fff;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:16px 20px 10px 0;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:"Open Sans",sans-serif}.form-table input[type=text],.form-table input[type=password]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td{vertical-align:middle;padding:16px 20px 10px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}#pass-strength-result{background-color:#eee;border-color:#ddd!important;border-style:solid;border-width:1px;margin:5px 5px 5px 0;padding:5px;text-align:center;width:200px;display:none}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#dbname,#uname,#pwd,#dbhost,#prefix,#user_login,#admin_email,#pass1,#pass2{direction:ltr}body.rtl,.rtl textarea,.rtl input,.rtl submit{font-family:Tahoma,sans-serif}:lang(he-il) body.rtl,:lang(he-il) .rtl textarea,:lang(he-il) .rtl input,:lang(he-il) .rtl submit{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table th,.form-table td{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}textarea,input{font-size:16px}.form-table td input[type=text],.form-table td input[type=password],.form-table td select,.form-table td textarea,.form-table span.description{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box;-mox-box-sizing:border-box}}
html{background:#eee;margin:0 20px}body{background:#fff;color:#555;font-family:"Open Sans",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.13);box-shadow:0 1px 3px rgba(0,0,0,.13)}a{color:#0074a2;text-decoration:none}a:hover{color:#2ea2cc}h1{border-bottom:1px solid #dedede;clear:both;color:#666;font-size:24px;margin:30px 0;padding:0;padding-bottom:7px;font-weight:400}h2{font-size:16px}p,li,dd,dt{padding-bottom:2px;font-size:14px;line-height:1.5}code,.code{font-family:Consolas,Monaco,monospace}ul,ol,dl{padding:5px 5px 5px 22px}a img{border:0}abbr{border:0;font-variant:normal}#logo{margin:6px 0 14px;border-bottom:0;text-align:center}#logo a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:80px 80px;background-position:center top;background-repeat:no-repeat;color:#999;height:80px;font-size:20px;font-weight:400;line-height:1.3em;margin:-130px auto 25px;padding:0;text-decoration:none;width:80px;text-indent:-9999px;outline:0;overflow:hidden;display:block}.step{margin:20px 0 15px}.step,th{text-align:left;padding:0}.step .button-large{font-size:14px}textarea{border:1px solid #dfdfdf;font-family:"Open Sans",sans-serif;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 20px 10px 0;border-bottom:8px solid #fff;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:left;padding:16px 20px 10px 0;width:140px;vertical-align:top}.form-table code{line-height:18px;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table input{line-height:20px;font-size:15px;padding:3px 5px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}input,submit{font-family:"Open Sans",sans-serif}.form-table input[type=text],.form-table input[type=password]{width:206px}.form-table th p{font-weight:400}.form-table.install-success td{vertical-align:middle;padding:16px 20px 10px 0}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:18px;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}#pass-strength-result{background-color:#eee;border-color:#ddd!important;border-style:solid;border-width:1px;margin:5px 5px 5px 0;padding:5px;text-align:center;width:200px;display:none}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important}#pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important}.message{border:1px solid #c00;padding:.5em .7em;margin:5px 0 15px;background-color:#ffebe8}#dbname,#uname,#pwd,#dbhost,#prefix,#user_login,#admin_email,#pass1,#pass2{direction:ltr}body.rtl,.rtl textarea,.rtl input,.rtl submit{font-family:Tahoma,sans-serif}:lang(he-il) body.rtl,:lang(he-il) .rtl textarea,:lang(he-il) .rtl input,:lang(he-il) .rtl submit{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table th,.form-table td{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}textarea,input{font-size:16px}.form-table td input[type=text],.form-table td input[type=password],.form-table td select,.form-table td textarea,.form-table span.description{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box;-moz-box-sizing:border-box}}

View File

@@ -564,9 +564,11 @@ ol.ol-decimal > li {
margin: 0 0 0.5em;
}
/* @noflip */
.code,
code {
font-family: Consolas, Monaco, monospace;
direction: ltr;
}
input.code {
@@ -725,7 +727,6 @@ select,
padding-top: 10px;
}
#update-plugins-table tbody th.check-column,
.plugins tbody th.check-column,
.plugins tbody {
padding: 8px 2px 0 0;
@@ -745,12 +746,22 @@ select,
.plugins thead th.check-column,
.plugins tfoot th.check-column,
.plugins .inactive th.check-column,
#update-plugins-table thead th.check-column,
#update-plugins-table tfoot th.check-column {
.plugins .inactive th.check-column {
padding-right: 6px;
}
.upgrade .plugins td,
.upgrade .plugins th {
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}
.upgrade .plugins tr:last-of-type td,
.upgrade .plugins tr:last-of-type th {
-webkit-box-shadow: none;
box-shadow: none;
}
#update-plugins-table thead th.check-column,
#update-plugins-table tfoot th.check-column {
padding-top: 11px;
@@ -1275,6 +1286,10 @@ p.search-box {
margin: 0;
}
.network-admin.themes-php p.search-box {
clear: right;
}
.search-box input[name="s"],
#search-plugins input[name="s"],
.tagsdiv .newtag {
@@ -2962,7 +2977,8 @@ body #dashboard-widgets .postbox form .submit {
/* Dashboard right now - Colors */
#dashboard_right_now li a:before {
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
color: #888;
}
@@ -2981,12 +2997,14 @@ body #dashboard-widgets .postbox form .submit {
margin: 0 0 1em;
}
#dashboard_right_now .warning a:before {
#dashboard_right_now .warning a:before,
#dashboard_right_now .warning span:before {
color: #d54e21;
}
/* Dashboard right now - Icons */
#dashboard_right_now li a:before {
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
content: '\f159';
font: normal 20px/1 'dashicons';
speak: none;
@@ -3001,11 +3019,13 @@ body #dashboard-widgets .postbox form .submit {
text-decoration: none !important;
}
#dashboard_right_now .page-count a:before {
#dashboard_right_now .page-count a:before,
#dashboard_right_now .page-count span:before {
content: '\f105';
}
#dashboard_right_now .post-count a:before {
#dashboard_right_now .post-count a:before,
#dashboard_right_now .post-count span:before {
content: '\f109';
}
@@ -3156,6 +3176,7 @@ form.initial-form.quickpress-open input#title {
#dashboard_quick_press .drafts p {
margin: 0;
word-wrap: break-word;
}
#dashboard_quick_press .draft-title {
@@ -3392,6 +3413,10 @@ table.fixed {
width: 10%;
}
.fixed .column-comment .comment-author {
display: none;
}
.fixed .column-response,
.fixed .column-categories,
.fixed .column-tags,
@@ -6333,11 +6358,15 @@ span.imgedit-scale-warn {
margin-bottom: 15px;
}
.network-admin.themes-php .wrap h2 {
margin-bottom: 0;
}
.themes-php .wrap h2 .button {
margin-right: 20px;
}
.themes-php .theme-count {
.themes-php .wrap .theme-count {
color: #fff;
border-radius: 30px;
background: #777;
@@ -6379,6 +6408,11 @@ span.imgedit-scale-warn {
box-sizing: border-box;
}
.ie8 .theme-browser .theme {
width: 30%;
margin: 0 0 4% 3%;
}
.theme-browser .theme:nth-child(3n) {
margin-left: 0;
}
@@ -6404,6 +6438,7 @@ span.imgedit-scale-warn {
/* Activate and Customize buttons, shown on hover */
.theme-browser .theme .theme-actions {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
opacity: 0;
-webkit-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
@@ -6417,6 +6452,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme:hover .theme-actions {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
@@ -6469,11 +6505,13 @@ span.imgedit-scale-warn {
}
.theme-browser .theme .more-details {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
opacity: 0;
position: absolute;
top: 35%;
left: 25%;
right: 25%;
background: #222;
background: rgba(0,0,0,0.7);
color: #fff;
font-size: 15px;
@@ -6486,8 +6524,27 @@ span.imgedit-scale-warn {
-webkit-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
}
.theme-browser .theme:focus {
outline: 1px dotted #222;
}
/* Hide shortcut actions and hover feedback when using tab navigation */
.theme-browser .theme:focus .theme-actions {
display: none;
}
/* Restore display of theme controls if you hover a focused theme */
.theme-browser .theme:focus:hover .theme-actions {
display: block;
}
.theme-browser .theme:focus .more-details {
opacity: 1;
}
/* Current theme needs to have its action always on view */
.theme-browser .theme.active:focus .theme-actions {
display: block;
}
.theme-browser.rendered .theme:hover .more-details {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
@@ -6514,7 +6571,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme .theme-update:before {
content: '\f113';
content: '\f463';
display: inline-block;
font: normal 20px/1 'dashicons';
margin: 0 0 0 6px;
@@ -6591,7 +6648,9 @@ span.imgedit-scale-warn {
.theme-browser .theme.add-new-theme:after {
display: block;
content: '';
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
background: transparent;
background: rgba(0, 0, 0, 0);
position: absolute;
top: 0;
@@ -6600,6 +6659,7 @@ span.imgedit-scale-warn {
bottom: 0;
padding: 10% 0 0 0;
text-shadow: none;
border: 5px dashed #d5d2ca;
border: 5px dashed rgba(0, 0, 0, 0.1);
-webkit-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
@@ -6609,6 +6669,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme.add-new-theme span:after {
background: #e5e5e5;
background: rgba(153, 153, 153, 0.1);
border-radius: 50%;
display: inline-block;
@@ -6647,6 +6708,7 @@ span.imgedit-scale-warn {
border-color: transparent;
color: #fff;
background: #0074a2;
content: '';
}
.theme-browser .theme.add-new-theme .theme-name {
@@ -6688,6 +6750,7 @@ span.imgedit-scale-warn {
left: 0;
top: 0;
bottom: 0;
background: #f1f1f1;
background: rgba( 238, 238, 238, 0.9 );
z-index: 10;
}
@@ -6711,10 +6774,13 @@ body.theme-overlay-open {
width: 50px;
text-align: center;
float: left;
border: 0;
border-right: 1px solid #ddd;
background-color: transparent;
}
.theme-overlay .theme-header .close:hover:before {
.theme-overlay .theme-header .close:hover:before,
.theme-overlay .theme-header .close:focus:before {
color: #fff;
}
@@ -6731,20 +6797,21 @@ body.theme-overlay-open {
.theme-overlay .theme-header .left {
cursor: pointer;
color: #777;
background-color: transparent;
height: 48px;
width: 54px;
float: right;
text-align: center;
border: 0;
border-left: 1px solid #ddd;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.theme-overlay .theme-header .close:hover,
.theme-overlay .theme-header .right:hover,
.theme-overlay .theme-header .left:hover {
.theme-overlay .theme-header .left:hover,
.theme-overlay .theme-header .close:focus,
.theme-overlay .theme-header .right:focus,
.theme-overlay .theme-header .left:focus {
background: #0074a2;
color: #fff;
}
@@ -6837,6 +6904,10 @@ body.folded .theme-overlay .theme-wrap {
border-top: 1px solid #eee;
}
.ie8 .theme-overlay .theme-actions {
border: 1px solid #eee;
}
.theme-overlay .theme-actions a {
margin-left: 5px;
margin-bottom: 5px;
@@ -6853,7 +6924,8 @@ body.folded .theme-overlay .theme-wrap {
background: transparent;
}
.theme-overlay .theme-actions .delete-theme:hover {
.theme-overlay .theme-actions .delete-theme:hover,
.theme-overlay .theme-actions .delete-theme:focus {
background: #d54e21;
color: #fff;
border-color: #d54e21;
@@ -7617,7 +7689,7 @@ div#custom-background-image img {
}
.plugin-update-tr .update-message:before {
content: '\f113';
content: '\f463';
display: inline-block;
font: normal 20px/1 'dashicons';
speak: none;
@@ -8593,7 +8665,13 @@ p.pagenav {
font-weight: 600;
}
.column-author img, .column-username img {
.column-comment .comment-author {
margin-bottom: 0.6em;
}
.column-author img,
.column-username img,
.column-comment .comment-author img {
float: right;
margin-left: 10px;
margin-top: 1px;
@@ -10101,6 +10179,12 @@ div.star-holder .star-rating {
content:'\f459';
}
.rtl .star-rating .star-half {
-webkit-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.star-rating .star-empty:before {
content:'\f154';
}
@@ -10644,6 +10728,12 @@ input.newtag:focus ~ div.taghint {
outline: none;
}
/* @noflip */
#template textarea,
#docs-list {
direction: ltr;
}
#template p {
width: 97%;
}
@@ -11375,6 +11465,17 @@ li#wp-admin-bar-menu-toggle {
width: 100%;
float: none;
}
div.widget {
margin: 0 auto 10px !important;
max-width: 480px;
}
}
@media screen and (max-width: 320px) {
div.widget {
max-width: 320px;
}
}
@media only screen and (max-width: 768px) {
@@ -11762,19 +11863,13 @@ li#wp-admin-bar-menu-toggle {
.auto-fold #adminmenuback,
.auto-fold #adminmenuwrap {
position: absolute;
right: 0;
width: 190px;
z-index: 100;
}
.auto-fold #adminmenuback,
.auto-fold #adminmenuwrap {
right: -200px;
}
.auto-fold #adminmenuwrap,
.auto-fold #adminmenu,
.auto-fold #adminmenuback {
width: 190px;
display: none;
}
.auto-fold #adminmenu li.menu-top {
@@ -11880,7 +11975,7 @@ li#wp-admin-bar-menu-toggle {
.auto-fold .wp-responsive-open #adminmenuback,
.auto-fold .wp-responsive-open #adminmenuwrap {
right: 0;
display: block;
}
/* General New Post Form */
@@ -12242,6 +12337,10 @@ li#wp-admin-bar-menu-toggle {
display: none;
}
.fixed .column-comment .comment-author {
display: block;
}
/* Posts */
.column-title {
width: 85%;
@@ -12398,7 +12497,7 @@ li#wp-admin-bar-menu-toggle {
display: block;
max-width: none;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
}
input[type=text].small-text,
@@ -12417,7 +12516,7 @@ li#wp-admin-bar-menu-toggle {
#pass-strength-result {
width: 100%;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 8px;
}
@@ -12744,12 +12843,12 @@ li#wp-admin-bar-menu-toggle {
.widefat tbody th.check-column input[type="checkbox"] {
margin-top: -3px;
margin-right: 9px;
margin-right: 8px;
}
.wp-list-table.plugins .active .check-column input,
.wp-list-table.plugins .update .check-column input {
margin-right: 6px;
margin-right: 5px;
}
.wp-list-table.plugins thead .check-column input,

File diff suppressed because one or more lines are too long

View File

@@ -564,9 +564,11 @@ ol.ol-decimal > li {
margin: 0 0 0.5em;
}
/* @noflip */
.code,
code {
font-family: Consolas, Monaco, monospace;
direction: ltr;
}
input.code {
@@ -725,7 +727,6 @@ select,
padding-top: 10px;
}
#update-plugins-table tbody th.check-column,
.plugins tbody th.check-column,
.plugins tbody {
padding: 8px 0 0 2px;
@@ -745,12 +746,22 @@ select,
.plugins thead th.check-column,
.plugins tfoot th.check-column,
.plugins .inactive th.check-column,
#update-plugins-table thead th.check-column,
#update-plugins-table tfoot th.check-column {
.plugins .inactive th.check-column {
padding-left: 6px;
}
.upgrade .plugins td,
.upgrade .plugins th {
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}
.upgrade .plugins tr:last-of-type td,
.upgrade .plugins tr:last-of-type th {
-webkit-box-shadow: none;
box-shadow: none;
}
#update-plugins-table thead th.check-column,
#update-plugins-table tfoot th.check-column {
padding-top: 11px;
@@ -1275,6 +1286,10 @@ p.search-box {
margin: 0;
}
.network-admin.themes-php p.search-box {
clear: left;
}
.search-box input[name="s"],
#search-plugins input[name="s"],
.tagsdiv .newtag {
@@ -2962,7 +2977,8 @@ body #dashboard-widgets .postbox form .submit {
/* Dashboard right now - Colors */
#dashboard_right_now li a:before {
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
color: #888;
}
@@ -2981,12 +2997,14 @@ body #dashboard-widgets .postbox form .submit {
margin: 0 0 1em;
}
#dashboard_right_now .warning a:before {
#dashboard_right_now .warning a:before,
#dashboard_right_now .warning span:before {
color: #d54e21;
}
/* Dashboard right now - Icons */
#dashboard_right_now li a:before {
#dashboard_right_now li a:before,
#dashboard_right_now li span:before {
content: '\f159';
font: normal 20px/1 'dashicons';
speak: none;
@@ -3001,11 +3019,13 @@ body #dashboard-widgets .postbox form .submit {
text-decoration: none !important;
}
#dashboard_right_now .page-count a:before {
#dashboard_right_now .page-count a:before,
#dashboard_right_now .page-count span:before {
content: '\f105';
}
#dashboard_right_now .post-count a:before {
#dashboard_right_now .post-count a:before,
#dashboard_right_now .post-count span:before {
content: '\f109';
}
@@ -3156,6 +3176,7 @@ form.initial-form.quickpress-open input#title {
#dashboard_quick_press .drafts p {
margin: 0;
word-wrap: break-word;
}
#dashboard_quick_press .draft-title {
@@ -3392,6 +3413,10 @@ table.fixed {
width: 10%;
}
.fixed .column-comment .comment-author {
display: none;
}
.fixed .column-response,
.fixed .column-categories,
.fixed .column-tags,
@@ -6333,11 +6358,15 @@ span.imgedit-scale-warn {
margin-bottom: 15px;
}
.network-admin.themes-php .wrap h2 {
margin-bottom: 0;
}
.themes-php .wrap h2 .button {
margin-left: 20px;
}
.themes-php .theme-count {
.themes-php .wrap .theme-count {
color: #fff;
border-radius: 30px;
background: #777;
@@ -6379,6 +6408,11 @@ span.imgedit-scale-warn {
box-sizing: border-box;
}
.ie8 .theme-browser .theme {
width: 30%;
margin: 0 3% 4% 0;
}
.theme-browser .theme:nth-child(3n) {
margin-right: 0;
}
@@ -6404,6 +6438,7 @@ span.imgedit-scale-warn {
/* Activate and Customize buttons, shown on hover */
.theme-browser .theme .theme-actions {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
opacity: 0;
-webkit-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
@@ -6417,6 +6452,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme:hover .theme-actions {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
@@ -6469,11 +6505,13 @@ span.imgedit-scale-warn {
}
.theme-browser .theme .more-details {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
opacity: 0;
position: absolute;
top: 35%;
right: 25%;
left: 25%;
background: #222;
background: rgba(0,0,0,0.7);
color: #fff;
font-size: 15px;
@@ -6486,8 +6524,27 @@ span.imgedit-scale-warn {
-webkit-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
}
.theme-browser .theme:focus {
outline: 1px dotted #222;
}
/* Hide shortcut actions and hover feedback when using tab navigation */
.theme-browser .theme:focus .theme-actions {
display: none;
}
/* Restore display of theme controls if you hover a focused theme */
.theme-browser .theme:focus:hover .theme-actions {
display: block;
}
.theme-browser .theme:focus .more-details {
opacity: 1;
}
/* Current theme needs to have its action always on view */
.theme-browser .theme.active:focus .theme-actions {
display: block;
}
.theme-browser.rendered .theme:hover .more-details {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
@@ -6514,7 +6571,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme .theme-update:before {
content: '\f113';
content: '\f463';
display: inline-block;
font: normal 20px/1 'dashicons';
margin: 0 6px 0 0;
@@ -6591,7 +6648,9 @@ span.imgedit-scale-warn {
.theme-browser .theme.add-new-theme:after {
display: block;
content: '';
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
background: transparent;
background: rgba(0, 0, 0, 0);
position: absolute;
top: 0;
@@ -6600,6 +6659,7 @@ span.imgedit-scale-warn {
bottom: 0;
padding: 10% 0 0 0;
text-shadow: none;
border: 5px dashed #d5d2ca;
border: 5px dashed rgba(0, 0, 0, 0.1);
-webkit-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
@@ -6609,6 +6669,7 @@ span.imgedit-scale-warn {
}
.theme-browser .theme.add-new-theme span:after {
background: #e5e5e5;
background: rgba(153, 153, 153, 0.1);
border-radius: 50%;
display: inline-block;
@@ -6647,6 +6708,7 @@ span.imgedit-scale-warn {
border-color: transparent;
color: #fff;
background: #0074a2;
content: '';
}
.theme-browser .theme.add-new-theme .theme-name {
@@ -6688,6 +6750,7 @@ span.imgedit-scale-warn {
right: 0;
top: 0;
bottom: 0;
background: #f1f1f1;
background: rgba( 238, 238, 238, 0.9 );
z-index: 10;
}
@@ -6711,10 +6774,13 @@ body.theme-overlay-open {
width: 50px;
text-align: center;
float: right;
border: 0;
border-left: 1px solid #ddd;
background-color: transparent;
}
.theme-overlay .theme-header .close:hover:before {
.theme-overlay .theme-header .close:hover:before,
.theme-overlay .theme-header .close:focus:before {
color: #fff;
}
@@ -6731,20 +6797,21 @@ body.theme-overlay-open {
.theme-overlay .theme-header .left {
cursor: pointer;
color: #777;
background-color: transparent;
height: 48px;
width: 54px;
float: left;
text-align: center;
border: 0;
border-right: 1px solid #ddd;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.theme-overlay .theme-header .close:hover,
.theme-overlay .theme-header .right:hover,
.theme-overlay .theme-header .left:hover {
.theme-overlay .theme-header .left:hover,
.theme-overlay .theme-header .close:focus,
.theme-overlay .theme-header .right:focus,
.theme-overlay .theme-header .left:focus {
background: #0074a2;
color: #fff;
}
@@ -6837,6 +6904,10 @@ body.folded .theme-overlay .theme-wrap {
border-top: 1px solid #eee;
}
.ie8 .theme-overlay .theme-actions {
border: 1px solid #eee;
}
.theme-overlay .theme-actions a {
margin-right: 5px;
margin-bottom: 5px;
@@ -6853,7 +6924,8 @@ body.folded .theme-overlay .theme-wrap {
background: transparent;
}
.theme-overlay .theme-actions .delete-theme:hover {
.theme-overlay .theme-actions .delete-theme:hover,
.theme-overlay .theme-actions .delete-theme:focus {
background: #d54e21;
color: #fff;
border-color: #d54e21;
@@ -7617,7 +7689,7 @@ div#custom-background-image img {
}
.plugin-update-tr .update-message:before {
content: '\f113';
content: '\f463';
display: inline-block;
font: normal 20px/1 'dashicons';
speak: none;
@@ -8593,7 +8665,13 @@ p.pagenav {
font-weight: 600;
}
.column-author img, .column-username img {
.column-comment .comment-author {
margin-bottom: 0.6em;
}
.column-author img,
.column-username img,
.column-comment .comment-author img {
float: left;
margin-right: 10px;
margin-top: 1px;
@@ -10101,6 +10179,12 @@ div.star-holder .star-rating {
content:'\f459';
}
.rtl .star-rating .star-half {
-webkit-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.star-rating .star-empty:before {
content:'\f154';
}
@@ -10644,6 +10728,12 @@ input.newtag:focus ~ div.taghint {
outline: none;
}
/* @noflip */
#template textarea,
#docs-list {
direction: ltr;
}
#template p {
width: 97%;
}
@@ -11375,6 +11465,17 @@ li#wp-admin-bar-menu-toggle {
width: 100%;
float: none;
}
div.widget {
margin: 0 auto 10px !important;
max-width: 480px;
}
}
@media screen and (max-width: 320px) {
div.widget {
max-width: 320px;
}
}
@media only screen and (max-width: 768px) {
@@ -11762,19 +11863,13 @@ li#wp-admin-bar-menu-toggle {
.auto-fold #adminmenuback,
.auto-fold #adminmenuwrap {
position: absolute;
left: 0;
width: 190px;
z-index: 100;
}
.auto-fold #adminmenuback,
.auto-fold #adminmenuwrap {
left: -200px;
}
.auto-fold #adminmenuwrap,
.auto-fold #adminmenu,
.auto-fold #adminmenuback {
width: 190px;
display: none;
}
.auto-fold #adminmenu li.menu-top {
@@ -11880,7 +11975,7 @@ li#wp-admin-bar-menu-toggle {
.auto-fold .wp-responsive-open #adminmenuback,
.auto-fold .wp-responsive-open #adminmenuwrap {
left: 0;
display: block;
}
/* General New Post Form */
@@ -12242,6 +12337,10 @@ li#wp-admin-bar-menu-toggle {
display: none;
}
.fixed .column-comment .comment-author {
display: block;
}
/* Posts */
.column-title {
width: 85%;
@@ -12398,7 +12497,7 @@ li#wp-admin-bar-menu-toggle {
display: block;
max-width: none;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
}
input[type=text].small-text,
@@ -12417,7 +12516,7 @@ li#wp-admin-bar-menu-toggle {
#pass-strength-result {
width: 100%;
box-sizing: border-box;
-mox-box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 8px;
}
@@ -12744,12 +12843,12 @@ li#wp-admin-bar-menu-toggle {
.widefat tbody th.check-column input[type="checkbox"] {
margin-top: -3px;
margin-left: 9px;
margin-left: 8px;
}
.wp-list-table.plugins .active .check-column input,
.wp-list-table.plugins .update .check-column input {
margin-left: 6px;
margin-left: 5px;
}
.wp-list-table.plugins thead .check-column input,

File diff suppressed because one or more lines are too long

View File

@@ -390,6 +390,10 @@ class WP_Comments_List_Table extends WP_List_Table {
$delete_url = esc_url( $url . "&action=deletecomment&$del_nonce" );
}
echo '<div class="comment-author">';
$this->column_author( $comment );
echo '</div>';
echo '<div class="submitted-on">';
/* translators: 2: comment date, 3: comment time */
printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url,
@@ -533,9 +537,9 @@ class WP_Comments_List_Table extends WP_List_Table {
if ( current_user_can( 'edit_post', $post->ID ) ) {
$post_link = "<a href='" . get_edit_post_link( $post->ID ) . "'>";
$post_link .= get_the_title( $post->ID ) . '</a>';
$post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>';
} else {
$post_link = get_the_title( $post->ID );
$post_link = esc_html( get_the_title( $post->ID ) );
}
echo '<div class="response-links"><span class="post-com-count-wrapper">';

View File

@@ -839,7 +839,7 @@ class WP_Posts_List_Table extends WP_List_Table {
<?php if ( !$bulk ) echo $authors_dropdown;
endif; // post_type_supports author
if ( !$bulk ) :
if ( !$bulk && $can_publish ) :
?>
<div class="inline-edit-group">

View File

@@ -1871,18 +1871,21 @@ class WP_Automatic_Updater {
if ( ! $this->should_update( $type, $item, $context ) )
return false;
$upgrader_item = $item;
switch ( $type ) {
case 'core':
$skin->feedback( __( 'Updating to WordPress %s' ), $item->version );
$item_name = sprintf( __( 'WordPress %s' ), $item->version );
break;
case 'theme':
$theme = wp_get_theme( $item );
$upgrader_item = $item->theme;
$theme = wp_get_theme( $upgrader_item );
$item_name = $theme->Get( 'Name' );
$skin->feedback( __( 'Updating theme: %s' ), $item_name );
break;
case 'plugin':
$plugin_data = get_plugin_data( $context . '/' . $item );
$upgrader_item = $item->plugin;
$plugin_data = get_plugin_data( $context . '/' . $upgrader_item );
$item_name = $plugin_data['Name'];
$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
break;
@@ -1894,7 +1897,7 @@ class WP_Automatic_Updater {
}
// Boom, This sites about to get a whole new splash of paint!
$upgrade_result = $upgrader->upgrade( $item, array(
$upgrade_result = $upgrader->upgrade( $upgrader_item, array(
'clear_update_cache' => false,
'pre_check_md5' => false, /* always use partial builds if possible for core updates */
'attempt_rollback' => true, /* only available for core updates */
@@ -1968,7 +1971,7 @@ class WP_Automatic_Updater {
wp_update_plugins(); // Check for Plugin updates
$plugin_updates = get_site_transient( 'update_plugins' );
if ( $plugin_updates && !empty( $plugin_updates->response ) ) {
foreach ( array_keys( $plugin_updates->response ) as $plugin ) {
foreach ( $plugin_updates->response as $plugin ) {
$this->update( 'plugin', $plugin );
}
// Force refresh of plugin update information
@@ -1979,8 +1982,8 @@ class WP_Automatic_Updater {
wp_update_themes(); // Check for Theme updates
$theme_updates = get_site_transient( 'update_themes' );
if ( $theme_updates && !empty( $theme_updates->response ) ) {
foreach ( array_keys( $theme_updates->response ) as $theme ) {
$this->update( 'theme', $theme );
foreach ( $theme_updates->response as $theme ) {
$this->update( 'theme', (object) $theme );
}
// Force refresh of theme update information
wp_clean_themes_cache();
@@ -1995,8 +1998,21 @@ class WP_Automatic_Updater {
// Clean up, and check for any pending translations
// (Core_Upgrader checks for core updates)
wp_update_themes(); // Check for Theme updates
wp_update_plugins(); // Check for Plugin updates
$theme_stats = array();
if ( isset( $this->update_results['theme'] ) ) {
foreach ( $this->update_results['theme'] as $upgrade ) {
$theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result );
}
}
wp_update_themes( $theme_stats ); // Check for Theme updates
$plugin_stats = array();
if ( isset( $this->update_results['plugin'] ) ) {
foreach ( $this->update_results['plugin'] as $upgrade ) {
$plugin_stats[ $upgrade->item->plugin ] = ( true === $upgrade->result );
}
}
wp_update_plugins( $plugin_stats ); // Check for Plugin updates
// Finally, Process any new translations
$language_updates = wp_get_translation_updates();

View File

@@ -194,7 +194,13 @@ function wp_dashboard_right_now() {
$text = _n( '%s Page', '%s Pages', $num_posts->publish );
}
$text = sprintf( $text, number_format_i18n( $num_posts->publish ) );
printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text );
$post_type_object = get_post_type_object( $post_type );
if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) {
printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text );
} else {
printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text );
}
}
}
// Comments
@@ -327,6 +333,10 @@ function wp_network_dashboard_right_now() {
function wp_dashboard_quick_press( $error_msg = false ) {
global $post_ID;
if ( ! current_user_can( 'edit_posts' ) ) {
return;
}
/* Check if a new auto-draft (= no new post_ID) is needed or if the old can be used */
$last_post_id = (int) get_user_option( 'dashboard_quick_press_last_post_id' ); // Get the last post_ID
if ( $last_post_id ) {
@@ -424,7 +434,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
$GLOBALS['comment'] =& $comment;
$comment_post_url = get_edit_post_link( $comment->comment_post_ID );
$comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
$comment_post_title = _draft_or_post_title( $comment->comment_post_ID );
$comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>";
$comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>';

View File

@@ -316,6 +316,12 @@ function wp_read_image_metadata( $file ) {
$meta[ $key ] = utf8_encode( $meta[ $key ] );
}
foreach ( $meta as &$value ) {
if ( is_string( $value ) ) {
$value = wp_kses_post( $value );
}
}
return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType );
}

View File

@@ -561,7 +561,7 @@ function saveDomDocument($doc, $filename) {
*
* @since 3.0.0
*/
function admin_color_scheme_picker() {
function admin_color_scheme_picker( $user_id ) {
global $_wp_admin_css_colors;
ksort( $_wp_admin_css_colors );
@@ -571,7 +571,7 @@ function admin_color_scheme_picker() {
$_wp_admin_css_colors = array_filter( array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors ) );
}
$current_color = get_user_option( 'admin_color' );
$current_color = get_user_option( 'admin_color', $user_id );
if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) {
$current_color = 'fresh';

View File

@@ -100,6 +100,10 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
$post_id = false;
$previous_status = $post_id ? get_post_field( 'post_status', $post_id ) : false;
if ( isset( $post_data['post_status'] ) && 'private' == $post_data['post_status'] && ! current_user_can( $ptype->cap->publish_posts ) ) {
$post_data['post_status'] = $previous_status ? $previous_status : 'pending';
}
$published_statuses = array( 'publish', 'future' );
// Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published.
@@ -111,6 +115,10 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
if ( ! isset($post_data['post_status']) )
$post_data['post_status'] = $previous_status;
if ( isset( $post_data['post_password'] ) && ! current_user_can( $ptype->cap->publish_posts ) ) {
unset( $post_data['post_password'] );
}
if (!isset( $post_data['comment_status'] ))
$post_data['comment_status'] = 'closed';
@@ -158,6 +166,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
* @return int Post ID.
*/
function edit_post( $post_data = null ) {
global $wpdb;
if ( empty($post_data) )
$post_data = &$_POST;
@@ -170,6 +179,14 @@ function edit_post( $post_data = null ) {
$post_data['post_type'] = $post->post_type;
$post_data['post_mime_type'] = $post->post_mime_type;
if ( ! empty( $post_data['post_status'] ) ) {
$post_data['post_status'] = sanitize_key( $post_data['post_status'] );
if ( 'inherit' == $post_data['post_status'] ) {
unset( $post_data['post_status'] );
}
}
$ptype = get_post_type_object($post_data['post_type']);
if ( !current_user_can( 'edit_post', $post_ID ) ) {
if ( 'page' == $post_data['post_type'] )
@@ -187,13 +204,6 @@ function edit_post( $post_data = null ) {
_wp_upgrade_revisions_of_post( $post, wp_get_post_revisions( $post_ID ) );
}
$post_data = _wp_translate_postdata( true, $post_data );
if ( is_wp_error($post_data) )
wp_die( $post_data->get_error_message() );
if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) {
$post_data['post_status'] = 'draft';
}
if ( isset($post_data['visibility']) ) {
switch ( $post_data['visibility'] ) {
case 'public' :
@@ -210,6 +220,14 @@ function edit_post( $post_data = null ) {
}
}
$post_data = _wp_translate_postdata( true, $post_data );
if ( is_wp_error($post_data) )
wp_die( $post_data->get_error_message() );
if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) {
$post_data['post_status'] = 'draft';
}
// Post Formats
if ( isset( $post_data['post_format'] ) )
set_post_format( $post_ID, $post_data['post_format'] );
@@ -278,7 +296,19 @@ function edit_post( $post_data = null ) {
update_post_meta( $post_ID, '_edit_last', get_current_user_id() );
wp_update_post( $post_data );
$success = wp_update_post( $post_data );
// If the save failed, see if we can sanity check the main fields and try again
if ( ! $success && is_callable( array( $wpdb, 'strip_invalid_text_for_column' ) ) ) {
$fields = array( 'post_title', 'post_content', 'post_excerpt' );
foreach( $fields as $field ) {
if ( isset( $post_data[ $field ] ) ) {
$post_data[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->posts, $field, $post_data[ $field ] );
}
}
wp_update_post( $post_data );
}
// Now that we have an ID we can fix any attachment anchor hrefs
_fix_attachment_links( $post_ID );
@@ -332,6 +362,14 @@ function bulk_edit_posts( $post_data = null ) {
}
unset($post_data['_status']);
if ( ! empty( $post_data['post_status'] ) ) {
$post_data['post_status'] = sanitize_key( $post_data['post_status'] );
if ( 'inherit' == $post_data['post_status'] ) {
unset( $post_data['post_status'] );
}
}
$post_IDs = array_map( 'intval', (array) $post_data['post'] );
$reset = array(
@@ -386,7 +424,12 @@ function bulk_edit_posts( $post_data = null ) {
}
$updated = $skipped = $locked = array();
$shared_post_data = $post_data;
foreach ( $post_IDs as $post_ID ) {
// Start with fresh post data with each iteration.
$post_data = $shared_post_data;
$post_type_object = get_post_type_object( get_post_type( $post_ID ) );
if ( !isset( $post_type_object ) || ( isset($children) && in_array($post_ID, $children) ) || !current_user_can( 'edit_post', $post_ID ) ) {
@@ -422,10 +465,25 @@ function bulk_edit_posts( $post_data = null ) {
unset( $post_data['tax_input']['category'] );
}
$post_data['post_type'] = $post->post_type;
$post_data['post_mime_type'] = $post->post_mime_type;
$post_data['guid'] = $post->guid;
foreach ( array( 'comment_status', 'ping_status', 'post_author' ) as $field ) {
if ( ! isset( $post_data[ $field ] ) ) {
$post_data[ $field ] = $post->$field;
}
}
$post_data['ID'] = $post_ID;
$post_data['post_ID'] = $post_ID;
$post_data = _wp_translate_postdata( true, $post_data );
if ( is_wp_error( $post_data ) ) {
$skipped[] = $post_ID;
continue;
}
$updated[] = wp_update_post( $post_data );
if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) {
@@ -569,10 +627,6 @@ function wp_write_post() {
if ( isset( $_POST['post_ID'] ) )
return edit_post();
$translated = _wp_translate_postdata( false );
if ( is_wp_error($translated) )
return $translated;
if ( isset($_POST['visibility']) ) {
switch ( $_POST['visibility'] ) {
case 'public' :
@@ -589,6 +643,10 @@ function wp_write_post() {
}
}
$translated = _wp_translate_postdata( false );
if ( is_wp_error($translated) )
return $translated;
// Create the post.
$post_ID = wp_insert_post( $_POST );
if ( is_wp_error( $post_ID ) )
@@ -1296,7 +1354,7 @@ function _admin_notice_post_locked() {
// Allow plugins to prevent some users overriding the post lock
if ( $override ) {
?>
<a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', get_edit_post_link( $post->ID, 'url' ) ) ); ?>"><?php _e('Take over'); ?></a>
<a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', wp_nonce_url( get_edit_post_link( $post->ID, 'url' ), 'lock-post_' . $post->ID ) ) ); ?>"><?php _e('Take over'); ?></a>
<?php
}

View File

@@ -1373,7 +1373,7 @@ function _draft_or_post_title( $post = 0 ) {
$title = get_the_title( $post );
if ( empty( $title ) )
$title = __( '(no title)' );
return $title;
return esc_html( $title );
}
/**

View File

@@ -250,8 +250,13 @@ function get_theme_feature_list( $api = true ) {
set_site_transient( 'wporg_theme_feature_list', $feature_list, 10800 );
$category_translations = array( 'Colors' => __('Colors'), 'Columns' => __('Columns'), 'Width' => __('Width'),
'Features' => __('Features'), 'Subject' => __('Subject') );
$category_translations = array(
'Colors' => __( 'Colors' ),
'Columns' => __( 'Columns' ),
'Layout' => __( 'Layout' ),
'Features' => __( 'Features' ),
'Subject' => __( 'Subject' )
);
// Loop over the wporg canonical list and apply translations
$wporg_features = array();

View File

@@ -923,6 +923,9 @@ function update_core($from, $to) {
$wp_filesystem->delete($old_file, true);
}
// Remove any Genericons example.html's from the filesystem
_upgrade_422_remove_genericons();
// Upgrade DB with separate request
apply_filters('update_feedback', __('Upgrading database&#8230;'));
$db_upgrade_url = admin_url('upgrade.php?step=upgrade_db');
@@ -1051,3 +1054,67 @@ window.location = 'about.php?updated';
exit();
}
add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );
/**
* Cleans up Genericons example files.
*
* @since 4.2.2
*/
function _upgrade_422_remove_genericons() {
global $wp_theme_directories, $wp_filesystem;
// A list of the affected files using the filesystem absolute paths.
$affected_files = array();
// Themes
foreach ( $wp_theme_directories as $directory ) {
$affected_theme_files = _upgrade_422_find_genericons_files_in_folder( $directory );
$affected_files = array_merge( $affected_files, $affected_theme_files );
}
// Plugins
$affected_plugin_files = _upgrade_422_find_genericons_files_in_folder( WP_PLUGIN_DIR );
$affected_files = array_merge( $affected_files, $affected_plugin_files );
foreach ( $affected_files as $file ) {
$gen_dir = $wp_filesystem->find_folder( trailingslashit( dirname( $file ) ) );
if ( empty( $gen_dir ) ) {
continue;
}
// The path when the file is accessed via WP_Filesystem may differ in the case of FTP
$remote_file = $gen_dir . basename( $file );
if ( ! $wp_filesystem->exists( $remote_file ) ) {
continue;
}
if ( ! $wp_filesystem->delete( $remote_file, false, 'f' ) ) {
$wp_filesystem->put_contents( $remote_file, '' );
}
}
}
/**
* Recursively find Genericons example files in a given folder.
*
* @ignore
* @since 4.2.2
*
* @param string $directory Directory path. Expects trailingslashed.
* @return array
*/
function _upgrade_422_find_genericons_files_in_folder( $directory ) {
$directory = trailingslashit( $directory );
$files = array();
if ( file_exists( "{$directory}example.html" ) && false !== strpos( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' ) ) {
$files[] = "{$directory}example.html";
}
foreach ( glob( $directory . '*', GLOB_ONLYDIR ) as $dir ) {
$files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder( $dir ) );
}
return $files;
}

View File

@@ -411,6 +411,12 @@ function upgrade_all() {
if ( $wp_current_db_version < 26691 )
upgrade_380();
if ( $wp_current_db_version < 26692 )
upgrade_383();
if ( $wp_current_db_version < 26694 )
upgrade_389();
maybe_disable_link_manager();
maybe_disable_automattic_widgets();
@@ -1251,6 +1257,92 @@ function upgrade_380() {
deactivate_plugins( array( 'mp6/mp6.php' ), true );
}
}
/**
* Execute changes made in WordPress 3.8.3.
*
* @since 3.8.3
*/
function upgrade_383() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 26692 ) {
// Find all lost Quick Draft auto-drafts and promote them to proper drafts.
$posts = $wpdb->get_results( "SELECT ID, post_title, post_content FROM $wpdb->posts WHERE post_type = 'post'
AND post_status = 'auto-draft' AND post_date >= '2014-04-08 00:00:00'" );
foreach ( $posts as $post ) {
// A regular auto-draft should never have content as that would mean it should have been promoted.
// If an auto-draft has content, it's from Quick Draft and it should be recovered.
if ( '' === $post->post_content ) {
// If it does not have content, we must evaluate whether the title should be recovered.
if ( 'Auto Draft' === $post->post_title || __( 'Auto Draft' ) === $post->post_title ) {
// This a plain old auto draft. Ignore it.
continue;
}
}
$wpdb->update( $wpdb->posts, array( 'post_status' => 'draft' ), array( 'ID' => $post->ID ) );
clean_post_cache( $post->ID );
}
}
}
/**
* Execute changes made in WordPress 3.8.8.
*
* @since 3.8.8
*/
function upgrade_388() {
}
/**
* Execute changes made in WordPress 3.8.9.
*
* @since 3.8.9
*/
function upgrade_389() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 26694 ) {
$content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
if ( is_wp_error( $content_length ) ) {
return;
}
if ( false === $content_length ) {
$content_length = array(
'type' => 'byte',
'length' => 65535,
);
} elseif ( ! is_array( $content_length ) ) {
$length = (int) $content_length > 0 ? (int) $content_length : 65535;
$content_length = array(
'type' => 'byte',
'length' => $length
);
}
if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
// Sites with malformed DB schemas are on their own.
return;
}
$allowed_length = intval( $content_length['length'] ) - 10;
$comments = $wpdb->get_results(
"SELECT `comment_ID` FROM `{$wpdb->comments}`
WHERE `comment_date_gmt` > '2015-04-26'
AND LENGTH( `comment_content` ) >= {$allowed_length}
AND ( `comment_content` LIKE '%<%' OR `comment_content` LIKE '%>%' )"
);
foreach ( $comments as $comment ) {
wp_delete_comment( $comment->comment_ID, true );
}
}
}
/**
* Execute network level changes
*

View File

@@ -553,10 +553,18 @@ $(document).ready( function() {
self.deactivate();
});
$( '#wp-admin-bar-menu-toggle a' ).attr( 'aria-expanded', 'false' );
// Toggle sidebar when toggle is clicked
$( '#wp-admin-bar-menu-toggle' ).on( 'click.wp-responsive', function( event ) {
event.preventDefault();
$wpwrap.toggleClass( 'wp-responsive-open' );
if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) {
$(this).find('a').attr( 'aria-expanded', 'true' );
$( '#adminmenu a:first' ).focus();
} else {
$(this).find('a').attr( 'aria-expanded', 'false' );
}
} );
// Add menu events

File diff suppressed because one or more lines are too long

View File

@@ -159,9 +159,9 @@ jQuery(document).ready( function($) {
editor.on('focus input propertychange', function() {
var $this = $(this),
// &nbsp; is to ensure that the height of a final trailing newline is included.
textareaContent = $this.val().replace(/\n/g, '<br>') + '&nbsp;',
textareaContent = $this.val() + '&nbsp;',
// 2px is for border-top & border-bottom
cloneHeight = clone.css('width', $this.css('width')).html(textareaContent).outerHeight() + 2;
cloneHeight = clone.css('width', $this.css('width')).text(textareaContent).outerHeight() + 2;
// Default to having scrollbars
editor.css('overflow-y', 'auto');

View File

@@ -1 +1 @@
var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(a){function b(){a("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>');var b=a(".quick-draft-textarea-clone"),c=a("#content"),d=c.height(),e=a(window).height()-100;b.css({"font-family":c.css("font-family"),"font-size":c.css("font-size"),"line-height":c.css("line-height"),"padding-bottom":c.css("paddingBottom"),"padding-left":c.css("paddingLeft"),"padding-right":c.css("paddingRight"),"padding-top":c.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),c.on("focus input propertychange",function(){var f=a(this),g=f.val().replace(/\n/g,"<br>")+"&nbsp;",h=b.css("width",f.css("width")).html(g).outerHeight()+2;c.css("overflow-y","auto"),h===d||h>=e&&d>=e||(d=h>e?e:h,c.css("overflow-y","hidden"),f.css("height",d+"px"))})}var c,d=a("#welcome-panel"),e=a("#wp_welcome_panel-hide");c=function(b){a.post(ajaxurl,{action:"update-welcome-panel",visible:b,welcomepanelnonce:a("#welcomepanelnonce").val()})},d.hasClass("hidden")&&e.prop("checked")&&d.removeClass("hidden"),a(".welcome-panel-close, .welcome-panel-dismiss a",d).click(function(b){b.preventDefault(),d.addClass("hidden"),c(0),a("#wp_welcome_panel-hide").prop("checked",!1)}),e.click(function(){d.toggleClass("hidden",!this.checked),c(this.checked?1:0)}),ajaxWidgets=["dashboard_primary"],ajaxPopulateWidgets=function(b){function c(b,c){var d,e=a("#"+c+" div.inside:visible").find(".widget-loading");e.length&&(d=e.parent(),setTimeout(function(){d.load(ajaxurl+"?action=dashboard-widgets&widget="+c+"&pagenow="+pagenow,"",function(){d.hide().slideDown("normal",function(){a(this).css("display","")})})},500*b))}b?(b=b.toString(),-1!==a.inArray(b,ajaxWidgets)&&c(0,b)):a.each(ajaxWidgets,c)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),quickPressLoad=function(){var c,d=a("#quickpost-action");c=a("#quick-press").submit(function(){function b(){var b=a(".drafts ul li").first();b.css("background","#fffbe5"),setTimeout(function(){b.css("background","none")},1e3)}return a("#dashboard_quick_press #publishing-action .spinner").show(),a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),a.post(c.attr("action"),c.serializeArray(),function(c){a("#dashboard_quick_press .inside").html(c),a("#quick-press").removeClass("initial-form"),quickPressLoad(),b(),a("#title").focus()}),!1}),a("#publish").click(function(){d.val("post-quickpress-publish")}),a("#title, #tags-input, #content").each(function(){var b=a(this),c=a("#"+this.id+"-prompt-text");""===this.value&&c.removeClass("screen-reader-text"),c.click(function(){a(this).addClass("screen-reader-text"),b.focus()}),b.blur(function(){""===this.value&&c.removeClass("screen-reader-text")}),b.focus(function(){c.addClass("screen-reader-text")})}),a("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),b()},quickPressLoad(),a(".meta-box-sortables").sortable("option","containment","document"),a(".show-more a").on("click",function(b){a(this).fadeOut().closest(".activity-block").find("li.hidden").fadeIn().removeClass("hidden"),b.preventDefault()})});
var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(a){function b(){a("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>');var b=a(".quick-draft-textarea-clone"),c=a("#content"),d=c.height(),e=a(window).height()-100;b.css({"font-family":c.css("font-family"),"font-size":c.css("font-size"),"line-height":c.css("line-height"),"padding-bottom":c.css("paddingBottom"),"padding-left":c.css("paddingLeft"),"padding-right":c.css("paddingRight"),"padding-top":c.css("paddingTop"),"white-space":"pre-wrap","word-wrap":"break-word",display:"none"}),c.on("focus input propertychange",function(){var f=a(this),g=f.val()+"&nbsp;",h=b.css("width",f.css("width")).text(g).outerHeight()+2;c.css("overflow-y","auto"),h===d||h>=e&&d>=e||(d=h>e?e:h,c.css("overflow-y","hidden"),f.css("height",d+"px"))})}var c,d=a("#welcome-panel"),e=a("#wp_welcome_panel-hide");c=function(b){a.post(ajaxurl,{action:"update-welcome-panel",visible:b,welcomepanelnonce:a("#welcomepanelnonce").val()})},d.hasClass("hidden")&&e.prop("checked")&&d.removeClass("hidden"),a(".welcome-panel-close, .welcome-panel-dismiss a",d).click(function(b){b.preventDefault(),d.addClass("hidden"),c(0),a("#wp_welcome_panel-hide").prop("checked",!1)}),e.click(function(){d.toggleClass("hidden",!this.checked),c(this.checked?1:0)}),ajaxWidgets=["dashboard_primary"],ajaxPopulateWidgets=function(b){function c(b,c){var d,e=a("#"+c+" div.inside:visible").find(".widget-loading");e.length&&(d=e.parent(),setTimeout(function(){d.load(ajaxurl+"?action=dashboard-widgets&widget="+c+"&pagenow="+pagenow,"",function(){d.hide().slideDown("normal",function(){a(this).css("display","")})})},500*b))}b?(b=b.toString(),-1!==a.inArray(b,ajaxWidgets)&&c(0,b)):a.each(ajaxWidgets,c)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),quickPressLoad=function(){var c,d=a("#quickpost-action");c=a("#quick-press").submit(function(){function b(){var b=a(".drafts ul li").first();b.css("background","#fffbe5"),setTimeout(function(){b.css("background","none")},1e3)}return a("#dashboard_quick_press #publishing-action .spinner").show(),a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),a.post(c.attr("action"),c.serializeArray(),function(c){a("#dashboard_quick_press .inside").html(c),a("#quick-press").removeClass("initial-form"),quickPressLoad(),b(),a("#title").focus()}),!1}),a("#publish").click(function(){d.val("post-quickpress-publish")}),a("#title, #tags-input, #content").each(function(){var b=a(this),c=a("#"+this.id+"-prompt-text");""===this.value&&c.removeClass("screen-reader-text"),c.click(function(){a(this).addClass("screen-reader-text"),b.focus()}),b.blur(function(){""===this.value&&c.removeClass("screen-reader-text")}),b.focus(function(){c.addClass("screen-reader-text")})}),a("#quick-press").on("click focusin",function(){wpActiveEditor="content"}),b()},quickPressLoad(),a(".meta-box-sortables").sortable("option","containment","document"),a(".show-more a").on("click",function(b){a(this).fadeOut().closest(".activity-block").find("li.hidden").fadeIn().removeClass("hidden"),b.preventDefault()})});

View File

@@ -451,14 +451,14 @@ var wpNavMenu;
if ( ! isPrimaryMenuItem ) {
thisLink = menuItem.find( '.menus-move-left' ),
thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft );
thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).html( thisLinkText ).css( 'display', 'inline' );
thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' );
}
if ( 0 !== position ) {
if ( menuItem.find( '.menu-item-data-parent-id' ).val() !== menuItem.prev().find( '.menu-item-data-db-id' ).val() ) {
thisLink = menuItem.find( '.menus-move-right' ),
thisLinkText = menus.under.replace( '%s', prevItemNameRight );
thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ).html( thisLinkText ).css( 'display', 'inline' );
thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' );
}
}
@@ -480,7 +480,7 @@ var wpNavMenu;
title = menus.subMenuFocus.replace( '%1$s', itemName ).replace( '%2$d', itemPosition ).replace( '%3$s', parentItemName );
}
$this.prop('title', title).html( title );
$this.prop('title', title).text( title );
});
},

File diff suppressed because one or more lines are too long

View File

@@ -146,7 +146,7 @@ themes.Collection = Backbone.Collection.extend({
// Find results
// _.filter and .test
results = this.filter( function( data ) {
haystack = _.union( data.get( 'name' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );
haystack = _.union( data.get( 'name' ), data.get( 'id' ), data.get( 'description' ), data.get( 'author' ), data.get( 'tags' ) );
if ( match.test( data.get( 'author' ) ) && term.length > 2 ) {
data.set( 'displayAuthor', true );
@@ -188,6 +188,7 @@ themes.view.Theme = wp.Backbone.View.extend({
events: {
'click': 'expand',
'keydown': 'expand',
'touchend': 'expand',
'touchmove': 'preventExpand'
},
@@ -197,7 +198,11 @@ themes.view.Theme = wp.Backbone.View.extend({
render: function() {
var data = this.model.toJSON();
// Render themes using the html template
this.$el.html( this.html( data ) );
this.$el.html( this.html( data ) ).attr({
tabindex: 0,
'aria-describedby' : data.id + '-action ' + data.id + '-name'
});
// Renders active theme styles
this.activeTheme();
@@ -219,19 +224,27 @@ themes.view.Theme = wp.Backbone.View.extend({
expand: function( event ) {
var self = this;
event = event || window.event;
// 'enter' and 'space' keys expand the details view when a theme is :focused
if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
return;
}
// Bail if the user scrolled on a touch device
if ( this.touchDrag === true ) {
return this.touchDrag = false;
}
event = event || window.event;
// Prevent the modal from showing when the user clicks
// one of the direct action buttons
if ( $( event.target ).is( '.theme-actions a' ) ) {
return;
}
// Set focused theme to current element
themes.focusedTheme = this.$el;
this.trigger( 'theme:expand', self.model.cid );
},
@@ -266,6 +279,8 @@ themes.view.Details = wp.Backbone.View.extend({
this.navigation();
// Checks screenshot size
this.screenshotCheck( this.$el );
// Contain "tabbing" inside the overlay
this.containFocus( this.$el );
},
// Adds a class to the currently active theme
@@ -275,6 +290,34 @@ themes.view.Details = wp.Backbone.View.extend({
this.$el.toggleClass( 'active', this.model.get( 'active' ) );
},
// Keeps :focus within the theme details elements
containFocus: function( $el ) {
var $target;
// Move focus to the primary action
_.delay( function() {
$( '.theme-wrap a.button-primary:visible' ).focus();
}, 500 );
$el.on( 'keydown.wp-themes', function( event ) {
// Tab key
if ( event.which === 9 ) {
$target = $( event.target );
// Keep focus within the overlay by making the last link on theme actions
// switch focus to button.left on tabbing and vice versa
if ( $target.is( 'button.left' ) && event.shiftKey ) {
$el.find( '.theme-actions a:last-child' ).focus();
event.preventDefault();
} else if ( $target.is( '.theme-actions a:last-child' ) ) {
$el.find( 'button.left' ).focus();
event.preventDefault();
}
}
});
},
// Single theme overlay screen
// It's shown when clicking a theme
collapse: function( event ) {
@@ -291,7 +334,7 @@ themes.view.Details = wp.Backbone.View.extend({
// Detect if the click is inside the overlay
// and don't close it unless the target was
// the div.back button
if ( $( event.target ).is( '.theme-backdrop' ) || $( event.target ).is( 'div.close' ) || event.keyCode === 27 ) {
if ( $( event.target ).is( '.theme-backdrop' ) || $( event.target ).is( '.close' ) || event.keyCode === 27 ) {
// Add a temporary closing class while overlay fades out
$( 'body' ).addClass( 'closing-overlay' );
@@ -311,6 +354,11 @@ themes.view.Details = wp.Backbone.View.extend({
// Restore scroll position
document.body.scrollTop = scroll;
// Return focus to the theme div
if ( themes.focusedTheme ) {
themes.focusedTheme.focus();
}
});
}
},
@@ -610,6 +658,7 @@ themes.view.Search = wp.Backbone.View.extend({
tagName: 'input',
className: 'theme-search',
id: 'theme-search-input',
attributes: {
placeholder: l10n.searchPlaceholder,

File diff suppressed because one or more lines are too long

View File

@@ -109,14 +109,19 @@ case 'post-quickdraft-save':
if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
$error_msg = __( 'Unable to submit this form, please refresh and try again.' );
if ( ! current_user_can( 'edit_posts' ) )
$error_msg = __( 'Oops, you don&#8217;t have access to add new drafts.' );
if ( ! current_user_can( 'edit_posts' ) ) {
exit;
}
if ( $error_msg )
return wp_dashboard_quick_press( $error_msg );
$post = get_post( $_REQUEST['post_ID'] );
check_admin_referer( 'add-' . $post->post_type );
$_POST['comment_status'] = get_option( 'default_comment_status' );
$_POST['ping_status'] = get_option( 'default_ping_status' );
edit_post();
// output the quickdraft dashboard widget
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
@@ -153,6 +158,7 @@ case 'edit':
wp_die( __( 'You can&#8217;t edit this item because it is in the Trash. Please restore it and try again.' ) );
if ( ! empty( $_GET['get-post-lock'] ) ) {
check_admin_referer( 'lock-post_' . $post_id );
wp_set_post_lock( $post_id );
wp_redirect( get_edit_post_link( $post_id, 'url' ) );
exit();

View File

@@ -65,7 +65,7 @@ function press_it() {
// error handling for media_sideload
if ( is_wp_error($upload) ) {
wp_delete_post($post_ID);
wp_die($upload);
wp_die( esc_html( $upload->get_error_message() ) );
} else {
// Post formats
if ( isset( $_POST['post_format'] ) ) {

View File

@@ -142,7 +142,7 @@ endif;
$ct = wp_get_theme();
if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
echo '<p class="error-message">' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p>';
echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p></div>';
}
/*
@@ -191,8 +191,11 @@ if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() )
* This PHP is synchronized with the tmpl-theme template below!
*/
foreach ( $themes as $theme ) : ?>
<div class="theme<?php if ( $theme['active'] ) echo ' active'; ?>">
foreach ( $themes as $theme ) :
$aria_action = esc_attr( $theme['id'] . '-action' );
$aria_name = esc_attr( $theme['id'] . '-name' );
?>
<div class="theme<?php if ( $theme['active'] ) echo ' active'; ?>" tabindex="0" aria-describedby="<?php echo $aria_action . ' ' . $aria_name; ?>">
<?php if ( ! empty( $theme['screenshot'][0] ) ) { ?>
<div class="theme-screenshot">
<img src="<?php echo $theme['screenshot'][0]; ?>" alt="" />
@@ -200,13 +203,13 @@ foreach ( $themes as $theme ) : ?>
<?php } else { ?>
<div class="theme-screenshot blank"></div>
<?php } ?>
<span class="more-details"><?php _e( 'Theme Details' ); ?></span>
<span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span>
<div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
<?php if ( $theme['active'] ) { ?>
<h3 class="theme-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
<h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
<?php } else { ?>
<h3 class="theme-name"><?php echo $theme['name']; ?></h3>
<h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
<?php } ?>
<div class="theme-actions">
@@ -277,13 +280,13 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
<# } else { #>
<div class="theme-screenshot blank"></div>
<# } #>
<span class="more-details"><?php _e( 'Theme Details' ); ?></span>
<span class="more-details" id="{{ data.id }}-action"><?php _e( 'Theme Details' ); ?></span>
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
<# if ( data.active ) { #>
<h3 class="theme-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
<h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
<# } else { #>
<h3 class="theme-name">{{{ data.name }}}</h3>
<h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
<# } #>
<div class="theme-actions">
@@ -309,9 +312,9 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
<div class="theme-backdrop"></div>
<div class="theme-wrap">
<div class="theme-header">
<div alt="<?php _e( 'Close overlay' ); ?>" class="close dashicons dashicons-no"></div>
<div alt="<?php _e( 'Show previous theme' ); ?>" class="left dashicons dashicons-no"></div>
<div alt="<?php _e( 'Show next theme' ); ?>" class="right dashicons dashicons-no"></div>
<button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
<button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
<button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button>
</div>
<div class="theme-about">
<div class="theme-screenshots">

View File

@@ -260,7 +260,7 @@ if ( ! IS_PROFILE_PAGE ) {
* @since 3.0.0
*/
?>
<td><?php do_action( 'admin_color_scheme_picker' ); ?></td>
<td><?php do_action( 'admin_color_scheme_picker', $user_id ); ?></td>
</tr>
<?php
endif; // $_wp_admin_css_colors

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2013 the WordPress team
# Copyright (C) 2014 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Eleven 1.7\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyeleven\n"
"POT-Creation-Date: 2013-10-24 19:42:42+00:00\n"
"POT-Creation-Date: 2014-03-18 19:16:25+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2013 the WordPress team
# Copyright (C) 2014 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Fourteen 1.0\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyfourteen\n"
"POT-Creation-Date: 2013-12-06 16:25:07+00:00\n"
"POT-Creation-Date: 2014-03-18 19:16:26+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -250,7 +250,7 @@ msgstr ""
#: inc/customizer.php:36
msgid ""
"Use a <a href=\"%1$s\"> tag</a> to feature your posts. If no posts match the "
"Use a <a href=\"%1$s\">tag</a> to feature your posts. If no posts match the "
"tag, <a href=\"%2$s\">sticky posts</a> will be displayed instead."
msgstr ""
@@ -413,7 +413,7 @@ msgid "Tag Archives: %s"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://wordpress.org/themes/"
msgid "http://wordpress.org/themes/twentyfourteen"
msgstr ""
#. Description of the plugin/theme
@@ -421,8 +421,8 @@ msgid ""
"In 2014, our default theme lets you create a responsive magazine website "
"with a sleek, modern design. Feature your favorite homepage content in "
"either a grid or a slider. Use the three widget areas to customize your "
"website, and change your content's layout with a full width page template "
"and a contributor page to show of your authors. Creating a magazine website "
"website, and change your content's layout with a full-width page template "
"and a contributor page to show off your authors. Creating a magazine website "
"with WordPress has never been easier."
msgstr ""

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2013 the WordPress team
# Copyright (C) 2014 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Ten 1.6\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
"POT-Creation-Date: 2013-10-24 19:42:39+00:00\n"
"POT-Creation-Date: 2014-03-18 19:16:24+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2013 the WordPress team
# Copyright (C) 2014 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Thirteen 1.1\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentythirteen\n"
"POT-Creation-Date: 2013-10-24 20:32:06+00:00\n"
"POT-Creation-Date: 2014-03-18 19:16:26+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2013 the WordPress team
# Copyright (C) 2014 the WordPress team
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Twenty Twelve 1.3\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentytwelve\n"
"POT-Creation-Date: 2013-10-24 20:32:05+00:00\n"
"POT-Creation-Date: 2014-03-18 19:16:25+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -519,11 +519,12 @@ class getid3_lib
}
public static function XML2array($XMLstring) {
if (function_exists('simplexml_load_string')) {
if (function_exists('get_object_vars')) {
$XMLobject = simplexml_load_string($XMLstring);
return self::SimpleXMLelement2array($XMLobject);
}
if ( function_exists( 'simplexml_load_string' ) && function_exists( 'libxml_disable_entity_loader' ) ) {
$loader = libxml_disable_entity_loader( true );
$XMLobject = simplexml_load_string( $XMLstring, 'SimpleXMLElement', LIBXML_NOENT );
$return = self::SimpleXMLelement2array( $XMLobject );
libxml_disable_entity_loader( $loader );
return $return;
}
return false;
}

View File

@@ -166,11 +166,8 @@ function wp_admin_bar_sidebar_toggle( $wp_admin_bar ) {
if ( is_admin() ) {
$wp_admin_bar->add_menu( array(
'id' => 'menu-toggle',
'title' => '<span class="ab-icon"></span>',
'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>',
'href' => '#',
'meta' => array(
'title' => __( 'Menu' ),
),
) );
}
}

View File

@@ -226,8 +226,8 @@ function get_bookmarks($args = '') {
$join = " INNER JOIN $wpdb->term_relationships AS tr ON ($wpdb->links.link_id = tr.object_id) INNER JOIN $wpdb->term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id";
}
if ( $show_updated && get_option('links_recently_updated_time') ) {
$recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL " . get_option('links_recently_updated_time') . " MINUTE) >= NOW(), 1,0) as recently_updated ";
if ( $show_updated ) {
$recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated ";
} else {
$recently_updated_test = '';
}

View File

@@ -1104,8 +1104,10 @@ function map_meta_cap( $cap, $user_id ) {
case 'edit_post':
case 'edit_page':
$post = get_post( $args[0] );
if ( empty( $post ) )
if ( empty( $post ) ) {
$caps[] = 'do_not_allow';
break;
}
if ( 'revision' == $post->post_type ) {
$post = get_post( $post->post_parent );
@@ -1360,21 +1362,25 @@ function current_user_can( $capability ) {
* @return bool
*/
function current_user_can_for_blog( $blog_id, $capability ) {
if ( is_multisite() )
switch_to_blog( $blog_id );
$switched = is_multisite() ? switch_to_blog( $blog_id ) : false;
$current_user = wp_get_current_user();
if ( empty( $current_user ) )
if ( empty( $current_user ) ) {
if ( $switched ) {
restore_current_blog();
}
return false;
}
$args = array_slice( func_get_args(), 2 );
$args = array_merge( array( $capability ), $args );
$can = call_user_func_array( array( $current_user, 'has_cap' ), $args );
if ( is_multisite() )
if ( $switched ) {
restore_current_blog();
}
return $can;
}

View File

@@ -203,11 +203,37 @@ class IXR_Message
{
// first remove the XML declaration
// merged from WP #10698 - this method avoids the RAM usage of preg_replace on very large messages
$header = preg_replace( '/<\?xml.*?\?'.'>/', '', substr($this->message, 0, 100), 1);
$this->message = substr_replace($this->message, $header, 0, 100);
if (trim($this->message) == '') {
$header = preg_replace( '/<\?xml.*?\?'.'>/s', '', substr( $this->message, 0, 100 ), 1 );
$this->message = trim( substr_replace( $this->message, $header, 0, 100 ) );
if ( '' == $this->message ) {
return false;
}
// Then remove the DOCTYPE
$header = preg_replace( '/^<!DOCTYPE[^>]*+>/i', '', substr( $this->message, 0, 200 ), 1 );
$this->message = trim( substr_replace( $this->message, $header, 0, 200 ) );
if ( '' == $this->message ) {
return false;
}
// Check that the root tag is valid
$root_tag = substr( $this->message, 0, strcspn( substr( $this->message, 0, 20 ), "> \t\r\n" ) );
if ( '<!DOCTYPE' === strtoupper( $root_tag ) ) {
return false;
}
if ( ! in_array( $root_tag, array( '<methodCall', '<methodResponse', '<fault' ) ) ) {
return false;
}
// Bail if there are too many elements to parse
$element_limit = 30000;
if ( function_exists( 'apply_filters' ) ) {
$element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
}
if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {
return false;
}
$this->_parser = xml_parser_create();
// Set XML parser to take the case of tags in to account
xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);

View File

@@ -46,7 +46,7 @@ class WP_oEmbed {
'http://wordpress.tv/*' => array( 'http://wordpress.tv/oembed/', false ),
'#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ),
'#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ),
'#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i'=> array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ),
'#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i'=> array( 'https://api.twitter.com/1/statuses/oembed.{format}', true ),
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'http://soundcloud.com/oembed', true ),
'#https?://(www\.)?slideshare\.net/*#' => array( 'http://www.slideshare.net/api/oembed/2', true ),
'#http://instagr(\.am|am\.com)/p/.*#i' => array( 'http://api.instagram.com/oembed', true ),

View File

@@ -214,6 +214,10 @@ class PasswordHash {
function HashPassword($password)
{
if ( strlen( $password ) > 4096 ) {
return '*';
}
$random = '';
if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) {
@@ -249,6 +253,10 @@ class PasswordHash {
function CheckPassword($password, $stored_hash)
{
if ( strlen( $password ) > 4096 ) {
return false;
}
$hash = $this->crypt_private($password, $stored_hash);
if ($hash[0] == '*')
$hash = crypt($password, $stored_hash);

View File

@@ -59,12 +59,6 @@ final class _WP_Editors {
// A cookie (set when a user resizes the editor) overrides the height.
$cookie = (int) get_user_setting( 'ed_size' );
// Upgrade an old TinyMCE cookie if it is still around, and the new one isn't.
if ( ! $cookie && isset( $_COOKIE['TinyMCE_content_size'] ) ) {
parse_str( $_COOKIE['TinyMCE_content_size'], $cookie );
$cookie = $cookie['ch'];
}
if ( $cookie )
$set['editor_height'] = $cookie;
}

View File

@@ -57,7 +57,7 @@ class WP_Embed {
add_shortcode( 'embed', array( $this, 'shortcode' ) );
// Do the shortcode (only the [embed] one is registered)
$content = do_shortcode( $content );
$content = do_shortcode( $content, true );
// Put the original shortcodes back
$shortcode_tags = $orig_shortcode_tags;
@@ -280,7 +280,14 @@ class WP_Embed {
* @return string Potentially modified $content.
*/
function autoembed( $content ) {
return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content );
// Replace line breaks from all HTML elements with placeholders.
$content = wp_replace_in_html_tags( $content, array( "\n" => '<!-- wp-line-break -->' ) );
// Find URLs that are on their own line.
$content = preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content );
// Put the line breaks back.
return str_replace( '<!-- wp-line-break -->', "\n", $content );
}
/**

View File

@@ -5390,11 +5390,18 @@ class wp_xmlrpc_server extends IXR_Server {
// very stupid, but gives time to the 'from' server to publish !
sleep(1);
$remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
$user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $GLOBALS['wp_version'] . '; ' . get_bloginfo( 'url' ) );
// Let's check the remote site
$http_api_args = array(
'timeout' => 10,
'redirection' => 0,
'limit_response_size' => 153600, // 150 KB
'user-agent' => "$user_agent; verifying pingback from $remote_ip",
'headers' => array(
'X-Pingback-Forwarded-For' => $remote_ip,
),
);
$linea = wp_remote_retrieve_body( wp_safe_remote_get( $pagelinkedfrom, $http_api_args ) );

View File

@@ -13,23 +13,141 @@ if ( !function_exists('_') ) {
}
}
if ( !function_exists('mb_substr') ):
function mb_substr( $str, $start, $length=null, $encoding=null ) {
return _mb_substr($str, $start, $length, $encoding);
/**
* Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use.
*
* @ignore
* @since 4.2.2
* @access private
*
* @param bool $set - Used for testing only
* null : default - get PCRE/u capability
* false : Used for testing - return false for future calls to this function
* 'reset': Used for testing - restore default behavior of this function
*/
function _wp_can_use_pcre_u( $set = null ) {
static $utf8_pcre = 'reset';
if ( null !== $set ) {
$utf8_pcre = $set;
}
if ( 'reset' === $utf8_pcre ) {
$utf8_pcre = @preg_match( '/^./u', 'a' );
}
return $utf8_pcre;
}
if ( ! function_exists( 'mb_substr' ) ) :
function mb_substr( $str, $start, $length = null, $encoding = null ) {
return _mb_substr( $str, $start, $length, $encoding );
}
endif;
function _mb_substr( $str, $start, $length=null, $encoding=null ) {
// the solution below, works only for utf-8, so in case of a different
// charset, just use built-in substr
$charset = get_option( 'blog_charset' );
if ( !in_array( $charset, array('utf8', 'utf-8', 'UTF8', 'UTF-8') ) ) {
return is_null( $length )? substr( $str, $start ) : substr( $str, $start, $length);
/*
* Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit.
* For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence.
* The behavior of this function for invalid inputs is undefined.
*/
function _mb_substr( $str, $start, $length = null, $encoding = null ) {
if ( null === $encoding ) {
$encoding = get_option( 'blog_charset' );
}
// use the regex unicode support to separate the UTF-8 characters into an array
preg_match_all( '/./us', $str, $match );
$chars = is_null( $length )? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length );
return implode( '', $chars );
// The solution below works only for UTF-8,
// so in case of a different charset just use built-in substr()
if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length );
}
if ( _wp_can_use_pcre_u() ) {
// Use the regex unicode support to separate the UTF-8 characters into an array
preg_match_all( '/./us', $str, $match );
$chars = is_null( $length ) ? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length );
return implode( '', $chars );
}
$regex = '/(
[\x00-\x7F] # single-byte sequences 0xxxxxxx
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
| [\xE1-\xEC][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| [\xEE-\xEF][\x80-\xBF]{2}
| \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)/x';
$chars = array( '' ); // Start with 1 element instead of 0 since the first thing we do is pop
do {
// We had some string left over from the last round, but we counted it in that last round.
array_pop( $chars );
// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
$pieces = preg_split( $regex, $str, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
$chars = array_merge( $chars, $pieces );
} while ( count( $pieces ) > 1 && $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.
return join( '', array_slice( $chars, $start, $length ) );
}
if ( ! function_exists( 'mb_strlen' ) ) :
function mb_strlen( $str, $encoding = null ) {
return _mb_strlen( $str, $encoding );
}
endif;
/*
* Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit.
* For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence.
* The behavior of this function for invalid inputs is undefined.
*/
function _mb_strlen( $str, $encoding = null ) {
if ( null === $encoding ) {
$encoding = get_option( 'blog_charset' );
}
// The solution below works only for UTF-8,
// so in case of a different charset just use built-in strlen()
if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
return strlen( $str );
}
if ( _wp_can_use_pcre_u() ) {
// Use the regex unicode support to separate the UTF-8 characters into an array
preg_match_all( '/./us', $str, $match );
return count( $match[0] );
}
$regex = '/(?:
[\x00-\x7F] # single-byte sequences 0xxxxxxx
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
| [\xE1-\xEC][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| [\xEE-\xEF][\x80-\xBF]{2}
| \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)/x';
$count = 1; // Start at 1 instead of 0 since the first thing we do is decrement
do {
// We had some string left over from the last round, but we counted it in that last round.
$count--;
// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
$pieces = preg_split( $regex, $str, 1000 );
// Increment
$count += count( $pieces );
} while ( $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.
// Fencepost: preg_split() always returns one extra item in the array
return --$count;
}
if ( !function_exists('hash_hmac') ):
@@ -94,3 +212,32 @@ if ( !function_exists('json_decode') ) {
return is_array($data) ? array_map(__FUNCTION__, $data) : $data;
}
}
if ( ! function_exists( 'hash_equals' ) ) :
/**
* Compare two strings in constant time.
*
* This function was added in PHP 5.6.
* It can leak the length of a string.
*
* @since 3.9.2
*
* @param string $a Expected string.
* @param string $b Actual string.
* @return bool Whether strings are equal.
*/
function hash_equals( $a, $b ) {
$a_length = strlen( $a );
if ( $a_length !== strlen( $b ) ) {
return false;
}
$result = 0;
// Do not attempt to "optimize" this.
for ( $i = 0; $i < $a_length; $i++ ) {
$result |= ord( $a[ $i ] ) ^ ord( $b[ $i ] );
}
return $result === 0;
}
endif;

View File

@@ -506,7 +506,7 @@ html:lang(he-il) .rtl #wpadminbar * {
}
#wpadminbar #wp-admin-bar-edit > .ab-item:before {
content: '\f327';
content: '\f464';
top: 2px;
}
@@ -544,7 +544,7 @@ html:lang(he-il) .rtl #wpadminbar * {
* Updates
*/
#wpadminbar #wp-admin-bar-updates .ab-icon:before {
content: '\f113';
content: '\f463';
top: 2px;
}
@@ -773,7 +773,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: normal 14px/32px "Open Sans", sans-serif;
}
#wpadminbar .quicklinks li > a,
#wpadminbar .quicklinks > ul > li > a,
#wpadminbar .quicklinks .ab-empty-item {
padding: 0;
height: 46px;
@@ -785,7 +785,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: 40px/1 dashicons !important;
margin: 0;
padding: 0;
width: 50px;
width: 52px;
height: 46px;
text-align: center;
}
@@ -838,7 +838,7 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
padding: 0;
width: 55px;
width: 52px;
height: 46px;
text-align: center;
vertical-align: top;
@@ -862,7 +862,7 @@ html:lang(he-il) .rtl #wpadminbar * {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
width: 55px;
width: 52px;
padding: 0;
color: #999;
position: relative;
@@ -884,7 +884,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: normal 32px/1 'dashicons';
speak: none;
top: 7px;
width: 55px;
width: 52px;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -909,7 +909,7 @@ html:lang(he-il) .rtl #wpadminbar * {
line-height: 53px;
height: 46px !important;
text-align: center;
width: 50px;
width: 52px;
display: block;
}
@@ -1037,14 +1037,16 @@ html:lang(he-il) .rtl #wpadminbar * {
float: left;
}
#wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper {
left: 0;
right: auto;
}
.network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
margin-left: 0;
}
/* Realign arrows on taller responsive submenus */
#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
top: 10px;
right: 0;
}
}
/* Smartphone */
@@ -1097,4 +1099,12 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar li#wp-admin-bar-updates {
display: none;
}
/* Make submenus full-width at this size */
#wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
position: static;
-webkit-box-shadow: none;
box-shadow: none;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -506,7 +506,7 @@ html:lang(he-il) .rtl #wpadminbar * {
}
#wpadminbar #wp-admin-bar-edit > .ab-item:before {
content: '\f327';
content: '\f464';
top: 2px;
}
@@ -544,7 +544,7 @@ html:lang(he-il) .rtl #wpadminbar * {
* Updates
*/
#wpadminbar #wp-admin-bar-updates .ab-icon:before {
content: '\f113';
content: '\f463';
top: 2px;
}
@@ -773,7 +773,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: normal 14px/32px "Open Sans", sans-serif;
}
#wpadminbar .quicklinks li > a,
#wpadminbar .quicklinks > ul > li > a,
#wpadminbar .quicklinks .ab-empty-item {
padding: 0;
height: 46px;
@@ -785,7 +785,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: 40px/1 dashicons !important;
margin: 0;
padding: 0;
width: 50px;
width: 52px;
height: 46px;
text-align: center;
}
@@ -838,7 +838,7 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
padding: 0;
width: 55px;
width: 52px;
height: 46px;
text-align: center;
vertical-align: top;
@@ -862,7 +862,7 @@ html:lang(he-il) .rtl #wpadminbar * {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
width: 55px;
width: 52px;
padding: 0;
color: #999;
position: relative;
@@ -884,7 +884,7 @@ html:lang(he-il) .rtl #wpadminbar * {
font: normal 32px/1 'dashicons';
speak: none;
top: 7px;
width: 55px;
width: 52px;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -909,7 +909,7 @@ html:lang(he-il) .rtl #wpadminbar * {
line-height: 53px;
height: 46px !important;
text-align: center;
width: 50px;
width: 52px;
display: block;
}
@@ -1037,14 +1037,16 @@ html:lang(he-il) .rtl #wpadminbar * {
float: right;
}
#wpadminbar #wp-admin-bar-my-account .ab-sub-wrapper {
right: 0;
left: auto;
}
.network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
margin-right: 0;
}
/* Realign arrows on taller responsive submenus */
#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
top: 10px;
left: 0;
}
}
/* Smartphone */
@@ -1097,4 +1099,12 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar li#wp-admin-bar-updates {
display: none;
}
/* Make submenus full-width at this size */
#wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
position: static;
-webkit-box-shadow: none;
box-shadow: none;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -163,11 +163,6 @@ TABLE OF CONTENTS:
box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
}
/* this creates an inset effect on the text */
.wp-core-ui .button:active {
padding-top: 1px;
}
.wp-core-ui .button[disabled],
.wp-core-ui .button:disabled,
.wp-core-ui .button-secondary[disabled],
@@ -224,11 +219,6 @@ TABLE OF CONTENTS:
vertical-align: top;
}
/* this creates an inset effect on the text */
.wp-core-ui .button-primary:active {
padding-top: 1px;
}
.wp-core-ui .button-primary[disabled],
.wp-core-ui .button-primary:disabled,
.wp-core-ui .button-primary-disabled {
@@ -296,17 +286,6 @@ TABLE OF CONTENTS:
margin-bottom: 4px;
}
/* Adjust the padding that makes active button text looks inset to account for larger responsive buttons */
.wp-core-ui .button:active,
.wp-core-ui .button-large:active,
.wp-core-ui .button-small:active,
input#publish:active,
input#save-post:active,
a.preview:active {
padding-top: 11px;
padding-bottom: 9px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
@@ -343,7 +322,4 @@ TABLE OF CONTENTS:
padding: 0 12px 2px;
}
.interim-login .button.button-large:active {
padding-top: 1px;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -163,11 +163,6 @@ TABLE OF CONTENTS:
box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
}
/* this creates an inset effect on the text */
.wp-core-ui .button:active {
padding-top: 1px;
}
.wp-core-ui .button[disabled],
.wp-core-ui .button:disabled,
.wp-core-ui .button-secondary[disabled],
@@ -224,11 +219,6 @@ TABLE OF CONTENTS:
vertical-align: top;
}
/* this creates an inset effect on the text */
.wp-core-ui .button-primary:active {
padding-top: 1px;
}
.wp-core-ui .button-primary[disabled],
.wp-core-ui .button-primary:disabled,
.wp-core-ui .button-primary-disabled {
@@ -296,17 +286,6 @@ TABLE OF CONTENTS:
margin-bottom: 4px;
}
/* Adjust the padding that makes active button text looks inset to account for larger responsive buttons */
.wp-core-ui .button:active,
.wp-core-ui .button-large:active,
.wp-core-ui .button-small:active,
input#publish:active,
input#save-post:active,
a.preview:active {
padding-top: 11px;
padding-bottom: 9px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
@@ -343,7 +322,4 @@ TABLE OF CONTENTS:
padding: 0 12px 2px;
}
.interim-login .button.button-large:active {
padding-top: 1px;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -25,4 +25,4 @@
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog#theming
*/.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:right;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;left:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:right;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em .4em .5em 1em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:left}.ui-dialog .ui-dialog-buttonpane button{margin:.5em 0 .5em .4em;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;left:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{padding:0;z-index:300002;border:0;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background-color:#f5f5f5}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:0}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-size:13px;line-height:24px;color:#fff}.wp-dialog .ui-dialog-content{padding:0}.wp-dialog .ui-dialog-titlebar-close{cursor:pointer;-webkit-appearance:none;border:0;width:30px;height:20px;top:13px;left:6px;background:0}.wp-dialog .ui-dialog-titlebar-close:before{content:'\f158';font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#999;padding-right:12px}.wp-dialog .ui-dialog-titlebar-close:hover:before{color:#2ea2cc}.wp-dialog .ui-dialog-titlebar-close .ui-button-text{display:none}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{z-index:300001;background-color:#000;opacity:.6;filter:alpha(opacity=60)}
*/.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:right;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;left:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:right;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em .4em .5em 1em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:left}.ui-dialog .ui-dialog-buttonpane button{margin:.5em 0 .5em .4em;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;left:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{padding:0;z-index:300002;border:0;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background-color:#f5f5f5}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:0}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-size:13px;line-height:24px;color:#fff}.wp-dialog .ui-dialog-content{padding:0}.wp-dialog .ui-dialog-titlebar-close{cursor:pointer;-webkit-appearance:none;border:0;width:30px;height:20px;top:13px;left:6px;background:0 0}.wp-dialog .ui-dialog-titlebar-close:before{content:'\f158';font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#999;padding-right:12px}.wp-dialog .ui-dialog-titlebar-close:hover:before{color:#2ea2cc}.wp-dialog .ui-dialog-titlebar-close .ui-button-text{display:none}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{z-index:300001;background-color:#000;opacity:.6;filter:alpha(opacity=60)}

View File

@@ -25,4 +25,4 @@
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog#theming
*/.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{padding:0;z-index:300002;border:0;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background-color:#f5f5f5}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:0}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-size:13px;line-height:24px;color:#fff}.wp-dialog .ui-dialog-content{padding:0}.wp-dialog .ui-dialog-titlebar-close{cursor:pointer;-webkit-appearance:none;border:0;width:30px;height:20px;top:13px;right:6px;background:0}.wp-dialog .ui-dialog-titlebar-close:before{content:'\f158';font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#999;padding-left:12px}.wp-dialog .ui-dialog-titlebar-close:hover:before{color:#2ea2cc}.wp-dialog .ui-dialog-titlebar-close .ui-button-text{display:none}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{z-index:300001;background-color:#000;opacity:.6;filter:alpha(opacity=60)}
*/.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.wp-dialog{padding:0;z-index:300002;border:0;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background-color:#f5f5f5}.wp-dialog .ui-dialog-title{display:block;text-align:center;padding:0}.wp-dialog .ui-dialog-titlebar{padding:0 1em;background-color:#444;font-size:13px;line-height:24px;color:#fff}.wp-dialog .ui-dialog-content{padding:0}.wp-dialog .ui-dialog-titlebar-close{cursor:pointer;-webkit-appearance:none;border:0;width:30px;height:20px;top:13px;right:6px;background:0 0}.wp-dialog .ui-dialog-titlebar-close:before{content:'\f158';font:400 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#999;padding-left:12px}.wp-dialog .ui-dialog-titlebar-close:hover:before{color:#2ea2cc}.wp-dialog .ui-dialog-titlebar-close .ui-button-text{display:none}.wp-dialog .ui-dialog-titlebar-close:hover,.wp-dialog .ui-dialog-titlebar-close:focus{background-position:-87px -32px}.ui-widget-overlay{z-index:300001;background-color:#000;opacity:.6;filter:alpha(opacity=60)}

View File

@@ -1,6 +1,12 @@
/**
* Base Styles
*/
.media-modal * {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.media-modal,
.media-frame {
font-family: "Open Sans", sans-serif;
@@ -173,8 +179,9 @@
bottom: 0;
overflow: auto;
min-height: 300px;
background: #fff;
-webkit-font-smoothing: subpixel-antialiased;
box-shadow: 0 5px 15px rgba(0,0,0,0.7);
background: #fcfcfc;
-webkit-font-smoothing: subpixel-antialiased;
}
.media-modal-icon {
@@ -232,8 +239,8 @@
width: 267px;
padding: 0 16px 24px;
z-index: 75;
background: #f5f5f5;
border-right: 1px solid #dfdfdf;
background: #f3f3f3;
border-right: 1px solid #ddd;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
@@ -389,8 +396,10 @@
bottom: 0;
margin: 0;
padding: 16px 0;
background: #f3f3f3;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #ccc;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@@ -404,7 +413,7 @@
margin: 0;
line-height: 18px;
font-size: 14px;
color: #21759B;
color: #0074a2;
text-decoration: none;
}
@@ -419,7 +428,7 @@
.media-menu .active,
.media-menu .active:hover {
color: #333;
color: #222;
font-weight: bold;
}
@@ -427,8 +436,7 @@
height: 0;
margin: 12px 20px;
padding: 0;
border-top: 1px solid #dfdfdf;
border-bottom: 1px solid #fff;
border-top: 1px solid #ddd;
}
/**
@@ -473,6 +481,9 @@
.media-router .active,
.media-router > a.active:last-child {
margin: -1px -1px 0;
background: #fff;
border: 1px solid #ddd;
border-bottom: none;
}
.media-router .active:after {
@@ -528,10 +539,9 @@
width: auto;
margin: 0;
overflow: auto;
border-top-width: 1px;
border-top-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
background: #fff;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.media-frame-toolbar {
@@ -792,6 +802,8 @@
top: -6px;
left: -6px;
outline: none;
background: #eee;
box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.4 );
}
.attachment .check div {
@@ -809,6 +821,17 @@
display: block;
}
.attachment.details {
box-shadow: 0 0 0 1px #fff,
0 0 0 5px #1e8cbe;
}
.attachment.details .check {
background-color: #1e8cbe;
box-shadow: 0 0 0 1px #fff,
0 0 0 2px #1e8cbe;
}
.attachment.details .check div {
background-position: -21px 0;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,12 @@
/**
* Base Styles
*/
.media-modal * {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.media-modal,
.media-frame {
font-family: "Open Sans", sans-serif;
@@ -173,8 +179,9 @@
bottom: 0;
overflow: auto;
min-height: 300px;
background: #fff;
-webkit-font-smoothing: subpixel-antialiased;
box-shadow: 0 5px 15px rgba(0,0,0,0.7);
background: #fcfcfc;
-webkit-font-smoothing: subpixel-antialiased;
}
.media-modal-icon {
@@ -232,8 +239,8 @@
width: 267px;
padding: 0 16px 24px;
z-index: 75;
background: #f5f5f5;
border-left: 1px solid #dfdfdf;
background: #f3f3f3;
border-left: 1px solid #ddd;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
@@ -389,8 +396,10 @@
bottom: 0;
margin: 0;
padding: 16px 0;
background: #f3f3f3;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #ccc;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@@ -404,7 +413,7 @@
margin: 0;
line-height: 18px;
font-size: 14px;
color: #21759B;
color: #0074a2;
text-decoration: none;
}
@@ -419,7 +428,7 @@
.media-menu .active,
.media-menu .active:hover {
color: #333;
color: #222;
font-weight: bold;
}
@@ -427,8 +436,7 @@
height: 0;
margin: 12px 20px;
padding: 0;
border-top: 1px solid #dfdfdf;
border-bottom: 1px solid #fff;
border-top: 1px solid #ddd;
}
/**
@@ -473,6 +481,9 @@
.media-router .active,
.media-router > a.active:last-child {
margin: -1px -1px 0;
background: #fff;
border: 1px solid #ddd;
border-bottom: none;
}
.media-router .active:after {
@@ -528,10 +539,9 @@
width: auto;
margin: 0;
overflow: auto;
border-top-width: 1px;
border-top-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
background: #fff;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.media-frame-toolbar {
@@ -792,6 +802,8 @@
top: -6px;
right: -6px;
outline: none;
background: #eee;
box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba( 0, 0, 0, 0.4 );
}
.attachment .check div {
@@ -809,6 +821,17 @@
display: block;
}
.attachment.details {
box-shadow: 0 0 0 1px #fff,
0 0 0 5px #1e8cbe;
}
.attachment.details .check {
background-color: #1e8cbe;
box-shadow: 0 0 0 1px #fff,
0 0 0 2px #1e8cbe;
}
.attachment.details .check div {
background-position: -21px 0;
}

File diff suppressed because one or more lines are too long

View File

@@ -3,15 +3,17 @@
position: relative;
font-size: 13px;
background: #fff;
border: none;
border: 1px solid #dfdfdf;
-webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.075);
box-shadow: 0 3px 6px rgba(0,0,0,0.075);
}
.wp-pointer-content h3 {
position: relative;
margin: 0 0 5px;
margin: -1px -1px 5px;
padding: 15px 60px 14px 18px;
border: 1px solid #3592b6;
border-bottom: none;
line-height: 1.4em;
font-size: 14px;
color: #fff;
@@ -126,28 +128,65 @@
.wp-pointer-top .wp-pointer-arrow,
.wp-pointer-undefined .wp-pointer-arrow {
top: 0;
border-width: 0 17px 15px 17px;
border-width: 0 13px 13px 13px;
border-bottom-color: #3592b6;
}
.wp-pointer-top .wp-pointer-arrow:before,
.wp-pointer-undefined .wp-pointer-arrow:before {
margin-right: -13px;
margin-top: -11px;
border: 13px solid transparent;
border-bottom-color: #2ea2cc;
display: block;
content: ' ';
}
.wp-pointer-bottom .wp-pointer-arrow {
bottom: 0;
border-width: 15px 17px 0 17px;
border-width: 13px 13px 0 13px;
border-top-color: #ccc;
}
.wp-pointer-bottom .wp-pointer-arrow:before {
margin-right: -13px;
margin-top: -14px;
border: 13px solid transparent;
border-top-color: #fff;
display: block;
content: ' ';
}
/* @noflip */
.wp-pointer-left .wp-pointer-arrow {
left: 0;
border-width: 17px 15px 17px 0;
border-right-color: #fff;
border-width: 13px 13px 13px 0;
border-right-color: #ccc;
}
.wp-pointer-left .wp-pointer-arrow:before {
margin-right: -12px;
margin-top: -13px;
border: 13px solid transparent;
border-left-color: #fff;
display: block;
content: ' ';
}
/* @noflip */
.wp-pointer-right .wp-pointer-arrow {
right:0;
border-width: 17px 0 17px 15px;
border-left-color: #fff;
border-width: 13px 0 13px 13px;
border-left-color: #ccc;
}
.wp-pointer-right .wp-pointer-arrow:before {
margin-right: -14px;
margin-top: -13px;
border: 13px solid transparent;
border-right-color: #fff;
display: block;
content: ' ';
}
/* Disable pointers at responsive sizes */

View File

@@ -1 +1 @@
.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:0;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:0 0 5px;padding:15px 60px 14px 18px;line-height:1.4em;font-size:14px;color:#fff;background:#2ea2cc}.wp-pointer-content h3:before{background:#fff;border-radius:50%;color:#2ea2cc;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;right:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:left;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-right:3px;position:relative}.wp-pointer-buttons a.close:before{content:'\f153';display:block!important;font:400 13px/1 dashicons;speak:none;margin:2px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;right:-12px;top:1px}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{padding-right:13px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{right:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 17px 15px;border-bottom-color:#2ea2cc}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:15px 17px 0;border-top-color:#fff}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:17px 15px 17px 0;border-right-color:#fff}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:17px 0 17px 15px;border-left-color:#fff}@media screen and (max-width:782px){.wp-pointer{display:none}}
.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:1px solid #dfdfdf;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:-1px -1px 5px;padding:15px 60px 14px 18px;border:1px solid #3592b6;border-bottom:0;line-height:1.4em;font-size:14px;color:#fff;background:#2ea2cc}.wp-pointer-content h3:before{background:#fff;border-radius:50%;color:#2ea2cc;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;right:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:left;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-right:3px;position:relative}.wp-pointer-buttons a.close:before{content:'\f153';display:block!important;font:400 13px/1 dashicons;speak:none;margin:2px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;right:-12px;top:1px}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{padding-right:13px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{right:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 13px 13px;border-bottom-color:#3592b6}.wp-pointer-top .wp-pointer-arrow:before,.wp-pointer-undefined .wp-pointer-arrow:before{margin-right:-13px;margin-top:-11px;border:13px solid transparent;border-bottom-color:#2ea2cc;display:block;content:' '}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:13px 13px 0;border-top-color:#ccc}.wp-pointer-bottom .wp-pointer-arrow:before{margin-right:-13px;margin-top:-14px;border:13px solid transparent;border-top-color:#fff;display:block;content:' '}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:13px 13px 13px 0;border-right-color:#ccc}.wp-pointer-left .wp-pointer-arrow:before{margin-right:-12px;margin-top:-13px;border:13px solid transparent;border-left-color:#fff;display:block;content:' '}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:13px 0 13px 13px;border-left-color:#ccc}.wp-pointer-right .wp-pointer-arrow:before{margin-right:-14px;margin-top:-13px;border:13px solid transparent;border-right-color:#fff;display:block;content:' '}@media screen and (max-width:782px){.wp-pointer{display:none}}

View File

@@ -3,15 +3,17 @@
position: relative;
font-size: 13px;
background: #fff;
border: none;
border: 1px solid #dfdfdf;
-webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.075);
box-shadow: 0 3px 6px rgba(0,0,0,0.075);
}
.wp-pointer-content h3 {
position: relative;
margin: 0 0 5px;
margin: -1px -1px 5px;
padding: 15px 18px 14px 60px;
border: 1px solid #3592b6;
border-bottom: none;
line-height: 1.4em;
font-size: 14px;
color: #fff;
@@ -126,28 +128,65 @@
.wp-pointer-top .wp-pointer-arrow,
.wp-pointer-undefined .wp-pointer-arrow {
top: 0;
border-width: 0 17px 15px 17px;
border-width: 0 13px 13px 13px;
border-bottom-color: #3592b6;
}
.wp-pointer-top .wp-pointer-arrow:before,
.wp-pointer-undefined .wp-pointer-arrow:before {
margin-left: -13px;
margin-top: -11px;
border: 13px solid transparent;
border-bottom-color: #2ea2cc;
display: block;
content: ' ';
}
.wp-pointer-bottom .wp-pointer-arrow {
bottom: 0;
border-width: 15px 17px 0 17px;
border-width: 13px 13px 0 13px;
border-top-color: #ccc;
}
.wp-pointer-bottom .wp-pointer-arrow:before {
margin-left: -13px;
margin-top: -14px;
border: 13px solid transparent;
border-top-color: #fff;
display: block;
content: ' ';
}
/* @noflip */
.wp-pointer-left .wp-pointer-arrow {
left: 0;
border-width: 17px 15px 17px 0;
border-width: 13px 13px 13px 0;
border-right-color: #ccc;
}
.wp-pointer-left .wp-pointer-arrow:before {
margin-left: -12px;
margin-top: -13px;
border: 13px solid transparent;
border-right-color: #fff;
display: block;
content: ' ';
}
/* @noflip */
.wp-pointer-right .wp-pointer-arrow {
right:0;
border-width: 17px 0 17px 15px;
border-width: 13px 0 13px 13px;
border-left-color: #ccc;
}
.wp-pointer-right .wp-pointer-arrow:before {
margin-left: -14px;
margin-top: -13px;
border: 13px solid transparent;
border-left-color: #fff;
display: block;
content: ' ';
}
/* Disable pointers at responsive sizes */

View File

@@ -1 +1 @@
.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:0;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:0 0 5px;padding:15px 18px 14px 60px;line-height:1.4em;font-size:14px;color:#fff;background:#2ea2cc}.wp-pointer-content h3:before{background:#fff;border-radius:50%;color:#2ea2cc;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;left:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:right;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-left:3px;position:relative}.wp-pointer-buttons a.close:before{content:'\f153';display:block!important;font:400 13px/1 dashicons;speak:none;margin:2px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;left:-12px;top:1px}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{padding-right:13px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{left:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 17px 15px;border-bottom-color:#2ea2cc}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:15px 17px 0;border-top-color:#fff}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:17px 15px 17px 0;border-right-color:#fff}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:17px 0 17px 15px;border-left-color:#fff}@media screen and (max-width:782px){.wp-pointer{display:none}}
.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border:1px solid #dfdfdf;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.075);box-shadow:0 3px 6px rgba(0,0,0,.075)}.wp-pointer-content h3{position:relative;margin:-1px -1px 5px;padding:15px 18px 14px 60px;border:1px solid #3592b6;border-bottom:0;line-height:1.4em;font-size:14px;color:#fff;background:#2ea2cc}.wp-pointer-content h3:before{background:#fff;border-radius:50%;color:#2ea2cc;content:'\f227';font:400 20px/1.6 dashicons;position:absolute;top:8px;left:15px;speak:none;text-align:center;width:32px;height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-pointer-content p{padding:0 15px}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto}.wp-pointer-buttons a{float:right;display:inline-block;text-decoration:none}.wp-pointer-buttons a.close{padding-left:3px;position:relative}.wp-pointer-buttons a.close:before{content:'\f153';display:block!important;font:400 13px/1 dashicons;speak:none;margin:2px 0;text-align:center;-webkit-font-smoothing:antialiased!important;width:10px;height:100%;position:absolute;left:-12px;top:1px}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0}.wp-pointer-arrow{z-index:10;width:0;height:0;border:0 solid transparent}.wp-pointer-arrow-inner{z-index:20}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px}.wp-pointer-bottom{padding-bottom:13px}.wp-pointer-left{padding-left:13px}.wp-pointer-right{padding-right:13px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-bottom .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{left:50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 13px 13px;border-bottom-color:#3592b6}.wp-pointer-top .wp-pointer-arrow:before,.wp-pointer-undefined .wp-pointer-arrow:before{margin-left:-13px;margin-top:-11px;border:13px solid transparent;border-bottom-color:#2ea2cc;display:block;content:' '}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;border-width:13px 13px 0;border-top-color:#ccc}.wp-pointer-bottom .wp-pointer-arrow:before{margin-left:-13px;margin-top:-14px;border:13px solid transparent;border-top-color:#fff;display:block;content:' '}.wp-pointer-left .wp-pointer-arrow{left:0;border-width:13px 13px 13px 0;border-right-color:#ccc}.wp-pointer-left .wp-pointer-arrow:before{margin-left:-12px;margin-top:-13px;border:13px solid transparent;border-right-color:#fff;display:block;content:' '}.wp-pointer-right .wp-pointer-arrow{right:0;border-width:13px 0 13px 13px;border-left-color:#ccc}.wp-pointer-right .wp-pointer-arrow:before{margin-left:-14px;margin-top:-13px;border:13px solid transparent;border-left-color:#fff;display:block;content:' '}@media screen and (max-width:782px){.wp-pointer{display:none}}

View File

@@ -1144,7 +1144,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
?>
<p>
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:') ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $title; ?>" />
<input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr( $title ); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('nav_menu'); ?>"><?php _e('Select Menu:'); ?></label>

Binary file not shown.

View File

@@ -6,7 +6,7 @@
<font id="dashiconsregular" horiz-adv-x="2000" >
<font-face units-per-em="2000" ascent="2000" descent="0" />
<missing-glyph horiz-adv-x="500" />
<glyph unicode="&#xe000;" horiz-adv-x="500" d="M0 0z" />
<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
<glyph unicode="&#xf100;" d="M1448 894l-707 707l150 150q25 28 85 34.5t134 -11t132 -55.5q45 -30 126.5 -97t164.5 -113q43 -24 73 -38t76.5 -30.5t87.5 -23t95.5 -6t112.5 12.5zM1377 823l-707 707l-177 -177q-29 -29 -29 -70.5t29 -70.5l106 -106q29 -29 29 -71t-29 -71q-27 -27 -61.5 -54 t-86 -63t-73.5 -52q-66 -49 -101 -84q-52 -52 -92 -108.5t-64 -113t-20.5 -108.5t39.5 -88t88 -39.5t108.5 20.5t113 63.5t108.5 91.5q34 34 85 102q13 17 51 72t64 88.5t54 60.5q29 29 70.5 29t70.5 -29l106 -106q29 -29 70.5 -29t70.5 29z" />
<glyph unicode="&#xf101;" d="M500 1800h900q82 0 141 -59t59 -141v-700q0 -82 -59 -141t-141 -59h-200l-500 -500v500h-200q-82 0 -141 59t-59 141v700q0 82 59 141t141 59z" />
<glyph unicode="&#xf102;" d="M1600 1150l153 -153l-106 -106l-647 647l-647 -647l-106 106l753 753l400 -400v200h200v-400zM1000 1396l600 -599v-597h-1200v597zM1200 300v500h-400v-500h400z" />
@@ -181,10 +181,19 @@
<glyph unicode="&#xf455;" d="M1098 1322l452 -822q-48 -96 -142 -166t-199 -102t-209 -32t-209 32t-199 102t-142 166l450 818q-57 93 -168 146t-261 57l246 292q199 -141 297 -331q51 80 109.5 131t160.5 81l183 -286q-192 46 -369 -86zM817 960l-93 -169q71 -16 154 -16q199 0 355 95l-101 182 q-136 -83 -315 -92zM903 422q147 0 272 50t202 136l-98 176q-77 -86 -202 -136.5t-272 -50.5q-87 0 -176 21l-63 -115q152 -81 337 -81z" />
<glyph unicode="&#xf456;" d="M1545 1375q89 -46 127.5 -130t22.5 -181t-80 -187q-59 -83 -159.5 -134.5t-186.5 -43.5l-264 -499h-105l-265 499q-85 -12 -189.5 40t-165.5 139q-64 90 -80 187t23 181t128 129q68 34 143 31q-2 -62 7 -121q20 -129 99.5 -252t186.5 -185q-30 -86 -88 -125l201 -381v566 q-102 28 -191.5 144t-108.5 248q-20 132 16 246t124 184t210 70t210 -70t124 -184t16 -246q-19 -132 -108.5 -248t-191.5 -144v-577l207 384q-63 33 -99 130q109 61 190 185.5t101 254.5q9 59 7 122q73 2 139 -32z" />
<glyph unicode="&#xf457;" d="M1000 1800q84 0 197.5 -51.5t215 -125t191 -147t142.5 -124.5l54 -52v-1100h-1600v1100q20 20 55.5 54t138 120t196.5 152t210 120t200 54zM1700 328l-373 292l373 280l-43 37l-226 -130l24 431l-877 52l-46 -454l-199 95l-33 -31l373 -280l-344 -285l40 -43l631 408 l653 -415z" />
<glyph unicode="&#xf458;" d="M1200 1600h300q41 0 70.5 -29.5t29.5 -70.5v-100h-1300v100q0 41 29.5 70.5t70.5 29.5h300q17 86 88.5 143t161.5 57t161.5 -57t88.5 -143zM800 1600h300q-16 43 -58.5 71.5t-91.5 28.5t-91.5 -28.5t-58.5 -71.5zM400 1300h1100v-1000q0 -41 -29.5 -70.5t-70.5 -29.5 h-900q-41 0 -70.5 29.5t-29.5 70.5v1000zM700 400v700h-100v-700h100zM1000 400v700h-100v-700h100zM1300 400v700h-100v-700h100z" />
<glyph unicode="&#xf459;" d="M1000 1900l-300 -600l-600 -75l413 -462l-113 -663l600 300l600 -300l-112 663l412 462l-600 75zM1000 1676l234 -469l465 -58l-318 -356l87 -515l-468 234v1164z" />
<glyph unicode="&#xf460;" d="M400 1100h1200v-200h-1200v200z" />
<glyph unicode="&#xf461;" d="M2000 1462l-101 -282v1q-78 28 -153 -8t-104 -114q-28 -78 7.5 -153t114.5 -103v-1l-101 -282l-1506 538l99 279q78 -28 153 7.5t103 113.5t-7.5 152.5t-113.5 102.5l102 287zM1455 1125q34 108 16.5 208.5t-87 183.5t-171.5 120q-156 55 -305.5 -16t-205.5 -226 q-34 -108 -16.5 -209t87 -184t171.5 -119q155 -55 305 16t206 226zM1199 1599q133 -48 197 -171l-4 2q-24 9 -46.5 -3.5t-31.5 -36.5q-10 -28 5 -91q9 -62 -6 -104q-9 -27 -65 -100l-74 -101l8 408l40 -11q14 -3 18 11t-10 18q-57 15 -92 28l-88 36q-7 3 -12 0t-7.5 -7.5 t-0.5 -10.5t8 -9q16 -8 34 -16l1 -163l-153 -196l8 411l40 -11q14 -3 17.5 11t-10.5 18q-56 15 -91 28q-3 1 -22 8q71 54 159 68t178 -16zM740 1381q25 73 78 127l4 -500q-72 72 -94.5 171.5t12.5 201.5zM1144 906l210 263q49 55 69 112q4 10 11 35q14 -90 -17 -177 q-33 -92 -106.5 -153.5t-166.5 -79.5zM1074 1228l2 -322q0 -4 1 -6q-60 0 -120 21q-49 18 -90 48zM1198 620l210 -75q18 -64 71 -104.5t120 -40.5h1v-300h-1600v296q83 0 141.5 58.5t58.5 141.5q0 82 -59 141t-141 59v304h105l-28 -80l428 -152q-105 -115 -105 -268 q0 -166 117 -283t283 -117t283 117t117 283q0 4 -1 10t-1 10zM545 853l148 -53q-11 -3 -10.5 -15t13.5 -13q18 -2 37 -3l56 -154l-78 -236l-131 390l41 3q9 1 12 8.5t-1 14.5t-13 7q-59 -5 -96 -5q-15 0 -23 1q19 29 45 55zM440 600q0 76 32 146l171 -470q-92 45 -147.5 132 t-55.5 192zM859 741l172 -62q12 -29 12 -61q0 -28 -28 -116l-35 -120zM1160 600q0 -98 -48.5 -181t-130.5 -130l110 318q7 20 14 46l52 -19q3 -17 3 -34zM698 255l108 314l111 -303q0 -1 0.5 -2.5t1.5 -2.5q-60 -21 -119 -21q-47 0 -102 15z" />
<glyph unicode="&#xf462;" d="M925 836q88 -62 123 -128t35 -165q0 -62 -30 -119.5t-84.5 -104t-140 -74t-189.5 -27.5q-126 0 -231 31.5t-168.5 93t-63.5 140.5q0 128 130 226.5t314 98.5q14 0 40 0.5t38 0.5q-61 61 -61 126q0 43 23 86q-8 -1 -22 0.5t-20 1.5q-151 0 -247.5 97t-96.5 237 q0 87 55.5 166.5t147 128t190.5 48.5h452l-101 -100h-144q83 -87 103 -116q43 -63 43 -144q0 -135 -128 -234q-53 -42 -69.5 -67t-16.5 -62q0 -28 39.5 -70.5t79.5 -70.5zM683 1063q88 -3 139 76t36 194q-15 114 -87 195t-160 84q-88 2 -139 -75t-36 -191q15 -115 87.5 -198 t159.5 -85zM1700 1400v-100h-200v-200h-100v200h-200v100h200v200h100v-200h200zM638 290q172 0 250 63.5t78 170.5q0 22 -5 47q-4 16 -10.5 29.5t-18 27.5t-20.5 23.5t-28 24t-29.5 21.5t-36.5 25t-38 26q-56 18 -112 18q-131 2 -230 -68.5t-99 -166.5q0 -100 85.5 -170.5 t213.5 -70.5z" />
<glyph unicode="&#xf463;" d="M1020 1672q173 0 323.5 -79t247.5 -216t121 -305h208l-350 -400l-350 400h232q-34 149 -154.5 247t-277.5 98q-106 0 -199 -48t-155 -130l-171 195q98 112 234.5 175t290.5 63zM980 328q-130 0 -249.5 46.5t-210.5 126.5t-152.5 190.5t-79.5 236.5h-208l350 400 q59 -67 175.5 -200t174.5 -200h-232q34 -149 154.5 -247t277.5 -98q106 0 199 48t155 130l171 -195q-98 -112 -234 -175t-291 -63z" />
<glyph unicode="&#xf464;" d="M1389 1661l271 -272q34 -35 33.5 -84t-30.5 -80l-801 -802l-556 -116l116 558q760 763 799 803q29 30 81.5 28.5t86.5 -35.5zM1116 1382l-559 -561l111 -111l554 565zM819 559l558 560l-107 108l-559 -560z" />
<glyph unicode="&#xf465;" d="M387 1600h1325q188 0 188 -179v-842q0 -179 -188 -179h-1325q-188 0 -188 179v842q0 179 188 179zM1049 740l674 553q21 17 27 45.5t-14 61.5q-21 30 -56.5 33.5t-60.5 -16.5l-570 -386l-569 386q-25 20 -60.5 16.5t-56.5 -33.5q-20 -33 -14 -61.5t27 -45.5z" />
<glyph unicode="&#xf466;" d="M1900 550v900q0 62 -44 106t-106 44h-1401q-62 0 -106 -44t-44 -106v-900q0 -62 44 -106t106 -44h1401q62 0 106 44t44 106zM1769 1461q15 -15 17.5 -32.5t-4 -29.5t-16.5 -22l-406 -372l390 -406q26 -30 6 -51q-9 -11 -28 -12t-28 7l-437 373l-214 -195l-213 195 l-437 -373q-9 -8 -28 -7t-28 12q-20 21 6 51l390 406l-406 372q-10 10 -16.5 22t-4 29.5t17.5 32.5q40 40 95 -7l624 -504l625 504q55 47 95 7z" />
<glyph unicode="&#xf467;" d="M1801 882v867q0 89 -59 129.5t-141 7.5l-1201 -477q-83 -33 -141.5 -120t-58.5 -177v-866q0 -90 58.5 -130t141.5 -7l1201 477q83 33 141.5 119.5t58.5 176.5zM1658 1628l-604 -933l-665 460q-7 5 -13 12.5t-10.5 22t6.5 29.5q9 16 25.5 21.5t28.5 2.5l11 -3l630 -232 q483 634 511 670q12 15 30 20.5t43 -7.5q33 -23 7 -63z" />
<glyph unicode="&#xf468;" d="M1800 1000q0 163 -63.5 311t-170.5 255t-255 170.5t-311 63.5t-311 -63.5t-255 -170.5t-170.5 -255t-63.5 -311t63.5 -311t170.5 -255t255 -170.5t311 -63.5t311 63.5t255 170.5t170.5 255t63.5 311zM723 1643l149 -373q-97 -45 -142 -142l-373 149q53 123 148 218 t218 148zM1643 1277l-373 -149q-45 97 -142 142l149 373q123 -53 218 -148t148 -218zM1000 800q-82 0 -141 59t-59 141t59 141t141 59t141 -59t59 -141t-59 -141t-141 -59zM357 723l373 149q45 -97 142 -142l-149 -373q-123 53 -218 148t-148 218zM1277 357l-149 373 q97 45 142 142l373 -149q-53 -123 -148 -218t-218 -148z" />
<glyph unicode="&#xf469;" d="M1000 1800q163 0 311 -63.5t255 -170.5t170.5 -255t63.5 -311t-63.5 -311t-170.5 -255t-255 -170.5t-311 -63.5t-311 63.5t-255 170.5t-170.5 255t-63.5 311t63.5 311t170.5 255t255 170.5t311 63.5zM1000 400q163 0 301 80.5t218.5 218.5t80.5 301t-80.5 301 t-218.5 218.5t-301 80.5t-301 -80.5t-218.5 -218.5t-80.5 -301t80.5 -301t218.5 -218.5t301 -80.5zM929 929q14 -10 23 -15l-2 -2l450 -212l-303 319l-97 481l-97 -481h1q0 -1 -2 -9t-2 -10q0 -42 29 -71z" />
<glyph unicode="&#xf470;" d="M600 1800h800q41 0 70.5 -29.5t29.5 -70.5v-1400q0 -41 -29.5 -70.5t-70.5 -29.5h-800q-41 0 -70.5 29.5t-29.5 70.5v1400q0 41 29.5 70.5t70.5 29.5zM1300 600v1000h-600v-1000h600zM800 1500h400l-400 -500v500z" />
<glyph unicode="&#xf471;" d="M400 1800h1200q41 0 70.5 -29.5t29.5 -70.5v-1400q0 -41 -29.5 -70.5t-70.5 -29.5h-1200q-41 0 -70.5 29.5t-29.5 70.5v1400q0 41 29.5 70.5t70.5 29.5zM1500 400v1200h-1000v-1200h1000zM600 1500h600l-600 -500v500z" />
<glyph unicode="&#xf472;" d="M300 1800h1400q41 0 70.5 -29.5t29.5 -70.5v-1000q0 -41 -29.5 -70.5t-70.5 -29.5h-500v-200h200q41 0 70.5 -29.5t29.5 -70.5v-100h-1000v100q0 41 29.5 70.5t70.5 29.5h200v200h-500q-41 0 -70.5 29.5t-29.5 70.5v1000q0 41 29.5 70.5t70.5 29.5zM1600 900v700h-1200 v-700h1200zM500 1500h900l-900 -400v400z" />
<glyph unicode="&#xf473;" d="M400 1700h1200q82 0 141 -59t59 -141v-700q0 -82 -59 -141t-141 -59h-100l-500 -500v500h-600q-82 0 -141 59t-59 141v700q0 82 59 141t141 59zM1500 1500h-1100v-100h1100v100zM1600 1200h-1200v-100h1200v100zM1300 900h-900v-100h900v100z" />
</font>
</defs></svg>

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -121,7 +121,14 @@ function wptexturize($text) {
$no_texturize_tags_stack = array();
$no_texturize_shortcodes_stack = array();
$textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
// Look for shortcodes and HTML elements.
$shortcode_regex =
'\[' // Find start of shortcode.
. '[^\[\]<>]++' // Shortcodes do not contain other shortcodes. Possessive critical.
. '\]'; // Find end of shortcode.
$textarr = preg_split("/(<[^>]*>|$shortcode_regex)/s", $text, -1, PREG_SPLIT_DELIM_CAPTURE);
foreach ( $textarr as &$curl ) {
if ( empty( $curl ) )
@@ -131,7 +138,7 @@ function wptexturize($text) {
$first = $curl[0];
if ( '<' === $first ) {
_wptexturize_pushpop_element($curl, $no_texturize_tags_stack, $no_texturize_tags, '<', '>');
} elseif ( '[' === $first ) {
} elseif ( '[' === $first && 1 === preg_match( '/^' . $shortcode_regex . '$/', $curl ) ) {
_wptexturize_pushpop_element($curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes, '[', ']');
} elseif ( empty($no_texturize_shortcodes_stack) && empty($no_texturize_tags_stack) ) {
// This is not a tag, nor is the texturization disabled static strings
@@ -172,6 +179,8 @@ function _wptexturize_pushpop_element($text, &$stack, $disabled_elements, $openi
array_push($stack, $matches[1]);
}
} elseif ( 0 == count( $stack ) ) {
// Stack is empty. Just stop.
} else {
// Closing? Check $text+2 against disabled elements
$c = preg_quote($closing, '/');
@@ -238,6 +247,10 @@ function wpautop($pee, $br = true) {
$pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
$pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
$pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
// Find newlines in all elements and add placeholders.
$pee = wp_replace_in_html_tags( $pee, array( "\n" => " <!-- wpnl --> " ) );
if ( strpos($pee, '<object') !== false ) {
$pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
$pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
@@ -268,9 +281,109 @@ function wpautop($pee, $br = true) {
if ( !empty($pre_tags) )
$pee = str_replace(array_keys($pre_tags), array_values($pre_tags), $pee);
// Restore newlines in all elements.
$pee = str_replace( " <!-- wpnl --> ", "\n", $pee );
return $pee;
}
/**
* Separate HTML elements and comments from the text.
*
* @since 4.2.4
*
* @param string $input The text which has to be formatted.
* @return array The formatted text.
*/
function wp_html_split( $input ) {
static $regex;
if ( ! isset( $regex ) ) {
$comments =
'!' // Start of comment, after the <.
. '(?:' // Unroll the loop: Consume everything until --> is found.
. '-(?!->)' // Dash not followed by end of comment.
. '[^\-]*+' // Consume non-dashes.
. ')*+' // Loop possessively.
. '(?:-->)?'; // End of comment. If not found, match all input.
$cdata =
'!\[CDATA\[' // Start of comment, after the <.
. '[^\]]*+' // Consume non-].
. '(?:' // Unroll the loop: Consume everything until ]]> is found.
. '](?!]>)' // One ] not followed by end of comment.
. '[^\]]*+' // Consume non-].
. ')*+' // Loop possessively.
. '(?:]]>)?'; // End of comment. If not found, match all input.
$regex =
'/(' // Capture the entire match.
. '<' // Find start of element.
. '(?(?=!--)' // Is this a comment?
. $comments // Find end of comment.
. '|'
. '(?(?=!\[CDATA\[)' // Is this a comment?
. $cdata // Find end of comment.
. '|'
. '[^>]*>?' // Find end of element. If not found, match all input.
. ')'
. ')'
. ')/s';
}
return preg_split( $regex, $input, -1, PREG_SPLIT_DELIM_CAPTURE );
}
/**
* Replace characters or phrases within HTML elements only.
*
* @since 4.2.3
*
* @param string $haystack The text which has to be formatted.
* @param array $replace_pairs In the form array('from' => 'to', ...).
* @return string The formatted text.
*/
function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
// Find all elements.
$textarr = wp_html_split( $haystack );
$changed = false;
// Optimize when searching for one item.
if ( 1 === count( $replace_pairs ) ) {
// Extract $needle and $replace.
foreach ( $replace_pairs as $needle => $replace );
// Loop through delimeters (elements) only.
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
if ( false !== strpos( $textarr[$i], $needle ) ) {
$textarr[$i] = str_replace( $needle, $replace, $textarr[$i] );
$changed = true;
}
}
} else {
// Extract all $needles.
$needles = array_keys( $replace_pairs );
// Loop through delimeters (elements) only.
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
foreach ( $needles as $needle ) {
if ( false !== strpos( $textarr[$i], $needle ) ) {
$textarr[$i] = strtr( $textarr[$i], $replace_pairs );
$changed = true;
// After one strtr() break out of the foreach loop and look at next element.
break;
}
}
}
}
if ( $changed ) {
$haystack = implode( $textarr );
}
return $haystack;
}
/**
* Newline preservation help function for wpautop
*
@@ -1109,21 +1222,23 @@ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa
}
/**
* Ensures a string is a valid SQL order by clause.
* Ensures a string is a valid SQL 'order by' clause.
*
* Accepts one or more columns, with or without ASC/DESC, and also accepts
* RAND().
* Accepts one or more columns, with or without a sort order (ASC / DESC).
* e.g. 'column_1', 'column_1, column_2', 'column_1 ASC, column_2 DESC' etc.
*
* Also accepts 'RAND()'.
*
* @since 2.5.1
*
* @param string $orderby Order by string to be checked.
* @return string|bool Returns the order by clause if it is a match, false otherwise.
* @param string $orderby Order by clause to be validated.
* @return string|bool Returns $orderby if valid, false otherwise.
*/
function sanitize_sql_orderby( $orderby ){
preg_match('/^\s*([a-z0-9_]+(\s+(ASC|DESC))?(\s*,\s*|\s*$))+|^\s*RAND\(\s*\)\s*$/i', $orderby, $obmatches);
if ( !$obmatches )
return false;
return $orderby;
function sanitize_sql_orderby( $orderby ) {
if ( preg_match( '/^\s*(([a-z0-9_]+|`[a-z0-9_]+`)(\s+(ASC|DESC))?\s*(,\s*(?=[a-z0-9_`])|$))+$/i', $orderby ) || preg_match( '/^\s*RAND\(\s*\)\s*$/i', $orderby ) ) {
return $orderby;
}
return false;
}
/**

View File

@@ -1378,7 +1378,7 @@ function wp_mkdir_p( $target ) {
if ( @mkdir( $target, $dir_perms, true ) ) {
// If a umask is set that modifies $dir_perms, we'll have to re-set the $dir_perms correctly with chmod()
if ( $dir_perms != $dir_perms & ~umask() ) {
if ( $dir_perms != ( $dir_perms & ~umask() ) ) {
$folder_parts = explode( '/', substr( $target, strlen( $target_parent ) + 1 ) );
for ( $i = 1; $i <= count( $folder_parts ); $i++ ) {
@chmod( $target_parent . '/' . implode( '/', array_slice( $folder_parts, 0, $i ) ), $dir_perms );

View File

@@ -451,8 +451,9 @@ function send_origin_headers() {
* @return mixed URL or false on failure.
*/
function wp_http_validate_url( $url ) {
$original_url = $url;
$url = wp_kses_bad_protocol( $url, array( 'http', 'https' ) );
if ( ! $url )
if ( ! $url || strtolower( $url ) !== strtolower( $original_url ) )
return false;
$parsed_url = @parse_url( $url );
@@ -462,7 +463,7 @@ function wp_http_validate_url( $url ) {
if ( isset( $parsed_url['user'] ) || isset( $parsed_url['pass'] ) )
return false;
if ( false !== strpos( $parsed_url['host'], ':' ) )
if ( false !== strpbrk( $parsed_url['host'], ':#?[]' ) )
return false;
$parsed_home = @parse_url( get_option( 'home' ) );
@@ -480,8 +481,7 @@ function wp_http_validate_url( $url ) {
}
if ( $ip ) {
$parts = array_map( 'intval', explode( '.', $ip ) );
if ( '127.0.0.1' === $ip
|| ( 10 === $parts[0] )
if ( 127 === $parts[0] || 10 === $parts[0]
|| ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] )
|| ( 192 === $parts[0] && 168 === $parts[1] )
) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More