Commit Graph

180 Commits

Author SHA1 Message Date
Andrew Nacin 21f4690f30 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: https://develop.svn.wordpress.org/trunk@22481 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 02:06:59 +00:00
Andrew Ozz 0493132497 More retina backgrounds and bits, props saracannon, empireoflight and lessbloat, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22439 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:54:08 +00:00
Andrew Nacin abf7a0f360 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: https://develop.svn.wordpress.org/trunk@21957 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 18:39:03 +00:00
Andrew Nacin 991be145a9 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: https://develop.svn.wordpress.org/trunk@21948 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:52:54 +00:00
Andrew Nacin dfac91464f 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: https://develop.svn.wordpress.org/trunk@21818 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 20:11:39 +00:00
Ryan Boren 31ec698423 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: https://develop.svn.wordpress.org/trunk@21735 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 16:29:28 +00:00
Andrew Ozz 4b05f3c604 Fix screen reader text in IE7 and 8 in the toolbar "Updates" menu, props SergeyBiryukov, fixes #21333
git-svn-id: https://develop.svn.wordpress.org/trunk@21549 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-19 22:19:00 +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
Andrew Ozz d5cdd76bde Accessibility: add text to the updates link in the toolbar, props SergeyBiryukov, fixes #21333
git-svn-id: https://develop.svn.wordpress.org/trunk@21425 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 19:10:11 +00:00
Andrew Ozz b9892b6f4e Add "Skip to toolbar" accessibility shortcut, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21423 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 18:41:52 +00:00
Andrew Nacin 8a7ca493ad Admin bar: Avoid clash with a parent node and a 'content' post type. see #21117.
git-svn-id: https://develop.svn.wordpress.org/trunk@21258 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 20:46:22 +00:00
Ryan Boren 6e10d0d0b4 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: https://develop.svn.wordpress.org/trunk@21028 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 18:45:12 +00:00
Andrew Nacin e7e922b356 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: https://develop.svn.wordpress.org/trunk@20934 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-26 15:32:05 +00:00
Daryl Koopersmith e0fc4ce778 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: https://develop.svn.wordpress.org/trunk@20918 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-25 22:26:00 +00:00
Ryan Boren 52dea56cbe Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575
git-svn-id: https://develop.svn.wordpress.org/trunk@20666 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 12:47:46 +00:00
Andrew Ozz e032e94c4f Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410
git-svn-id: https://develop.svn.wordpress.org/trunk@20449 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-12 00:16:37 +00:00
Andrew Ozz 69eca59eba Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405
git-svn-id: https://develop.svn.wordpress.org/trunk@20422 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 03:18:48 +00:00
Andrew Nacin 153b1ef591 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: https://develop.svn.wordpress.org/trunk@20099 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:51:29 +00:00
Ryan Boren 975135c1d1 Add an "Edit Site" submenu to the admin bar site menu when a super admin visits a blog dashboard. see #18188
git-svn-id: https://develop.svn.wordpress.org/trunk@19855 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:35:29 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Andrew Nacin a5ada1a537 about.php and friends for the global dashboard. see #19762.
git-svn-id: https://develop.svn.wordpress.org/trunk@19700 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 18:08:45 +00:00
Andrew Nacin 5ccd02fb01 Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762.
git-svn-id: https://develop.svn.wordpress.org/trunk@19699 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-06 17:53:41 +00:00
Andrew Nacin 0180cd8072 URLs should be trailing-slashed. fixes #19427.
git-svn-id: https://develop.svn.wordpress.org/trunk@19610 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 21:27:32 +00:00
Ryan Boren 676ba7043e Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren e08ad42704 Introduce user-actions group and move profile and logout menu items to it and change priority. Props koopersmith. fixes #19425
git-svn-id: https://develop.svn.wordpress.org/trunk@19559 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-06 03:51:58 +00:00
Ryan Boren 7054e89150 Fetch 16x16 avatar, not 28x28. Props linuxologos. fixes #19421
git-svn-id: https://develop.svn.wordpress.org/trunk@19549 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-05 20:47:12 +00:00
Andrew Nacin 099603c7f2 Remove code that is dead as of [19523].
git-svn-id: https://develop.svn.wordpress.org/trunk@19526 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 04:43:17 +00:00
Ryan Boren 427cd23c67 Remove new-secondary-object group from toolbar New content menu.
git-svn-id: https://develop.svn.wordpress.org/trunk@19523 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 04:32:33 +00:00
Daryl Koopersmith c6003cf37b In toolbar, move search item to the right of the account menu and make it icon-only. fixes #19370, #19406.
git-svn-id: https://develop.svn.wordpress.org/trunk@19518 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 03:03:12 +00:00
Daryl Koopersmith 0961b15abe Add titles to toolbar W and Account items. props DrewAPicture, see #19404.
git-svn-id: https://develop.svn.wordpress.org/trunk@19517 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 02:55:53 +00:00
Daryl Koopersmith c47ea8d881 Update icons in toolbar: WP logo, comments, update, add new. props empireoflight, JohnONolan, fixes #19404.
git-svn-id: https://develop.svn.wordpress.org/trunk@19516 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 02:53:44 +00:00
Daryl Koopersmith cc83fb57bc Begin to generalize toolbar icon CSS. see #19404.
git-svn-id: https://develop.svn.wordpress.org/trunk@19500 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 00:16:17 +00:00
Jon Cave 09db1af4f8 Move awaiting moderation title to the .ab-item link so that it's easier to display. Fixes #19403.
git-svn-id: https://develop.svn.wordpress.org/trunk@19497 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 21:59:18 +00:00
Andrew Nacin 48f128a12b Use an 'appearance' group in the admin bar. fixes #19245.
git-svn-id: https://develop.svn.wordpress.org/trunk@19434 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 23:01:20 +00:00
Daryl Koopersmith 4a089df74d Admin Bar: Secondary is so passé. Groups are the new black. fixes #19136.
git-svn-id: https://develop.svn.wordpress.org/trunk@19429 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 21:46:47 +00:00
Andrew Nacin 38eae35be6 Trailing slash home_url() for the form action for admin bar search. props SergeyBiryukov. Escape too. fixes #18034 for 3.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@19405 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 21:25:55 +00:00
Ryan Boren 700f2b4099 Don't forget esc_attr(). see #19327
git-svn-id: https://develop.svn.wordpress.org/trunk@19399 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 16:21:45 +00:00
Ryan Boren 1ae56f59eb 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: https://develop.svn.wordpress.org/trunk@19398 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 16:19:05 +00:00
Ryan Boren 969799b63a Trailing slash for site url. Props SergeyBiryukov. fixes #19314
git-svn-id: https://develop.svn.wordpress.org/trunk@19373 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 14:53:42 +00:00
Daryl Koopersmith b9e3cf466a Allow linkless items in the admin bar. Improve non-jQuery admin bar tabbing. fixes #19277, #19149, #19164, #15519. see #18197, #19088.
git-svn-id: https://develop.svn.wordpress.org/trunk@19328 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 00:12:57 +00:00
Andrew Nacin c107d9ffed Don't use $user_identity global. props duck_. fixes #19146.
git-svn-id: https://develop.svn.wordpress.org/trunk@19284 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 21:35:44 +00:00
Jon Cave 9bcb0fcc08 Default arguments for is_user_member_of_blog() can now be used. See #19122, #19160.
git-svn-id: https://develop.svn.wordpress.org/trunk@19265 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 20:52:56 +00:00
Andrew Nacin 2b41063044 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: https://develop.svn.wordpress.org/trunk@19235 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 00:41:45 +00:00
Daryl Koopersmith 716906a149 Add secondary flag to admin bar. fixes #19136.
git-svn-id: https://develop.svn.wordpress.org/trunk@19230 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-09 19:12:48 +00:00
Ryan Boren dd11766207 Admin bar validation fix. Props usermrpapa. fixes #19180
git-svn-id: https://develop.svn.wordpress.org/trunk@19214 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 15:55:58 +00:00
Andrew Ozz b1af3610ec Fix a:focus styling and backwards tabbing, add tabindex arg for <a>, see #19088
git-svn-id: https://develop.svn.wordpress.org/trunk@19207 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 20:38:38 +00:00
Andrew Nacin 91b5d4baa5 Clean up wp_admin_bar_my_account_menu() a bit. see #19193.
git-svn-id: https://develop.svn.wordpress.org/trunk@19201 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 17:27:24 +00:00
Andrew Nacin ae6ddbd3e6 Link the profile meta in 'My Account' to profile.php. props linuxologos, fixes #19193.
git-svn-id: https://develop.svn.wordpress.org/trunk@19200 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 17:25:13 +00:00
Jon Cave 9fca31d21d 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: https://develop.svn.wordpress.org/trunk@19184 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 12:21:12 +00:00
Andrew Nacin 970b93c056 Link 'W' to about.php. see #18795.
git-svn-id: https://develop.svn.wordpress.org/trunk@19166 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 03:35:20 +00:00