Commit Graph

19728 Commits

Author SHA1 Message Date
westi
4443baaab9 Multisite: Rework the upload space usage tracking code so as to be fully pluggable.
* Moves some admin only functions into wp-admin/includes/ms.php from wp-includes/ms-functions.php
 * Reworked the variable naming to be more in line with the Coding Standards
 * Introduced a new get_space_used() function instead of calculating it in multiple places.

Fixes #21181 props dllh and jkudish for inital work on this.


git-svn-id: http://core.svn.wordpress.org/trunk@21387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 13:52:06 +00:00
koopersmith
29f2b5b903 Fix @since blocks... since we already released 3.4.1. see #21355.
git-svn-id: http://core.svn.wordpress.org/trunk@21386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 07:20:44 +00:00
koopersmith
eb7e421d69 Add @since documentation, see #21355.
git-svn-id: http://core.svn.wordpress.org/trunk@21385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 07:01:08 +00:00
bumpbot
506492de67 Compress scripts/styles: 3.5-alpha-21384.
git-svn-id: http://core.svn.wordpress.org/trunk@21384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 06:58:20 +00:00
koopersmith
86b352faea Remove the ability to upload custom headers in the customizer. Properly handle selecting the correct first tab, and removing the control/section if no tabs exist. see #21355.
To check if the control has any potential tabs and headers, added:
* WP_Customize_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->default_headers
* WP_Customize_Header_Image_Control->uploaded_headers



git-svn-id: http://core.svn.wordpress.org/trunk@21383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 06:45:54 +00:00
bumpbot
50b0511449 Compress scripts/styles: 3.5-alpha-21382.
git-svn-id: http://core.svn.wordpress.org/trunk@21382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 02:58:20 +00:00
koopersmith
21d1ea5f85 Pinking shears.
git-svn-id: http://core.svn.wordpress.org/trunk@21381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 02:30:02 +00:00
koopersmith
b779aff50a When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].
git-svn-id: http://core.svn.wordpress.org/trunk@21380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 02:27:18 +00:00
koopersmith
83f2d7dc6e Make the browser property in wp.Uploader optional. fixes #21437.
git-svn-id: http://core.svn.wordpress.org/trunk@21379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 01:10:13 +00:00
ryan
af18fc1ae2 Use Yoda conditions. Props evansolomon. see #21270
git-svn-id: http://core.svn.wordpress.org/trunk@21378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 21:11:17 +00:00
nacin
fed9492cbc Use get_userdata() rather than new WP_User in is_super_admin(), to take advantage of the performance improvements in [21376]. see #21120.
git-svn-id: http://core.svn.wordpress.org/trunk@21377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 17:47:08 +00:00
nacin
174dad02bc Optimize get_user_by( 'id', $id ) to return wp_get_current_user() when the current user ID is requested.
Provides for a major performance improvement by preventing repeated instantiations of WP_User in the capabilities API.

see #21120.



git-svn-id: http://core.svn.wordpress.org/trunk@21376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 17:45:38 +00:00
nacin
fcae3978c3 Don't call get_userdata() every time for the current user in map_meta_cap()'s read_post, edit_post, and delete_post branches. see #21120.
git-svn-id: http://core.svn.wordpress.org/trunk@21375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 17:39:14 +00:00
ryan
996366cc0e Better phpdoc for user_nicename. Props SergeyBiryukov. fixes #21427
git-svn-id: http://core.svn.wordpress.org/trunk@21374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 15:50:29 +00:00
ryan
4630ae82ce Call func_get_args() once in add_query_arg(). Props SergeyBiryukov. see #21332
git-svn-id: http://core.svn.wordpress.org/trunk@21373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-31 15:28:10 +00:00
lancewillett
4768331a77 Twenty Twelve: improve definition term layout a bit, use line-height instead of bottom margin. Fixes #21259.
git-svn-id: http://core.svn.wordpress.org/trunk@21372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 20:06:26 +00:00
lancewillett
afef3dd01d Twenty Twelve: fix typo for comment-content container showing incorrect class value, props obenland. Closes #21242.
git-svn-id: http://core.svn.wordpress.org/trunk@21371 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:56:35 +00:00
lancewillett
8c15bd54ac Twenty Twelve: squeeze 1.47% more size savings by compressing screenshot again.
git-svn-id: http://core.svn.wordpress.org/trunk@21370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:51:43 +00:00
lancewillett
ba2fe5b89a Twenty Twelve: fix typo, s/#entry-meta/.entry-meta/ props zeo. Closes #21418.
git-svn-id: http://core.svn.wordpress.org/trunk@21369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:48:43 +00:00
lancewillett
1f592e5cef Twenty Eleven: fix typo, s/#entry-meta/.entry-meta/ props zeo. See #21418.
git-svn-id: http://core.svn.wordpress.org/trunk@21368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:45:58 +00:00
azaozz
d77372ea76 TinyMCE: better exclusion of Opera mobile, fixes #21416
git-svn-id: http://core.svn.wordpress.org/trunk@21367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:40:52 +00:00
nacin
7c9d817511 Improve code readability and execution in admin-footer by removing a now-unnecessary implode(). props TobiasBg, fixes #21422.
git-svn-id: http://core.svn.wordpress.org/trunk@21366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:37:51 +00:00
ryan
c76116505e Give Add New button on edit taxonomy pages primary button styling. Props JustinSainton. fixes #21406
git-svn-id: http://core.svn.wordpress.org/trunk@21365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 18:41:42 +00:00
ryan
7b49ad8493 Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307
git-svn-id: http://core.svn.wordpress.org/trunk@21364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 18:30:03 +00:00
ryan
09d728e46b Take the mmm out of comment_ID. Just mm is sufficient.
Props wonderboymusic
fixes #21400


git-svn-id: http://core.svn.wordpress.org/trunk@21363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 16:16:13 +00:00
ryan
104b50cf58 s/newuserconfimation/newuserconfirmation/
Props Jayjdk, lesteph
fixes #21415


git-svn-id: http://core.svn.wordpress.org/trunk@21362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 16:13:18 +00:00
azaozz
4ca78e553d TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416
git-svn-id: http://core.svn.wordpress.org/trunk@21361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 00:14:43 +00:00
bumpbot
67ac9ee9a1 Compress scripts/styles: 3.5-alpha-21360. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-29 22:58:19 +00:00
azaozz
8dfdf4565a TinyMCE shortcuts: revert to Alt + Shift + letter for WebKit and Ctrl + Alt + letter (Command + Option + letter) in Firefox, see #21197
git-svn-id: http://core.svn.wordpress.org/trunk@21359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-29 21:08:58 +00:00
azaozz
67d4a5f71a Move the description for tabbing out of the plugin and theme editors textareas to the Help tab, fixes #21347
git-svn-id: http://core.svn.wordpress.org/trunk@21358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-27 16:49:48 +00:00
ryan
e75d8f7d9e Refactor *_blog_option() functions to use switch_to_blog(), restore_current_blog(), and the *_option() functions. Do not use site-options for blog option caching as this duplicated info and did not properly invalidate.
Props jeremyfelt
fixes #21270


git-svn-id: http://core.svn.wordpress.org/trunk@21357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-27 14:57:32 +00:00
azaozz
99496fb30c Widgets: add localization context for 'Add' and 'Edit', props nacin, fixes #21338
git-svn-id: http://core.svn.wordpress.org/trunk@21356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-27 03:56:27 +00:00
azaozz
93979aa0ef Widgets: Add the name of the widget to the Add and Edit buttons on the Accessible Widget Management Screen, props cannona, fixes #21338
git-svn-id: http://core.svn.wordpress.org/trunk@21355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-27 03:33:38 +00:00
ryan
564a7db2cb phpdoc for Customizer classes and methods. Props bananastalktome. see #21303
git-svn-id: http://core.svn.wordpress.org/trunk@21354 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 21:45:33 +00:00
ryan
44ef6d8e80 Deprecate and stub _media_button. fixes #21317
git-svn-id: http://core.svn.wordpress.org/trunk@21353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 21:33:01 +00:00
ryan
1c175f829e Deprecate and stub _insert_into_post_button(). fixes #20427
git-svn-id: http://core.svn.wordpress.org/trunk@21352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 21:30:06 +00:00
ryan
c390c3afb0 Introduce wp_oembed_remove_provider(). Props r-a-y. fixes #16327
git-svn-id: http://core.svn.wordpress.org/trunk@21351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 20:18:27 +00:00
ryan
2417e42fe5 Improved phpdoc for file.php. Props tommcfarlin. fixes #21328
git-svn-id: http://core.svn.wordpress.org/trunk@21350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 15:08:30 +00:00
ryan
e02ea8023e Remove debug cruft. Props ocean90. fixes #21315
git-svn-id: http://core.svn.wordpress.org/trunk@21349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-26 15:01:44 +00:00
bumpbot
020cb0fd5a Compress scripts/styles: 3.5-alpha-21348.
git-svn-id: http://core.svn.wordpress.org/trunk@21348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 22:58:21 +00:00
azaozz
523ae5d425 Update ImgAreaSelect to 0.9.9 that fixes IE7 stack overflow error, props c3mdigital, fixes #21363, fixes #21348 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@21347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 22:43:04 +00:00
azaozz
d4e0c684d3 Bail out themes and plugins that have copied code from core and don't maintain it by requiring class-wp-editor.php in wp-langs.php, fixes #21350 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@21345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:59:29 +00:00
lancewillett
9f5310274b Twenty Twelve: enable async body class value changes for custom background color changes in Theme Customizer. See #21226.
git-svn-id: http://core.svn.wordpress.org/trunk@21343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:42:55 +00:00
lancewillett
080992c54b Twenty Twelve: improve table styles, props sennza and drewstrojny. Fixes #21261.
git-svn-id: http://core.svn.wordpress.org/trunk@21342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:15:55 +00:00
lancewillett
edc8dd9f0b Twenty Twelve: new screenshot, props drewstrojny. Fixes #21227.
git-svn-id: http://core.svn.wordpress.org/trunk@21341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:09:46 +00:00
lancewillett
fe813cf573 Twenty Twelve: update pre element styles, props senzza and drewstrojny. Fixes #21263.
git-svn-id: http://core.svn.wordpress.org/trunk@21340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:03:39 +00:00
bumpbot
0d4970e928 Compress scripts/styles: 3.5-alpha-21338.
git-svn-id: http://core.svn.wordpress.org/trunk@21339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:58:20 +00:00
lancewillett
a0dabb5b6c Twenty Twelve: give address element a little more line-height, props sennza and drewstrojny. Fixes #21262.
git-svn-id: http://core.svn.wordpress.org/trunk@21338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:58:04 +00:00
lancewillett
3fcb5b1764 Twenty Twelve: adjust styles for definition lists, props sennza and drewstrojny. Fixes #21259.
git-svn-id: http://core.svn.wordpress.org/trunk@21337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:55:33 +00:00
lancewillett
d9a33b924f Twenty Twelve: CSS cleanup for clearing float method. Use overflow: hidden; and leave the other method intact in .clear rule so child themes can use it if needed. See #21381.
git-svn-id: http://core.svn.wordpress.org/trunk@21336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:44:37 +00:00