Commit Graph

100 Commits

Author SHA1 Message Date
Andrew Nacin 3ebbe1ae51 Revert [23871] - Customize should be added to the menu, but not hacked in as first. see #21413.
git-svn-id: https://develop.svn.wordpress.org/trunk@24048 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-22 19:33:39 +00:00
Mark Jaquith c51895c997 Add "Customize" as first item under Appearance menu.
fixes #21413. props ryanhellyer, obenland, DrewAPicture

git-svn-id: https://develop.svn.wordpress.org/trunk@23871 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-29 20:39:54 +00:00
Sergey Biryukov d25b3c5c19 Prevent plugins with certain filenames from breaking links in the admin menu. props lightningspirit. fixes #22079.
git-svn-id: https://develop.svn.wordpress.org/trunk@23656 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-09 02:48:49 +00:00
Ryan Boren 6d8bce688f Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@22634 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:11:29 +00:00
Andrew Ozz 7485a0ceed Admin menu: add phpdoc/inline comments describing the usage of the param $icon_url in add_menu_page(), add string 'none' to be used when a menu icon is added from CSS, switch core items in the admin menu to use 'none', fixes #21349
git-svn-id: https://develop.svn.wordpress.org/trunk@21877 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 22:51:44 +00:00
Andrew Ozz 27fdffa9db Improve the layout and accessibility of the admin menu: simplify the HTML structure, move the submenus off the viewport (still visible for screen readers) instead of hiding them with display: none, make it possible to unfold the menu on small/narrow screens, see #21349
git-svn-id: https://develop.svn.wordpress.org/trunk@21574 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:46:30 +00:00
Andrew Ozz 6e6b727315 Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).
Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.

Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.

See #21340.

git-svn-id: https://develop.svn.wordpress.org/trunk@21311 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 00:15:15 +00:00
Andrew Ozz fd506b7f3a Admin menu: change to strip_tags() for the aria-label attributes as it's faster, fixes #20373
git-svn-id: https://develop.svn.wordpress.org/trunk@20698 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:36:07 +00:00
Andrew Ozz 859a659be9 Admin menu: add aria-label attributes to the links around menu images for the sake of screen readers, fixes #20373
git-svn-id: https://develop.svn.wordpress.org/trunk@20680 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:41:15 +00:00
Andrew Ozz 6bd61a831e Remove role="menu" and role="menuitem" for now, fixes #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19548 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-05 17:47:23 +00:00
Ryan Boren 6610e321e7 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19528 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 04:51:35 +00:00
Andrew Ozz 85533fa282 Reset aria_arrtibutes when reaching admin submenu, see #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19486 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 02:23:21 +00:00
Andrew Ozz a13312c624 Add ARIA related attributes (first take), props DrewAPicture, see #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19484 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 01:27:33 +00:00
Jon Cave e754641764 Remove dead code left by r18621. Props ocean90. Fixes #19087.
git-svn-id: https://develop.svn.wordpress.org/trunk@19101 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 12:36:14 +00:00
Ryan Boren 62778137cf Fix sub menu highlighting for post type pages. see #13662
git-svn-id: https://develop.svn.wordpress.org/trunk@19048 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 18:45:06 +00:00
Daryl Koopersmith 50b17d4b68 Create admin menu arrows using CSS3 transforms. props chexee. see #18382, fixes #18902.
git-svn-id: https://develop.svn.wordpress.org/trunk@18942 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-11 21:25:38 +00:00
Andrew Ozz 04c169ba44 Fix menu hover when loaded folded, simplify menu JS and auto-folding, see #18382
git-svn-id: https://develop.svn.wordpress.org/trunk@18901 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-06 09:18:56 +00:00
Jon Cave 070aa4e1f1 _wp_menu_output() speed up and clean up. Props dragoonis. Fixes #13662.
Attempt file_exists() last and cache an array index lookup for speed up. Whitespace and appropriate parentheses for readability.


git-svn-id: https://develop.svn.wordpress.org/trunk@18792 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 10:22:58 +00:00
Daryl Koopersmith 43d6595503 Switch admin menus to flyouts from dropdowns. First pass, see #18382.
git-svn-id: https://develop.svn.wordpress.org/trunk@18621 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-30 01:12:26 +00:00
Andrew Ozz c2c5456fd1 Fix unfolding of the admin menu when no JS, fixes #17897
git-svn-id: https://develop.svn.wordpress.org/trunk@18349 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-27 20:40:04 +00:00
Andrew Ozz 8ae9b16300 Revert [17943] as it breaks plugins, props johnjamesjacoby, fixes #17484
git-svn-id: https://develop.svn.wordpress.org/trunk@17950 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-18 06:20:30 +00:00
Andrew Ozz 885fcbe7d1 Remove links from the menu separators, see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17943 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-17 06:19:00 +00:00
Daryl Koopersmith 08970aebab Improve collapsed menu styling. see #17324.
git-svn-id: https://develop.svn.wordpress.org/trunk@17815 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-05 22:13:03 +00:00
Daryl Koopersmith 46a01f3c74 Add collapse link to admin menu, add new arrow graphics, improve screen meta JS/CSS.
git-svn-id: https://develop.svn.wordpress.org/trunk@17813 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-05 19:51:32 +00:00
Mark Jaquith e897910b75 Big UI style update. props koopersmith. see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17800 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-04 20:15:05 +00:00
Andrew Ozz 53d3dae91f Don't refresh the admin menu after page load, apply the user-state from PHP, fix behaviour after folding the menu, props nacin, props nuxwin, fixes #10646, fixes #17058
git-svn-id: https://develop.svn.wordpress.org/trunk@17623 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-07 18:45:22 +00:00
Ryan Boren c9c814ab8c Improved self determination. Props PeteMall. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@15866 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 14:08:29 +00:00
Andrew Nacin 22ba9295bf Introduce show_in_menu for register_post_type. Allows post types to be a submenu. Accepts boolean and also a parent base. With help from duck_. fixes #14145.
git-svn-id: https://develop.svn.wordpress.org/trunk@15844 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:58:02 +00:00
Dion Hulse 70af67f01c Escape/texturize Admin menu titles. Fixes page titles such as "Foo & Bar" not being entity encoded. Also includes some basic whitespace/standards cleanup to a related function. Fixes #12039
git-svn-id: https://develop.svn.wordpress.org/trunk@14127 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 03:38:47 +00:00
Dion Hulse 7d29486ed5 Properly escape plugin admin menu URL's for display. Crops up with custom post_type's with a custom submenu item with & instead of &
git-svn-id: https://develop.svn.wordpress.org/trunk@13851 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 01:32:35 +00:00
Andrew Nacin dd306def81 Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Ryan Boren 8aea5863d7 Fix submenus for post types. Props TobiasBg. see #12453
git-svn-id: https://develop.svn.wordpress.org/trunk@13579 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 00:15:55 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ron Rennick d0f31a991c merge multisite admin - edit links,tags,cats,options, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12712 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 21:11:52 +00:00
Ryan Boren 9ef2cb198f More custom post type support. Props scribu. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12597 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 16:58:43 +00:00
Ryan Boren 43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Ryan Boren 7f7efb19fd Trim query strings from menu entries before seeing if a corresponding file exists. fixes #10132 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11582 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-16 17:11:53 +00:00
Andrew Ozz 4a911beaf3 Load the menu folded (if set), load the editor earlier
git-svn-id: https://develop.svn.wordpress.org/trunk@11118 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 05:43:03 +00:00
Ryan Boren 21f4aae542 Ignore index.php in plugins dir when creating menus. Props Denis-de-Bernardy. fixes #6478
git-svn-id: https://develop.svn.wordpress.org/trunk@10890 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-08 18:20:33 +00:00
Ryan Boren b4b4718ba8 Ignore index.php in plugins dir when creating menus. fixes #6478
git-svn-id: https://develop.svn.wordpress.org/trunk@10516 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-06 18:12:05 +00:00
Ryan Boren b94b8e99a5 Ignore index.php in plugins dir when creating menus. fixes #6478
git-svn-id: https://develop.svn.wordpress.org/trunk@10510 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-05 21:02:46 +00:00
Andrew Ozz a9d2fd15ff Filter menu IDs, fixes #8523
git-svn-id: https://develop.svn.wordpress.org/trunk@10123 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-08 03:46:26 +00:00
Andrew Ozz 59ab1f6366 Fix tab button on the write screen in Opera, add tabindex to the menu, don't 'lock' the tab key between the title and the editor. Fixes #8197
git-svn-id: https://develop.svn.wordpress.org/trunk@9784 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 12:02:28 +00:00
Ryan Boren 111173f543 Don't pass menus by ref. Causes loop counter problems in php4. fixes #7966
git-svn-id: https://develop.svn.wordpress.org/trunk@9598 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 21:50:31 +00:00
Andrew Ozz 4ebfcd94a5 Menu updates: single top level menus, B&W/color icons (sprite), fix for the Firefox bug of not firing mouseout on absolute positioned elements over textareas/text fields, scaling down properly for different user roles, includes patch by Ryan, fixes #7966
git-svn-id: https://develop.svn.wordpress.org/trunk@9578 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-09 14:54:39 +00:00
Andrew Ozz 394968b4e1 Attach 'Screen Options' button to the sliding layer and related changes
git-svn-id: https://develop.svn.wordpress.org/trunk@9363 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-27 01:22:24 +00:00
Ryan Boren c4d44b8978 If parent uses admin.php, use admin.php for subs. fixes #7962
git-svn-id: https://develop.svn.wordpress.org/trunk@9337 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-24 22:40:19 +00:00
Andrew Ozz 8f9056c73c Admin menu styling
git-svn-id: https://develop.svn.wordpress.org/trunk@9306 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-23 22:19:19 +00:00
Ryan Boren 89440182ee Fix current submenu designation when sub swith the same hook exist under different parents. fixes #7948
git-svn-id: https://develop.svn.wordpress.org/trunk@9287 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 20:57:37 +00:00
Ryan Boren b4b522ffe3 Fix links for submenus that have real parents when a submenu with admin.php as a parent is current. see #7948
git-svn-id: https://develop.svn.wordpress.org/trunk@9286 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 20:42:57 +00:00