Andrew Nacin
8565aa6e34
Reset $taxonomy in single_row's default branch. props tott. fixes #21240 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21945 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 20:28:25 +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
Ryan Boren
7c52a19a5a
Reduce reliance on global variables in the list tables. Allow passing a screen ID to the list tables so that ajax handlers can set the needed screen.
...
Props nacin
fixes #21871
git-svn-id: https://develop.svn.wordpress.org/trunk@21914 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 12:43:31 +00:00
Andrew Nacin
7846681ed4
Don't show 'Uncategorized' in the category column on edit.php if there are no categories (including the default one). props ocean90. fixes #21240 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21806 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 01:31:53 +00:00
Daryl Koopersmith
7d6e53317c
New button styles.
...
Using the new buttons:
* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny".
For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes.
get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix).
props lessbloat, helenyhou, trepmal, nacin. see #21598 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 04:58:34 +00:00
Andrew Nacin
bcf58b34c4
Allow easy registration of taxonomy columns on post (and custom post type) list table screens.
...
To register a column for a list table, use the new manage_taxonomies_for_{$post_type}_columns
filter. Introduces show_admin_column => true for register_taxonomy(), which automatically
displays that column on all associated post types.
props jtsternberg, SergeyBiryukov for initial patches.
fixes #21240 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21788 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 03:18:36 +00:00
Ryan Boren
1ce32cbf14
Remove not so useful author column sorting. Props scribu. fixes #17141
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21743 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:57:18 +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
Ryan Boren
de06b81360
Remove return ref from all calls to get_post()
...
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309
git-svn-id: https://develop.svn.wordpress.org/trunk@21597 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 20:01:10 +00:00
Ryan Boren
4974f5f233
Remove post type from post nonces. Fixes attachment deletion when EMPTY_TRASH_DAYS is 0. Props c3mdigital, kurtpayne, SergeyBiryukov. fixes #21194
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21504 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-14 18:39:15 +00:00
Ryan Boren
dd15327790
More screen reader text for list table checkboxes and theme install search. Props MikeLittle, SergeyBiryukov. see #21325
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21323 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-25 16:18:14 +00:00
Ryan Boren
c47eef91e0
Add screen reader text to checkboxes in list tables. Props MikeLittle, nacin. see #21325
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21317 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 18:01:22 +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
Mark Jaquith
183f814884
Prevent child pages from being visually promoted to the top level after Quick Edit. props ssamture. fixes #18615
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21192 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-30 09:28:15 +00:00
Andrew Nacin
7232568783
Remove dead conditionals from the media and post list tables. props wpmuguru, SergeyBiryukov. fixes #20781 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21162 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-28 19:58:43 +00:00
Ryan Boren
42b507572c
In excerpt view, show the excerpt only if the user can read_post.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21047 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 16:22:55 +00:00
Jon Cave
83a3cc73df
Accept a post object in clean_post_cache(). Fixes #20486 .
...
The post_type can then be accessed to properly clean the taxonomy relationships cache.
The full object is useful in situations when an ID might reference a post that has been
removed from the database (e.g. wp_delete_post()).
git-svn-id: https://develop.svn.wordpress.org/trunk@20569 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 22:04:35 +00:00
Ryan Boren
27592057cd
Pass post_type to clean_post_cache() instead of attempting to fetch a post object since the post may have been deleted.
...
Props leewillis77
see #19690
git-svn-id: https://develop.svn.wordpress.org/trunk@20423 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 16:09:44 +00:00
Andrew Nacin
a72a104a4c
Change 'Post Format' bulk/quick edit label to 'Format'. Consistent with the UI and prevents word wrapping. Tidy logic. see #20245 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20195 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:19:30 +00:00
Andrew Nacin
183c5df8c2
Hide unsupported post formats from bulk edit. fixes #20245 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20194 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 17:17:56 +00:00
Andrew Nacin
092808ead8
Allow localized commas to be used as tag separators. see #7897 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19853 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:06:12 +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
f626327800
Don't fallback to default post type or taxonomy if given an invalid post type or taxonomy. Use typenow as the canonical post type. Props nacin. see #19131
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19321 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 18:01:08 +00:00
Ryan Boren
aee3c7de59
Don't show the view link for a future post unless the current user has the permissions to edit the post. Treat future posts as a preview case. Props ocean90. fixes #18894
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19213 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 14:24:14 +00:00
Andrew Nacin
1c57505242
Don't use $post_type global in the posts list table. props scribu, see #18475 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19192 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 21:14:27 +00:00
Ryan Boren
fd10e500e4
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:13:23 +00:00
Andrew Nacin
7121150930
Use get_current_screen() rather than a $current_screen global reference. Remove unused global reference. see #14886 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19047 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 18:01:33 +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
Jon Cave
d7ee58c7e2
Show the current post format in quick edit even if it's not supported. Props nacin, fixes #18083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19011 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 17:48:07 +00:00
Mark Jaquith
f32a070480
Use the correct capability check for taxonomies in Quick Edit. props lancewillett. fixes #18551
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19010 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 17:08:57 +00:00
Andrew Nacin
106a94406e
Add filter for the args into wp_dropdown_pages() in the page attributes box. Give the list_pages filter the context of the post object. fixes #8592 for 3.3.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18818 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:21:15 +00:00
Jon Cave
83f0e2c349
Add post formats to quick edit and bulk edit. Fixes #18083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18722 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 17:02:58 +00:00
Andrew Nacin
be4c3e1d86
Use get_post_class() in the posts list table. props brandondove, fixes #18516 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18706 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-18 21:11:28 +00:00
Andrew Nacin
7665b28755
Properly handle display of Order, Template, and Parent page attributes in Quick/Bulk Edit. props duck_, fixes #18352 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18527 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-11 03:02:01 +00:00
Mark Jaquith
2aea6faf97
Fix mistaken use of publicly_queryable when public was what was intended. props nacin. fixes #17040
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18234 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 17:02:03 +00:00
Andrew Ozz
76f9fca002
Fix quick edit error message styling, props solarissmoke, fixes #16912 , fixes #14317
...
Fix top margin in bulk edit posts
git-svn-id: https://develop.svn.wordpress.org/trunk@18158 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-06 01:14:26 +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
Andrew Nacin
c96930408d
Don't show broken 'View' links when a CPT isn't publicly queryable. fixes #13301 , props johnbillion.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17899 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 06:04:47 +00:00
Ryan Boren
9730cb8d15
Constructor cleanup. Props ocean90. fixes #16768
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Andrew Nacin
e312fa6050
Add the filter in display_rows, rather than _display_rows.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17684 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-22 18:33:53 +00:00
Andrew Nacin
d4aad7cf1e
Remove vestige code, prevent over-escaping of post titles when using Quick Edit for hierarchical post types. fixes #17218 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17682 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-22 18:20:49 +00:00
Andrew Nacin
a399fa0529
Use only an ID, no name, on the 'Filter' buttons on list screens. see #16345 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17349 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:25:32 +00:00
Andrew Nacin
2b4674a3b4
Remove AJAX from list tables. first pass. see #16262 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17322 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-16 21:47:24 +00:00
Mark Jaquith
9ce71fde62
Show the author dropdown in quick edit even when there is only one contributor-or-higher user and the post belongs to someone who no longer has contributor-or-higher access. fixes #14420
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17284 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-13 07:14:12 +00:00
Andrew Nacin
911530b2fe
Use is_post_type_hierarchical() instead of hierarchical_display. fixes #16213 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17278 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-13 01:21:30 +00:00
Andrew Nacin
03582ad585
Revert [17275] and [17276]. The rabbit hole is too deep. see #16166 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17277 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-13 00:50:35 +00:00
Andrew Nacin
aa8519609e
Move edit.php bulk actions code to a handler in the list table class. see #16166 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17276 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-13 00:34:18 +00:00
Andrew Nacin
8ace5bbf91
div.alignleft.actions needs to wrap the 'Empty Trash' button too, otherwise they're not aligned. see #15580 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17195 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-31 23:56:38 +00:00
Ryan Boren
bf86ab0a2d
Issue manage_pages_custom_column for hierarchical post types. Props mrwok, duck_. fixes #16000
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17160 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-28 19:34:31 +00:00
Andrew Nacin
fbc4c6980e
Don't include trash posts in the sticky posts count. props garyc40, fixes #15934 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17097 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-21 14:58:17 +00:00