Commit Graph

255 Commits

Author SHA1 Message Date
Scott Taylor
fc843ce4d0 There are some random add_action() and add_filter() calls littered around some files in wp-includes/. These should be moved to wp-includes/default-filters.php with the rest of the registered hooks. It seems like this was the best practice for awhile and then we randomly stopped. This file loads way before any of the includes, so the hooks will be registered for any request that loads WordPress, even SHORTINIT - a lot of the hooks registered won't run anyways (that's already the case).
See #30947.

Built from https://develop.svn.wordpress.org/trunk@31168


git-svn-id: http://core.svn.wordpress.org/trunk@31149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-12 16:40:23 +00:00
Sergey Biryukov
8cc6732b03 Consistently handle an empty site title in Site and My Sites toolbar menus.
see #28682.
Built from https://develop.svn.wordpress.org/trunk@30598


git-svn-id: http://core.svn.wordpress.org/trunk@30588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-28 08:13:24 +00:00
Dominik Schilling
cffba3c1ba Customizer: Use deep-links for Backgrounds, Headers, and Widgets.
Replace links in admin menu and toolbar to Custom Background/Header screen with deep-links to the Customizer section.
On the Widgets screen display a link to the Customizer widgets panel.

props topher1kenobe, rzen, celloexpressions, westonruter
fixes #25569, #25571, #28032.
Built from https://develop.svn.wordpress.org/trunk@30459


git-svn-id: http://core.svn.wordpress.org/trunk@30450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-20 15:29:23 +00:00
Sergey Biryukov
cc04e76d11 Don't display Edit links for posts and terms in toolbar if they are empty.
props boonebgorges.
fixes #29538.
Built from https://develop.svn.wordpress.org/trunk@29714


git-svn-id: http://core.svn.wordpress.org/trunk@29488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-07 08:32:19 +00:00
Sergey Biryukov
2ff943b7b0 Restore the post type's view_item label for preview links that don't submit the changes.
fixes #28350.
Built from https://develop.svn.wordpress.org/trunk@29695


git-svn-id: http://core.svn.wordpress.org/trunk@29470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 11:33:16 +00:00
Dominik Schilling
57c914f75a Customizer: Add meta capability customize which is mapped to edit_theme_options.
You can now allow users to access the Customizer, say for any user who can `edit_posts`, via `map_meta_cap` or `user_has_cap` filter. See ticket for examples.

props westonruter, nacin.
fixes #28605.
Built from https://develop.svn.wordpress.org/trunk@29170


git-svn-id: http://core.svn.wordpress.org/trunk@28954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-14 19:01:16 +00:00
Sergey Biryukov
4e75d406ec Pass $post object to 'preview_post_link' filter.
props danielbachhuber.
fixes #28729.
Built from https://develop.svn.wordpress.org/trunk@28969


git-svn-id: http://core.svn.wordpress.org/trunk@28758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-03 14:42:15 +00:00
Sergey Biryukov
8dcf86f94d Display consistent preview links for drafts.
props mordauk.
fixes #28350.
Built from https://develop.svn.wordpress.org/trunk@28920


git-svn-id: http://core.svn.wordpress.org/trunk@28719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 10:02:16 +00:00
Andrew Nacin
0c16c0477b Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc.
props Ipstenu, markjaquith.
see #27115.

Built from https://develop.svn.wordpress.org/trunk@27369


git-svn-id: http://core.svn.wordpress.org/trunk@27219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-03 02:34:27 +00:00
Andrew Ozz
33c41db77a Improve keyboard accessibility for the admin menu when in responsive mode, props SergeyBiryukov, fixes #26639 for trunk.
Built from https://develop.svn.wordpress.org/trunk@27011


git-svn-id: http://core.svn.wordpress.org/trunk@26888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-22 20:08:11 +00:00
Andrew Nacin
e9f6fc09df Request a larger avatar for the toolbar, as we use it at narrow responsive sizes.
props kovshenin.
fixes #26292.

Built from https://develop.svn.wordpress.org/trunk@26800


git-svn-id: http://core.svn.wordpress.org/trunk@26687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-08 07:43:11 +00:00
Andrew Ozz
b8984636c2 Clean up the sticky menu and responsive tweaks JS:
- More descriptive names.
- Share cached jQuery elements.
- Fix re-enabling of touch events on the admin menu.
- Fix disabling/enabling of UI Sortable.
Props tollmanz, props sanchothefat, see #26086, fixes #26088.
Built from https://develop.svn.wordpress.org/trunk@26402


git-svn-id: http://core.svn.wordpress.org/trunk@26302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-26 08:57:10 +00:00
Matt Thomas
2adf09fea9 Bring in the responsive component of MP6. See #25858.
* Makes the admin fully responsive down to 320px wide.
* Adds a touch-optimized main menu that can be opened and closed from the toolbar.
* Size and positioning adjustments to icons, buttons, and text elements for better touch usability.

A few changes since MP6:

* Removed jQuery mobile. This script was used to add swipe controls to open/close the sidebar menu. This feature was apparently buggy and due to the pending demise of jQuery mobile, it was removed.
* Removed use of Backbone.js. Adding Backbone.js to this script would add a dependency of Backbone.js for all of the admin. Additionally, it was used to add a menu item. Instead of doing that, it was added via the admin menu API. This also fixes a bad delay in the item showing in the menu.
* CSS layout is standardized. Comments have also been cleaned up.
* Jetpack and Akismet code is removed.
* RTL CSS is removed.
* JS passes hinting other than one small issue that will likely be removed when parts of the code are reviewed.

A number of areas for improvement remain; we're tracking these issues in the comments of #25858.

Props to tollmanz, tillkruess, helen, dd32, and apeatling.


Built from https://develop.svn.wordpress.org/trunk@26134


git-svn-id: http://core.svn.wordpress.org/trunk@26046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-13 18:00:10 +00:00
Sergey Biryukov
74f77b85a6 Use get_current_site() instead of the $current_site global when possible.
props jeremyfelt.
fixes #25158.
Built from https://develop.svn.wordpress.org/trunk@26120


git-svn-id: http://core.svn.wordpress.org/trunk@26032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-13 03:23:10 +00:00
Helen Hou-Sandí
69d432410a Say hello to a fresh new look for the WordPress admin.
Still to come: more color schemes, a responsive component, and more.

see #25858.
props iammattthomas, tillkruess, EmpireOfLight, melchoyce, ryelle, joen, mitchoyoshitaka, sirbrillig, andypeatling, isaackeyet, Otto42, dd32, matt, helen.

Built from https://develop.svn.wordpress.org/trunk@26072


git-svn-id: http://core.svn.wordpress.org/trunk@25992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-10 00:27:10 +00:00
Drew Jaynes
a7465eb374 Inline documentation for hooks in wp-includes/admin-bar.php.
Props swissspidy.
Fixes #25508.

Built from https://develop.svn.wordpress.org/trunk@25941


git-svn-id: http://core.svn.wordpress.org/trunk@25900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-26 21:18:09 +00:00
Andrew Nacin
4e4e9f6bee Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.
props Ipstenu, SergeyBiryukov.
fixes #21674.


Built from https://develop.svn.wordpress.org/trunk@25120


git-svn-id: http://core.svn.wordpress.org/trunk@25100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-26 15:22:11 +00:00
Ryan Boren
b969f490d8 phpdoc for $wp_admin_bar in admin-bar.php
Props jeremyfelt
see #24900


git-svn-id: http://core.svn.wordpress.org/trunk@24999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-06 19:23:00 +00:00
Dominik Schilling
55d3e33a56 Remove unused variable. props jeremyfelt. fixes #24893.
git-svn-id: http://core.svn.wordpress.org/trunk@24987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-06 09:01:25 +00:00
Andrew Nacin
c2db94d10c Use meta caps edit_post, read_post, and delete_post directly, rather than consulting the post type object. map_meta_cap() handles that for us. props markjaquith, kovshenin. fixes #23226.
git-svn-id: http://core.svn.wordpress.org/trunk@24593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-08 20:05:42 +00:00
Sergey Biryukov
415a5c60da * Pass ellipsis as a parameter to wp_html_excerpt() instead of appending it manually.
* Consolidate the logic to avoid appending ellipsis if the entire string is shown.
* Show ellipsis after truncated filenames and post titles.

props solarissmoke, bpetty, SergeyBiryukov. fixes #11446.

git-svn-id: http://core.svn.wordpress.org/trunk@24214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-09 00:22:02 +00:00
Andrew Nacin
26d2fc2916 Move admin bar initialization from init to template_redirect, so conditional tags may be used in the show_admin_bar filter. props scribu. fixes #20101.
git-svn-id: http://core.svn.wordpress.org/trunk@23512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-28 16:56:35 +00:00
Sergey Biryukov
42a3edc83d Display username (user_login) rather than user_nicename in Toolbar. fixes #22121.
git-svn-id: http://core.svn.wordpress.org/trunk@23360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-01-31 01:39:08 +00:00
Andrew Nacin
61caecfa93 Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714.
git-svn-id: http://core.svn.wordpress.org/trunk@22908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-28 22:28:20 +00:00
Andrew Nacin
f63e0b1df9 Use create_posts whenever linking to post-new.php. props johnbillion. fixes #16714.
git-svn-id: http://core.svn.wordpress.org/trunk@22900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-28 18:24:11 +00:00
Andrew Nacin
56c1b7c7ff Final HiDPI tweaks. Don't use rss-2x.png on a front-end widget. Improve selectors for favicons in the toolbar to avoid breaking existing images. Remove unnecessary RTL styles. FIXES #21019.
git-svn-id: http://core.svn.wordpress.org/trunk@22481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-09 02:06:59 +00:00
Andrew Ozz
1276bcefb5 More retina backgrounds and bits, props saracannon, empireoflight and lessbloat, see #21019
git-svn-id: http://core.svn.wordpress.org/trunk@22439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-07 20:54:08 +00:00
Andrew Nacin
5304fd5da8 Check a post type's show_in_admin_bar property for 'View' and 'Edit' object links. Previously show_in_admin_bar was only checked for the add new menu. fixes #20504.
git-svn-id: http://core.svn.wordpress.org/trunk@21957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-23 18:39:03 +00:00
Andrew Nacin
33af30eb7f Use the regular post type UI for editing single media items (attachments).
* Attachments now go through post.php, edit_post(), the like, and have show_ui set to true.
 * Taxonomies attached to the media library now appear in the admin menu (if show_ui).
 * Editing, cropping, uploading, etc. is still very rough, but mostly functional.

API-wise:
 * New function: get_taxonomies_for_attachments(). Like get_taxonomies(), for taxonomies specifically registered against attachments.
 * Brings taxonomy support from the posts list table to the media list table. Expect them to converge soon.
 * wp_insert_attachment() now handles taxonomies like wp_insert_post(). Also expect them to converge soon.
 * New edit_form_after_title hook.

props helenyhou, ocean90. see #21391.



git-svn-id: http://core.svn.wordpress.org/trunk@21948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-21 22:52:54 +00:00
Andrew Nacin
9d204841ee Remove AtomPub from core.
* Will be replaced with http://wordpress.org/extend/plugins/atom-publishing-protocol/.
 * Introduces an action, xmlrpc_rsd_apis, to add APIs to xmlrpc.php?rsd.
 * Introduces support for 'error' being 403 and 50x in class-wp.php.
 * Removes 'Remote Publishing' from Writing Settings (see [21804]). Keeps the remote_publishing settings section.

DB version is bumped to generate the new wp-app rewrite rule and remove the old enable_app option.

props wonderboymusic.
fixes #21509.



git-svn-id: http://core.svn.wordpress.org/trunk@21818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-11 20:11:39 +00:00
Ryan Boren
cfb35a9d85 Use get_post() instead of global $post.
Make the $post argument to get_post() optional, defaulting to the current post in The Loop.

Props nacin
see #21309


git-svn-id: http://core.svn.wordpress.org/trunk@21735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-04 16:29:28 +00:00
Andrew Ozz
39ab1e4535 Fix screen reader text in IE7 and 8 in the toolbar "Updates" menu, props SergeyBiryukov, fixes #21333
git-svn-id: http://core.svn.wordpress.org/trunk@21549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-19 22:19:00 +00:00
ryan
d286875515 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: http://core.svn.wordpress.org/trunk@21485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-09 16:28:15 +00:00
azaozz
30dd9b1aa6 Accessibility: add text to the updates link in the toolbar, props SergeyBiryukov, fixes #21333
git-svn-id: http://core.svn.wordpress.org/trunk@21425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 19:10:11 +00:00
azaozz
6bf5d66d5b Add "Skip to toolbar" accessibility shortcut, see #21471
git-svn-id: http://core.svn.wordpress.org/trunk@21423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-05 18:41:52 +00:00
nacin
ebd7e61ac9 Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117.
git-svn-id: http://core.svn.wordpress.org/trunk@21258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-10 20:46:22 +00:00
ryan
69ad7a68ff Customizer: Redirect back to referrer. If referrer is a front end page, load that page in the customizer preview. Props nacin, koopersmith. fixes #20877
git-svn-id: http://core.svn.wordpress.org/trunk@21028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 18:45:12 +00:00
nacin
26e0d68be0 Theme Customizer: As customize.php without a theme parameter defaults to the current theme, update wp_customize_url() to make $stylesheet optional and update references for the current theme.
see #19910, #20751, #20575.



git-svn-id: http://core.svn.wordpress.org/trunk@20934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 15:32:05 +00:00
koopersmith
69c970a4a1 Hide 'Customize' toolbar item when customizer is not supported. fixes #20751, see #19910.
Removes script queue check for 'customize-loader' from wp_customize_support_script(), because we may want to check for customize-support on a page without the loader.


git-svn-id: http://core.svn.wordpress.org/trunk@20918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-25 22:26:00 +00:00
ryan
f7ae4d41f6 Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575
git-svn-id: http://svn.automattic.com/wordpress/trunk@20666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-01 12:47:46 +00:00
azaozz
817b932ed1 Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410
git-svn-id: http://svn.automattic.com/wordpress/trunk@20449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 00:16:37 +00:00
azaozz
5de5c9a64d Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405
git-svn-id: http://svn.automattic.com/wordpress/trunk@20422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 03:18:48 +00:00
nacin
3b9133ef4a In the admin, render the Toolbar immediately, rather than waiting until the footer. When intensive pages take a while to load, you aren't stuck without a working admin header. fixes #20161.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-02 22:51:29 +00:00
ryan
391fd02047 Add an "Edit Site" submenu to the admin bar site menu when a super admin visits a blog dashboard. see #18188
git-svn-id: http://svn.automattic.com/wordpress/trunk@19855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-07 18:35:29 +00:00
ryan
e3b46b25d3 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
nacin
f9b554814e about.php and friends for the global dashboard. see #19762.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-06 18:08:45 +00:00
nacin
aa6c34ac3e Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-06 17:53:41 +00:00
nacin
827f57ce22 URLs should be trailing-slashed. fixes #19427.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-20 21:27:32 +00:00
ryan
07ff8b216b Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: http://svn.automattic.com/wordpress/trunk@19593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-13 23:45:31 +00:00
ryan
d295e6e600 Introduce user-actions group and move profile and logout menu items to it and change priority. Props koopersmith. fixes #19425
git-svn-id: http://svn.automattic.com/wordpress/trunk@19559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-06 03:51:58 +00:00
ryan
ef651a80dd Fetch 16x16 avatar, not 28x28. Props linuxologos. fixes #19421
git-svn-id: http://svn.automattic.com/wordpress/trunk@19549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-05 20:47:12 +00:00
nacin
2cee887c0b Remove code that is dead as of [19523].
git-svn-id: http://svn.automattic.com/wordpress/trunk@19526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 04:43:17 +00:00
ryan
94f091afb9 Remove new-secondary-object group from toolbar New content menu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 04:32:33 +00:00
koopersmith
39ac39ef2c In toolbar, move search item to the right of the account menu and make it icon-only. fixes #19370, #19406.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 03:03:12 +00:00
koopersmith
f54aba9b06 Add titles to toolbar W and Account items. props DrewAPicture, see #19404.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 02:55:53 +00:00
koopersmith
9fdd8c9301 Update icons in toolbar: WP logo, comments, update, add new. props empireoflight, JohnONolan, fixes #19404.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 02:53:44 +00:00
koopersmith
9c4cab4c3b Begin to generalize toolbar icon CSS. see #19404.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 00:16:17 +00:00
duck_
1fe06274f3 Move awaiting moderation title to the .ab-item link so that it's easier to display. Fixes #19403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-30 21:59:18 +00:00
nacin
18e0faf83e Use an 'appearance' group in the admin bar. fixes #19245.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-23 23:01:20 +00:00
koopersmith
eecf9dc3c1 Admin Bar: Secondary is so passé. Groups are the new black. fixes #19136.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-23 21:46:47 +00:00
nacin
6f18d8e035 Trailing slash home_url() for the form action for admin bar search. props SergeyBiryukov. Escape too. fixes #18034 for 3.3.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-22 21:25:55 +00:00
ryan
5452769a3e Don't forget esc_attr(). see #19327
git-svn-id: http://svn.automattic.com/wordpress/trunk@19399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-22 16:21:45 +00:00
ryan
28152dfd20 Don't show Add New and Comments admin bar menus in network or user admins. Add tooltip to comments menu. Props ocean90. fixes #19327
git-svn-id: http://svn.automattic.com/wordpress/trunk@19398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-22 16:19:05 +00:00
ryan
73f0f40e2a Trailing slash for site url. Props SergeyBiryukov. fixes #19314
git-svn-id: http://svn.automattic.com/wordpress/trunk@19373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-21 14:53:42 +00:00
koopersmith
924ed5885c Allow linkless items in the admin bar. Improve non-jQuery admin bar tabbing. fixes #19277, #19149, #19164, #15519. see #18197, #19088.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-18 00:12:57 +00:00
nacin
30ff37104d Don't use $user_identity global. props duck_. fixes #19146.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-14 21:35:44 +00:00
duck_
06c5ce2278 Default arguments for is_user_member_of_blog() can now be used. See #19122, #19160.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-12 20:52:56 +00:00
nacin
019fa9e1e7 Show sites in the 'My Sites' menu as secondary items only when the user is a super admin and therefore has a primary menu item (Network Admin). props wpmuguru, fixes #19221.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-10 00:41:45 +00:00
koopersmith
4de1815c67 Add secondary flag to admin bar. fixes #19136.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-09 19:12:48 +00:00
ryan
a893bf5cfc Admin bar validation fix. Props usermrpapa. fixes #19180
git-svn-id: http://svn.automattic.com/wordpress/trunk@19214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-08 15:55:58 +00:00
azaozz
b8f091fcbc Fix a:focus styling and backwards tabbing, add tabindex arg for <a>, see #19088
git-svn-id: http://svn.automattic.com/wordpress/trunk@19207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-07 20:38:38 +00:00
nacin
815d4065be Clean up wp_admin_bar_my_account_menu() a bit. see #19193.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-07 17:27:24 +00:00
nacin
7f9e07a136 Link the profile meta in 'My Account' to profile.php. props linuxologos, fixes #19193.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-07 17:25:13 +00:00
duck_
f2df6bb98a Hide Site Name menu if the user isn't a member and isn't a super admin. Always show My Sites if the user has a site, and don't remove the current site from the list. Fixes #19122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-06 12:21:12 +00:00
nacin
f6eebabb9b Link 'W' to about.php. see #18795.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-05 03:35:20 +00:00
azaozz
94ef5dd13f Support for "tabbing" through the admin bar and admin menu, fixes #19088
git-svn-id: http://svn.automattic.com/wordpress/trunk@19162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-05 01:13:18 +00:00
azaozz
057ceb34de Admin-bar.css refresh, add back IE compat. "return false" so clicking on the search box doesn't scropp the page to the top, props ocean90, fixes #19153, fixes #19151
git-svn-id: http://svn.automattic.com/wordpress/trunk@19160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-04 19:46:43 +00:00
azaozz
339fe6065d Do the ToDo in wp_admin_bar_search_menu(), props ocean90, fixes #19152
git-svn-id: http://svn.automattic.com/wordpress/trunk@19159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-04 18:11:33 +00:00
azaozz
2f5eff99f4 Tweaks for the admin bar comment bubble: allow JS updating the count, center the bubble when no pending comments, props duck_, fixes #18809
git-svn-id: http://svn.automattic.com/wordpress/trunk@19156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-04 15:55:00 +00:00
duck_
375689175a Fix caps logic in wp_admin_bar_appearance_menu(). Show Themes on either switch_themes or edit_theme_options, and the rest of the appearance items on edit_theme_options. Fixes #19150.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-04 14:47:37 +00:00
duck_
8eaace17cf Update wp_admin_bar_appearance_menu docs to reflect changes made by r18683 and r19006. See #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-04 13:52:42 +00:00
azaozz
f73e6b3228 Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785
git-svn-id: http://svn.automattic.com/wordpress/trunk@19130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-03 17:08:12 +00:00
nacin
800261121a Admin bar 'W' shakeup. About This Version is now About WordPress. Credits and Freedoms will now become tabs on the post-update screen. see #18742.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-03 04:53:00 +00:00
ryan
fe035ab2c8 Fix live update of comment bubble. Drop text to avoid translation difficulties. Props SergeyBiryukov. fixes #18809
git-svn-id: http://svn.automattic.com/wordpress/trunk@19105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-01 20:42:40 +00:00
ryan
58eee18833 Network admin snack menu. see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@19104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-01 20:19:33 +00:00
markjaquith
85e67b81cb Use %s, not %d, for comment numbers in admin bar sprintf(). fixes #19104
git-svn-id: http://svn.automattic.com/wordpress/trunk@19103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-01 20:12:42 +00:00
ryan
e7dde2bc7f Mark links to wordpress.org resources for translation. Props SergeyBiryukov. see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@19102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-01 19:46:41 +00:00
westi
53d8de7408 Don't show the Freedoms or Credits menu items to logged out users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-22 10:56:04 +00:00
nacin
f70954c422 Remove code commented out in [19006]. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-20 14:33:18 +00:00
azaozz
ca0acb7a05 Bring the Appearance sub-menus on the front end one level up, see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@19006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 16:32:26 +00:00
ryan
d1dc2178a8 Return to snack menu instead of full menu. Experiment over. see #18197
git-svn-id: http://svn.automattic.com/wordpress/trunk@18984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-17 22:06:31 +00:00
koopersmith
fc66ba3c08 Add full admin menu to admin bar on front end. props azaozz. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 19:53:12 +00:00
koopersmith
260d918501 Improve admin bar item order for W menu, add new menu, and edit content item. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-10 18:40:00 +00:00
koopersmith
ddf8e3e31d Clean up the 'Site Name' admin bar functions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 19:52:26 +00:00
nacin
502638442f No translators, you don't need to localize a non-breaking space.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-07 06:41:51 +00:00
koopersmith
dcf34868ed Revise admin bar items based on user testing. Post at http://wp.me/pbNCB-qz. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-05 18:45:32 +00:00
ryan
e0a7825baa Excerpt long blog names when displaying them in the admin bar. fixes #18849
git-svn-id: http://svn.automattic.com/wordpress/trunk@18873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-03 19:58:33 +00:00
koopersmith
2d3fa6fcb8 Make screen options a help tab. Move screen option functions into WP_Screen. see #18690, #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-01 00:24:44 +00:00
ryan
cd0c3f605e Consult the main query when determining whether to show the edit menu in the admin bar. This insulates the admin bar from query_posts() queries made by themes and plugins. Props SergeyBiryukov. fixes #16798
git-svn-id: http://svn.automattic.com/wordpress/trunk@18844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-30 18:07:14 +00:00
nacin
83746331cf Cleanup in wp_admin_bar_new_content_menu. current() instead of array_shift(), remove unused index 1 from the arrays, remove ?post_type=post from the Post link. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-27 04:04:10 +00:00