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
818598ac2c
Deprecate wp_create_thumbnail(). props obenland. fixes #21555 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21956 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 17:48:24 +00:00
Andrew Nacin
b401b8d14d
Better alignment in the ustom fields metabox. props SergeyBiryukov, ocean90, fixes #21847 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21955 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 17:42:46 +00:00
Andrew Nacin
a8aba36255
Use $gmt_time rather than $local_time in cron, since it uses GMT/UTC and not a local timestamp. see #14391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21954 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-23 16:57:21 +00:00
Andrew Nacin
3f051e73ef
Properly indent after [21952]. see #11399 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21953 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 16:21:06 +00:00
Andrew Nacin
b7198b85f8
Stop cleaning the cache of a post's children. Ancestors are no longer cached against the post object, which means this kind of walking is unnecessary. It is also prohibitively expensive with large hierarchies.
...
We need to remove post_ancestors non-persistent caching for this. get_post_ancestors() can simply rely on the caching of get_post() instead. Previously, it was a direct query, hence the extra layers of caching and clearing.
Child cache clearing stays in wp_delete_post() as children get a new parent.
fixes #11399 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21952 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 15:55:02 +00:00
Andrew Nacin
6c3655ce31
Don't repeatedly call get_object_taxonomies() in clean_object_term_cache(). see #11399 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21951 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 15:21:30 +00:00
bumpbot
aa36dd57fe
Compress scripts/styles: 3.5-alpha-21950.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21950 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 15:03:04 +00:00
Andrew Nacin
620b94181c
Remove old autosave collision code from edit_post(). props miqrogroove.
...
This code, which could block autosaves when drafts had future timestamps,
dates to before autosaves were saved as revisions and is no longer necessary.
fixes #21858 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21949 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 02:11:09 +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
c33b88351b
Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21947 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:27:51 +00:00
Peter Westwood
a9673a9147
Export: Ignore auto-drafts when building the list of users for the export file. Fixes #21960 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21946 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 21:48:52 +00:00
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
Andrew Nacin
2e6cb465b2
Call clean_post_cache() in wp_insert_post() after the manual query to change GUID. Remove the second call to clean_post_cache() previously done on the save_post hook. see #11399 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21943 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 18:52:15 +00:00
Andrew Nacin
35688ccb89
Have wp_publish_post() wrap wp_insert_post() directly. see #11399 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21942 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 18:49:45 +00:00
Lance Willett
1cea16720f
Twenty Twelve: change author template markup to use classes instead of IDs, fixes #21937 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21941 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 16:39:38 +00:00
Ryan Boren
ad535df32e
Allow remove_cap() to unset a negative capability. Props johnjamesjacoby. fixes #21786
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21940 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 13:41:43 +00:00
Ryan Boren
2c8fd31155
Pass a term object to the delete_term actions. Props bigdawggi. fixes #20645
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21939 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 13:27:56 +00:00
Ryan Boren
665cf6ec69
Update comment_parent in wp_update_comment(). Props JustinSainton. fixes #21706
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21938 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 12:57:26 +00:00
Ryan Boren
0012dd0e73
Honor https in home option.
...
fixes #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21937 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 12:36:50 +00:00
Peter Westwood
0da6a9dfa2
XMLRPC: Support searching via wp.getPosts() fixes #21623 props ericmann.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21936 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 10:18:32 +00:00
Peter Westwood
cd0eabd965
Widgets: Add support for display the post date in the Recent Posts widget. Fixes #21064 props lancewillett and SergeyBiryukov.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21935 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 10:05:54 +00:00
Andrew Nacin
cc6c48b945
Remove ui.css from WP's TinyMCE theme. It was left for back compat with a reference to editor-buttons.css, which was never updated to editor.css and no one noticed.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21934 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 03:13:19 +00:00
Lance Willett
23165127fc
Twenty Twelve: rework markup and styles for status post format after discussion with drewstrojny and testing for float clearing. Closes #21743 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21933 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 21:51:48 +00:00
Lance Willett
2c0959a6c5
Twenty Twelve: update status post format styles and markup, props drewstrojny. See #21743 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21932 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 19:42:19 +00:00
bumpbot
826daf5daf
Compress scripts/styles: 3.5-alpha-21931.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21931 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 18:59:45 +00:00
Lance Willett
46b365fae1
Twenty Twelve: remove duplicate font-size rules, defined already for list items in this context.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21930 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 16:33:40 +00:00
Lance Willett
4d4babe751
Twenty Twelve: update navigation script to check for missing button and menu children earlier; allows an empty menu to be set without showing the button. See #21678 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21929 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 16:28:27 +00:00
Ryan Boren
42ca24f54e
* Avoid FOUND ROWS when no posts are found
...
* Set post_count and found_posts for all 'fields' queries.
* Set found_posts to post_count when limits are not used
* Update phpdoc for $found_posts and set_found_posts()
Props SergeyBiryukov, wonderboymusic
fixes #14426
git-svn-id: https://develop.svn.wordpress.org/trunk@21928 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 14:55:54 +00:00
Ryan Boren
2086631047
Remove unnecessary label. Props waclawjacek. fixes #17978
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21927 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:59:39 +00:00
Ryan Boren
0c35bf57f6
phpdoc cleanups for general-template.php. Props c3mdigital, SergeyBiryukov. fixes #21893
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21926 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:52:36 +00:00
Ryan Boren
19252e7462
Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21925 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:50:35 +00:00
Ryan Boren
097c2c0e90
Suppress db errors when checking if the blog is already installed in install_blog(). Use DESCRIBE instead of SELECT. Props bpetty. fixes #21922
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21924 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 13:39:46 +00:00
Peter Westwood
588886c634
Passwords: Make it possible for plugins to enforce extra password strength / validity rules during the reset process.
...
Adds a filter in the password reset process so that a plugin can enforce particular password rules on users to compliment the existing filtering in the Profile modification process.
Fixes #21778 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21923 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 11:01:29 +00:00
Peter Westwood
d86f9f140f
Posting: Improve the invalid date protection code based on feedback from nacin.
...
* Introduce a wp_checkdate() function with a single filter to centralise the code that validates dates.
* Improve the error message
* Correctly handle the return value of wp_insert_post which is not always a WP_Error on failure
Fixes #17180
git-svn-id: https://develop.svn.wordpress.org/trunk@21922 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 10:46:50 +00:00
Peter Westwood
59dd4b7d2b
Posting: Make it much harder to create posts with invalid dates by enforcing the post date tests in the UI and the backend code.
...
Previously you could quite easily send a new post into the back of beyond by specifying an invalid date like the 30th Feb and this was very confusing.
Sometimes it would seem to work and sometimes the post would end up very far in the past - depending on the mysql version and other factors.
Fixes #17180 props jkudish.
git-svn-id: https://develop.svn.wordpress.org/trunk@21921 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 21:43:35 +00:00
bumpbot
42f1232e5e
Compress scripts/styles: 3.5-alpha-21920.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21920 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 18:59:36 +00:00
Ryan Boren
54e1f4abfd
Improve performance of query in get_adjacent_post(). Get the ID and then call get_post(). Props apokalyptik, nacin, javert03. fixes #18120
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21919 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 18:11:43 +00:00
Lance Willett
c2a1b19736
Twenty Twelve: remove overflow rule from wrapper element to allow image styles to spill out into margins. Fixes #21926 . See also #21381 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21918 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 17:38:30 +00:00
Andrew Nacin
8aee69730b
It is 'Alternative Text', not 'Alternate Text'. props alecrust, RyanJKoehler. fixes #21176 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21917 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 16:55:43 +00:00
Andrew Nacin
4a0d94a59e
Flexible widths for select boxes above list tables. For posts, that means bulk actions and date/category filters. Opens up more room (can prevent wrapping) and allows for longer localized strings. props SergeyBiryukov, fixes #21752 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21916 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 15:44:01 +00:00
Ryan Boren
2851d75027
Handle https for all oembed providers. Props johnjamesjacoby, gluten. fixes #20102
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21915 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 13:46:05 +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
b4350a0424
Send nocache_headers() in the admin earlier, on the DB upgrade page. Prevents a potential redirect loop reproduced in Chrome from heavy caching of headers. props mdawaffe. see #21745 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21913 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:51:40 +00:00
Andrew Nacin
d904430fc0
Introduce the xmlrpc_login_error filter, applied to the IXR_Error being returned by the server when login() fails. props JustinSainton, fixes #21907 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21912 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:36:47 +00:00
Andrew Nacin
44cd6b7e85
Deprecate user_pass_ok() in favor of wp_authenticate(). see #21907 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21911 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:35:35 +00:00
Andrew Nacin
7854ebaeab
XML-RPC: Have the deprecated login_pass_ok() method wrap login(). Move it below login() so the proper method is found first. see #21907 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21910 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:27:21 +00:00
Daryl Koopersmith
7b999727ce
Rename the attachment-thumbnail class in the media modal Attachment view to prevent conflicts with wp_get_attachment_image(). see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21909 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:10:17 +00:00
Daryl Koopersmith
3de3ed85fd
Media JS: Prevent infinite scroll events from being unbound when Attachments views are re-rendered. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21908 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 01:00:34 +00:00