Mark Jaquith
c2945a394f
Improve the UX of the Nav Menus screen. Kill the tabs, and change to a
...
dropdown, unless you have zero or one menus (which is the most common),
in which case you jump right into editing your sole menu.
Do assignment to location using checkboxes in the main menu editing
section instead of the backwards menu => location assignment in a
random meta box.
More to come, but this gets us started.
props lessbloat, DrewAPicture, jkudish. see #23119
git-svn-id: https://develop.svn.wordpress.org/trunk@23441 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 04:53:59 +00:00
Andrew Ozz
330c10d1a9
Kill use of colons in class names, props SergeyBiryukov, fixes #21152
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22396 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 01:01:52 +00:00
Andrew Nacin
8267b431a0
In nav menus, avoid firing the magic WP_Post getter for potentially non-existent properties, which results in a metadata cache hit. see #22189 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22234 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-15 14:19:45 +00:00
Andrew Nacin
e82d5080b8
New HiDPI spinner. Uses clean <span class="spinner"></span> markup.
...
Be on the lookout for weirdness.
props lessbloat. see #21456 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22019 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:57:44 +00:00
Andrew Nacin
774a12be83
Introduce constants to allow for easier expression of time periods in seconds. Adds MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, YEAR_IN_SECONDS. props nbachiyski, SergeyBiryukov. fixes #20987 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21996 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 05:26:19 +00:00
Andrew Nacin
1c58ef9f33
Updates and fixes to the new button styles. By default, buttons are now the same size as they were in 3.4. Then there is a smaller button (designed for minor elements) and a larger button (designed for things like Publish and Save Changes). Better focus styles. props lessbloat. see #21598 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21944 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 19:34:23 +00:00
Andrew Ozz
fcbd8f7f57
Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20168 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 01:23:48 +00:00
Jon Cave
5d9ade050e
Remove use of nonexistent include_last_update_time arg from get_terms() call. See #19953 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19928 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-15 16:48:27 +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
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Ryan Boren
54067a5f20
Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19596 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-14 17:36:38 +00:00
Ryan Boren
722c6d7003
Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19074 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-28 15:48:44 +00:00
Andrew Nacin
1287ec492a
Translated strings in attributes require esc_attr(). s/_e/esc_attr_e/g
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19028 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-20 15:04:46 +00:00
Ryan Boren
789dab3f20
Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18998 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 20:44:39 +00:00
Daryl Koopersmith
60c59fb4a7
Hide nav menu item order arrows when JS is available and correct expanded nav menu item CSS bug.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18755 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-22 22:33:27 +00:00
Andrew Ozz
23824f9f30
Change the menus Link Target to checkbox, props nacin, fixes #17521
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18748 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-22 05:44:25 +00:00
Andrew Nacin
bb7c1ac6d7
Check for WP_Error return values when using get_term_field() to set up nav menu items. fixes #17958 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18426 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-11 19:03:04 +00:00
Ryan Boren
7d7509eabd
Improvements to invalid menu item handling. Props ocean90. fixes #13958
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18277 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 15:52:15 +00:00
Andrew Nacin
c24e4daf5a
Mark menu items tied to invalid taxonomies and post types as invalid. props ocean90, see #13958 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18260 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-11 00:55:48 +00:00
Andrew Nacin
36f1805ec4
Take that, PHP 5.0.5. Good riddens. see #14160 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18110 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 22:03:36 +00:00
Ryan Boren
ccba8dfbf3
Validation fixes. Props ocean90, peaceablewhale. see #17364
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18010 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-23 23:33:30 +00:00
Mark Jaquith
cc877850ac
Add a per-post-type nav menu items filter for plugin control. props aaroncampbell. see #16075
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17951 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-18 16:44:21 +00:00
Ryan Boren
5cb3ed94ae
Show hierarchy for pages and taxonomies in nav menus admin. Props greuben. fixes #17029
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17796 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-04 18:59:40 +00:00
Andrew Nacin
50820cb116
Revert to esc_html when escaping the textarea for nav menu item description. see #15454 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17143 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-25 18:42:59 +00:00
Andrew Nacin
957b0789c2
Fix width of nav menu search boxes. props batmoo, fixes #15464 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16452 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 05:16:43 +00:00
Mark Jaquith
55e0256967
esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 17:12:01 +00:00
scribu
68d5bd05df
Optimize menu item creation. Props filosofo. Fixes #14415
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16096 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 00:13:45 +00:00
Mark Jaquith
d65cdf4ba8
Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Ryan Boren
b92ecce757
Nav menu phpdoc updates. Props Utkarsh. fixes #15125
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15815 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:05:33 +00:00
Andrew Nacin
5e37bb785a
s/showposts/posts_per_page/
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15788 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 05:25:00 +00:00
Andrew Nacin
85394e795e
More curses on PHP 5.0.5. see #13757 , fixes #14160 . for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-25 07:35:59 +00:00
Andrew Nacin
09f7a954bf
Revert [15219], [15250], some of [15249] for 3.0, revisit in 3.0.1. see #13822 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15254 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 19:52:30 +00:00
Andrew Nacin
b354c95af3
Add admin UI labels for menu items of unpublished posts. props koopersmith, fixes #13822 . #stringchange
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15250 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 08:40:52 +00:00
Ryan Boren
fc2793bd46
Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:53:41 +00:00
Ron Rennick
9c74b84590
hide unpublished items on frontend nav menus, props filosofo, fixes #13822
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15219 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:34:32 +00:00
Andrew Nacin
e8f7f12adf
Horizontal scrolling/resizing fixes for nav menu UI. Also some RTL fixes. props koopersmith, see #13525
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15214 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 05:19:36 +00:00
Andrew Nacin
a53e7e3018
Switch to current_theme_supports(menus) internally. Adding theme support for 'nav-menus' is deprecated in favor of register_nav_menu(s). fixes #13825 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15193 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:57:30 +00:00
Andrew Nacin
5dcf82f22f
Don't show an error when the theme supports widgets but not menus. see #13825 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15191 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:37:15 +00:00
Ryan Boren
0922715668
Cut 'em out, move 'em on, trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Andrew Nacin
dd5d1692b8
Clear nav menu from menu locations on delete. Additional sanity checks. fixes #13690 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15100 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 05:10:31 +00:00
Andrew Nacin
d5dd6a6aec
Move the Walker_Nav_Menu_Checklist class to admin/includes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15077 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 15:47:53 +00:00
Andrew Nacin
b5f97b05ee
Consistent font size for menu instructions.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15067 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 21:58:14 +00:00
Andrew Nacin
45057df1ae
Full no-JS and IE support for [15062]. fixes #13615 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15063 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:33:48 +00:00
Andrew Nacin
60b96042f2
Use show_in_nav_menus for attachments. Also add it to register_taxonomy for consistency and have it default to public, not show_ui, like post types. see #13621 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15056 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 16:46:46 +00:00
Andrew Nacin
51cc204001
Sanity check menu item parents and fix HTML issues. props filosofo, fixes #13600 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15049 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 23:04:00 +00:00
Andrew Nacin
52ec03b947
Don't show (pending) in JS mode for nav menus UI. props filosofo, fixes #13604 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15047 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:41:39 +00:00
Andrew Nacin
69c7b18960
Make nav menu meta box tab ordering consistent across post types and taxonomies. see #13525 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15045 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:36:57 +00:00
Andrew Nacin
d7607a4cdd
Menu touchups. see #13525 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15010 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:45:52 +00:00
Andrew Nacin
29ccf1ec31
New pending menu item behavior. props filosofo, see #13579 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15008 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:22:09 +00:00
Andrew Nacin
7ed6bc6ccb
Remove some dead code. props ocean90, see #13525 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15007 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:17:58 +00:00