Ryan Boren
52c9b5af0d
Better instruction text on custom header screen. Props jane, JustinSainton fixes #20992
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21502 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:32:26 +00:00
Andrew Nacin
9931c1a45d
Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled.
...
Enforce this by denying the 'manage_links' capability, which hides the All Links, Add New Link, and Link Categories screens. Hide WP_Widget_Links and the UI for the default_link_category as well.
Convert all references to 'posts and links' when handling reassignment on user deletion to just 'posts'.
see #21307 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21501 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-13 16:18:42 +00:00
Andrew Nacin
58ad892373
Stop adding default links and the 'Blogroll' link category on install. props wonderboymusic. see #21307 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21500 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-13 15:55:15 +00:00
bumpbot
de461b777b
Compress scripts/styles: 3.5-alpha-21499.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21499 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-11 02:58:19 +00:00
Andrew Ozz
da532a7573
Remove unused images, props helenyhou, coffee2code, ocean90, fixes #20980
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21498 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-11 02:36:01 +00:00
Ryan Boren
1096d07b11
Avoid fatal error in the customizer when the current theme doesn't support custom headers. Props c3mdigital. fixes #21515
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21497 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 20:15:06 +00:00
Ryan Boren
9580f65af6
Allow passing stdClass and WP_User to wp_insert_user() and wp_update_user(). Introduce WP_User::to_array(). Eliminate uses of get_object_vars() when passing to wp_*_user(). fixes #21429
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21496 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 15:36:54 +00:00
Andrew Ozz
d79594b872
Better editor background, take one, see #21536
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21495 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 07:11:03 +00:00
potbot
e731297f92
POT, generated from r21492
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21494 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 19:22:41 +00:00
potbot
4a5e9ea34f
POT, generated from r21492
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21493 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 19:22:33 +00:00
Lance Willett
680b671330
Twenty Twelve: pinking shears for header.php
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21492 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 18:42:36 +00:00
Lance Willett
e41b7dcf5a
Twenty Eleven: allow content-single.php to be overridden for post formats, props murky. Closes #17996 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21491 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 18:31:02 +00:00
Lance Willett
fc4fffaad5
Twenty Ten and Eleven: *_continue_reading_link() should be pluggable, fixes #16500 . Props nacin and SergeyBiryukov.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21490 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 18:21:58 +00:00
Lance Willett
ced74a6194
Twenty Twelve: make twentytwelve_is_categorized_site() pluggable, see #21479 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21489 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 18:20:25 +00:00
Lance Willett
7b11f93275
Twenty Eleven: fix gallery thumbnail image overflow, props chellycat. Fixes #20478 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21488 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 17:58:56 +00:00
Lance Willett
38ccc90afc
Twenty Eleven: fix long URLs in comments overflow content area, fixes #21491 . Props SergeyBiryukov jkudish andrewspittle.
...
Also minor pinking shears in stylesheet and functions file.
git-svn-id: https://develop.svn.wordpress.org/trunk@21487 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 17:32:39 +00:00
Lance Willett
56c4577fea
Twenty Ten: code readability in twentyten_comment, props kovshenin, fixes #21474 . (And minor pinking shears.)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21486 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 17:22:44 +00:00
Ryan Boren
20a1def1c0
switch_to_blog() and restore_current_blog() housekeeping.
...
wp-includes/admin-bar.php:
* Replace get_admin_url() and get_home_url() with admin_url() and home_url() and place them inside a switch/restore. Likewise replace current_user_can_for_blog() with current_user_can(). This avoids doing multiple switch restores.
wp-includes/ms-blogs.php:
* Deprecate the $validate argument to switch_to_blog(). This avoids a not very necessary call to get_blog_details(), possibly saving a few queries.
* Use $_wp_switched and $_wp_switched_stack instead of $switched and $switched_stack to make it less likely these globals will be stomped.
* Use GLOBALS to access blog_id and other globals. I've preferred this style lately since it makes it obvious a global is being used and avoids global blog_id being stomped by a local variable.
* Lose some is_object() checks. wp_get_current_user() always returns an object, for example.
* Call the new WP_Roles::reinit() method.
wp-includes/class-wp-xmlrpc-server.php:
* Replace current_user_can_for_blog() with current_user_can() and move it inside the switch/restore pair. This eliminates a switch/restore.
wp-includes/capabilities.php:
* Use array_keys() instead of $role => $data since $data is unused. I *think* this is a bit faster.
* Introduce WP_Roles::reinit(). This reinitializes WP_Roles and is used after switch_to_blog() has already update the blog ID in the wpdb object. If a global roles array is being used instead of the db, reinit is skipped.
* current_user_can_for_blog() now does a switch/restore. It didn't before meaning it could be reinitializing the user with the wrong role information for the current blog.
wp-includes/ms-settings.php:
* Define $_wp_switched_stack and $_wp_switched. This way switch_to_blog() and restore_current_blog() can rely on it being set.
wp-settings.php:
* Instantiate the WP_Roles global. This was it is always defined during init. To remove the WP_Roles checks from WP_Role and WP_User this would probably have to move before plugins are loaded, which might not be a good thing.
wp-includes/functions.php:
* Update wp_upload_dir() to reference _wp_switched.
git-svn-id: https://develop.svn.wordpress.org/trunk@21485 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 16:28:15 +00:00
Ryan Boren
fd52f7397d
Move get_current_blog_id() to load.php so it is available during multisite bootstrap. fixes #21432
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21484 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-09 13:17:14 +00:00
Lance Willett
bad4cefc68
Twenty Twelve: fix bypostauthor styling, probs obenland and SergeyBiryukov (also improves the RTL layout, see #21441 ).
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21483 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 19:10:22 +00:00
Lance Willett
05f72b8149
Twenty Twelve: add basic styles for IE7 and IE8, supports basic layout now with the small-nav styles. Props obenland, closes #21440 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21482 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 18:03:59 +00:00
Andrew Ozz
90e990d983
When WP_Dependencies accept a string for a single dependency, make sure the string is not empty, see #20683
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21481 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 17:21:24 +00:00
Ryan Boren
4c0121178b
Undeprecate *_blog_option() by popular demand. Put them back in ms-blogs.php since direct inclusion of ms-blogs.php/ms-functions.php is unforntunately common.
...
see #21432
git-svn-id: https://develop.svn.wordpress.org/trunk@21480 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 17:11:15 +00:00
Lance Willett
8d8b4214c5
Twenty Twelve: cleanup up extra space in functions.php
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21479 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 16:59:15 +00:00
Lance Willett
da5b33b5a5
Twenty Twelve: better gallery columns support, and CSS cleanup. Closes #21475 , props philiparthurmoore and pdclark.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21478 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 16:38:21 +00:00
Lance Willett
24fda2c796
Twenty Twelve: fix for long words getting hidden in widgets. Props DrewAPicture, closes #21503 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21477 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 16:21:14 +00:00
Lance Willett
bf2fe5d976
Twenty Twelve: make nav toggle button same height as other buttons.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21476 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 16:14:36 +00:00
Lance Willett
fb349e634a
Twenty Twelve: add polyfill JS for matchMedia rules, avoids JS error in older IE versions. See #21440 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21475 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 16:13:32 +00:00
Peter Westwood
ce84487878
Multisite: Fix the new get_space_used() function to correctly calculate Megabytes used and update some phpdoc. Props SergeyBiryukov.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21474 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 07:17:33 +00:00
Andrew Nacin
5a45a59cb2
Declare, document, and protect $dbuser, $dbpassword, $dbname, $dbhost and $dbh in wpdb.
...
These properties, while protected, are still accessible thanks to the magic getter added in [21472].
props pento, nvartolomei, joelhardi. fixes #18510 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21473 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:28:57 +00:00
Andrew Nacin
b3fb67a97d
Lazy-load column info in wpdb. props pento. fixes #20838 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21472 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:24:59 +00:00
Andrew Nacin
4218686707
Introduce wpdb::get_charset_collate() to return the DEFAULT CHARACTER SET and COLLATE for use in table schemas.
...
props simonwheatley, pento. fixes #18451 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21471 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:13:48 +00:00
Andrew Nacin
aba535c65b
Deprecate wpdb::supports_collation() in favor of wpdb::has_cap().
...
props hakre, pento. fixes #16757 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21470 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-08 06:06:57 +00:00
Andrew Ozz
42b696ee44
Fix typo in wp_login_form(), props greenshady, fixes #21514
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21469 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 23:13:31 +00:00
Andrew Ozz
4e712ea44c
TinyMCE: fix typo in button tooltips.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21468 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 03:28:20 +00:00
Andrew Nacin
249e32e96b
Hide the charset setting for installs that have a charset of UTF-8 already. fixes #21507 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21467 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-07 03:10:59 +00:00
bumpbot
142a33fd8e
Compress scripts/styles: 3.5-alpha-21466.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21466 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 22:58:30 +00:00
Andrew Ozz
1853c9127d
Fix .screen-reader-text in RTL, see #21471
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21465 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 21:29:27 +00:00
Lance Willett
c0784c5fc5
Twenty Twelve: update author archive markup and styles, props klagraff. Fixes #21494 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21464 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 21:05:02 +00:00
bumpbot
49ef671550
Compress scripts/styles: 3.5-alpha-21463.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21463 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 20:58:37 +00:00
Lance Willett
09aa0a56b8
Twenty Twelve: line-height style fixes, props chellycat. See #21486 .
...
* For entry titles match larger screen style with the base styles to add a bit more line-height.
* Add line-height to entry-content and entry-summary, so that elements appearing outside of paragraph tags inside these containers will still have the appropriate line-heights.
* Add line-height for pingbacks, which looks a bit too tight when pingbacks span multiple lines.
git-svn-id: https://develop.svn.wordpress.org/trunk@21462 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 20:48:47 +00:00
Andrew Ozz
d38377a329
CSS cleanup: remove references to .wp-menu-toggle, props ocean90, fixes #21502
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21461 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 19:59:28 +00:00
bumpbot
07a63e22e7
Compress scripts/styles: 3.5-alpha-21460.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21460 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 18:58:29 +00:00
Andrew Ozz
cd8663f68d
Replace last remaining gradients with css, standardize the gradient css cascade, props ocean90, fixes #16461
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21459 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 17:21:41 +00:00
bumpbot
9c0e7302fb
Compress scripts/styles: 3.5-alpha-21458.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21458 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:58:26 +00:00
Andrew Ozz
de2cabcfb7
Accessibility: enhance the Screen Options and Help tabs open/close, see #21326
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21457 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:26:37 +00:00
bumpbot
b5864beaa0
Compress scripts/styles: 3.5-alpha-21456.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21456 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 02:58:33 +00:00
Daryl Koopersmith
3c11842514
Align headings and form elements on tags and categories pages. After seven and a half years... props hanni. fixes #21496 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21455 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 02:32:55 +00:00
Andrew Nacin
44879866aa
Docs for wp-activate.php. props lgedeon. fixes #20429 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21454 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 00:59:34 +00:00
bumpbot
add3a6f3ba
Compress scripts/styles: 3.5-alpha-21453.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21453 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 00:58:32 +00:00