| [22094]
|
ryan
|
Introduce WP_Image_Editor, WP_Image_Editor_Imagick, and WP_Image_Editor_GD. Abstracts image editing API and adds support for ImageMagick.
Props DH-Shredder, kurtpayne, markoheijnen
see #6821
|
| [22093]
|
ryan
|
Respect ssl for the image src link in edit_form_image_editor(). see #21391
|
| [22092]
|
ryan
|
* Register blog-id-cache group as global
* Introduce clean_blog_cache() so we can run it independently of refresh_blog_details() which assumes the blog still exists and get_blog_details() can be called.
* Don't db escape cache keys in get_blog_id_from_url()
* prepare() the query in get_blog_id_from_url()
* Return 0 for all failures in get_blog_id_from_url()
* clean_blog_cache() after dropping tables in wpmu_delete_blog() to make sure the cache is for real cleaned.
|
| [22091]
|
ryan
|
Initialize to avoid notice. Props bradyvercher. fixes #22050
|
| [22090]
|
ryan
|
Restore the behavior of the 'all' status for comment queries. Props SergeyBiryukov. see #21101
|
| [22088]
|
ryan
|
Revert stowaway in [22087]
|
| [22087]
|
ryan
|
Reinit roles and the current user after switching the cache to the new blog in switch_to_blog() and restore_current_blog(). Props joostdekeijzer. fixes #21459
|
| [22086]
|
ryan
|
Add @since to wp_cache_switch_to_blog(). Props SergeyBiryukov. fixes #21434
|
| [22085]
|
ryan
|
Handle screen arg in WP_Comments_List_Table constructor. Avoids warning when calling WP_Screen::get() later. fixes #22039
|
| [22080]
|
ryan
|
Invalidate the WP_Comment_Query:query() cache when comments are added. Switch last_changed to a counter incremented via wp_cache_incr().
fixes #22024
|
| [22079]
|
ryan
|
Remove debug cruft. Props duck_. fixes #21003
|
| [22074]
|
ryan
|
Support meta queries in WP_Comment_Query.
Props nikolov.tmw
fixes #21003
|
| [22068]
|
ryan
|
Allow get_comments() to query for explicit value of comment_approved.
Props dd32, nbachiyski
fixes #21101
|
| [22065]
|
ryan
|
Add domain_exists filter. Props jamescollins. fixes #21142
|
| [22064]
|
ryan
|
Remove dupe/deprecated code from sites.php.
Props wonderboymusic
fixes #21553
|
| [22060]
|
ryan
|
Introduce create_posts meta capability. Props scribu, nacin, casben79. see #16714
|
| [22056]
|
ryan
|
Add publish_post meta cap. Props nacin. fixes #21288
|
| [22015]
|
ryan
|
Don't read from the switched global. Instead use _wp_switched_stack. switched is retained for back compat and should not be directly read since it is prone to stompage by plugins. see #21459
|
| [22011]
|
ryan
|
Convert the object in the posts array to WP_Post only if the posts array is not empty. Some post caching plugins can cause it to be empty. see #21309
|
| [22001]
|
ryan
|
Call send_origin_headers() from admin-ajax.php. Props nacin. fixes #21024
|
| [21988]
|
ryan
|
Handle pre-flighted OPTIONS requests in send_origin_headers(). Props nacin. fixes #21024
|
| [21982]
|
ryan
|
The edit-tags screen ID does not contain the post_type. Fallback to post_type in the REQUEST. Fixes AJAX term addtions from edit-tags.php. fixes #21871
|
| [21981]
|
ryan
|
Fetch full terms for the post_category and tags_input queries and then wp_list_pluck() the desired fields. Fetching full terms primes the cache and reduces overall queries. Add cache invalidation to wp_set_post_terms(). Props scribu. see #21309
|
| [21979]
|
ryan
|
* Invalidate the get_id_from_blogname_* cache in refresh_blog_details()
* Change $name to $slug in get_id_from_blogname() for some semblance of clarity.
* Strip leading and trailing slashes from the slug in get_id_from_blogname() so get_blog_details()->path can be passed directly.
Props wonderboymusic
see #20950
|
| [21969]
|
ryan
|
Fix CPT links in Theme Options list. Props SergeyBiryukov, JarretC. fixes #21655
|
| [21968]
|
ryan
|
Add help to the attachment editor. Props DrewAPicture. see #21391
|
| [21967]
|
ryan
|
Don't add empty _wp_attached_file, _wp_attachment_metadata, _thumbnail_id meta to posts. Delete these fields when set to empty. Props SergeyBiryukov, Caspie. fixes #16391
|
| [21940]
|
ryan
|
Allow remove_cap() to unset a negative capability. Props johnjamesjacoby. fixes #21786
|
| [21939]
|
ryan
|
Pass a term object to the delete_term actions. Props bigdawggi. fixes #20645
|
| [21938]
|
ryan
|
Update comment_parent in wp_update_comment(). Props JustinSainton. fixes #21706
|
| [21937]
|
ryan
|
Honor https in home option.
fixes #20759
|
| [21928]
|
ryan
|
* 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
|
| [21927]
|
ryan
|
Remove unnecessary label. Props waclawjacek. fixes #17978
|
| [21926]
|
ryan
|
phpdoc cleanups for general-template.php. Props c3mdigital, SergeyBiryukov. fixes #21893
|
| [21925]
|
ryan
|
Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629
|
| [21924]
|
ryan
|
Suppress db errors when checking if the blog is already installed in install_blog(). Use DESCRIBE instead of SELECT. Props bpetty. fixes #21922
|
| [21919]
|
ryan
|
Improve performance of query in get_adjacent_post(). Get the ID and then call get_post(). Props apokalyptik, nacin, javert03. fixes #18120
|
| [21915]
|
ryan
|
Handle https for all oembed providers. Props johnjamesjacoby, gluten. fixes #20102
|
| [21914]
|
ryan
|
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
|
| [21815]
|
ryan
|
Avoid 'Creating default object from empty value' warning in PHP 5.4. Props SergeyBiryukov, knutsp. fixes #21716
|
| [21802]
|
ryan
|
Preserve the $format and $link arguments for passing to the previous|next_post_link filter. Pass $post to the filter.
Props Otto42, helenyhou
fixes #19640 #18764
|
| [21801]
|
ryan
|
Add missing closedir() to wpmu_delete_blog(). Props timfs. fixes #21780
|
| [21800]
|
ryan
|
Deprecate get_default_post_to_edit(). Props SergeyBiryukov. fixes #21677
|
| [21799]
|
ryan
|
phpdoc fixes and additions for post-template.php. Props c3mdigital. fixes #21220
|
| [21798]
|
ryan
|
When reassigning posts and links during user deletion, clear the post and link caches. Props kurtpayne. fixes #20447
|
| [21797]
|
ryan
|
Don't use set_url_scheme() in wp_guess_url(). wp_guess_url() is used during install before set_url_scheme() is loaded. Props SergeyBiryukov. fixes #20759
|
| [21794]
|
ryan
|
Set the archived, spam, and deleted properties in the objects returned from get_blogs_of_user(). Props wonderboymusic. fixes #16225
|
| [21793]
|
ryan
|
Restore return by ref for make_entry(). Props SergeyBiryukov. fixes #21839
|
| [21792]
|
ryan
|
Remove unnecessary return by refs. Props wonderboymusic. fixes #21839
|
| [21791]
|
ryan
|
Check for an empty post in wp_popular_terms_checklist(). _wp_ajax_add_hierarchical_term() doesn't set up global post info. Props SergeyBiryukov. see #21309
|
| [21790]
|
ryan
|
* Introduce wp_kses_allowed_html() which accepts a context string and returns an array of allowed tags.
* Remove explicit declarations of class, id, style, and title from $allowedposttags
* Dynamicallly add global attributes to every tag for the 'post' context
* No longer calls wp_kses_array_lc() every time wp_kses() runs. Instead it runs once if CUSTOM_TAGS is true. Plugins directly passing a custom allowed_html array will no longer get the lc treatment. Keep an eye out for problems with this.
* wp_kses_data() and wp_filter_kses() pass current_filter() for the $allowed_html argument to wp_kses().
* wp_kses_allowed_html() handles being passed a filter name for a context. If the filter is not a recognized one it defaults to using $allowedtags as was done before for wp_kses_data() and wp_filter_kses().
* wp_kses_allowed_html() recognizes user_description and pre_user_description out of the box. For these it takes $allowedtags and inserts rel attribute support.
* wp_kses_allowed_html() allows plugins to override the return values for the default contexts and support arbitrary contexts via a wp_kses_allowed_html filter.
* wp_kses_hook() can now pass a string context for $allowed_html to the pre_kses filter. We might have to pass the result of wp_kses_allowed_html() instead if it turns out that plugins are digging in $allowed_html.
fixes #17977
see #20210
|
| [21768]
|
ryan
|
Change the number of themes shown per page in themes.php from 999 to 36 so that infinite scroll engages. 36 was chosen to match the per page limit for theme-install.php
|
| [21767]
|
ryan
|
Restore in get_the_excerpt(). Props c3mdigital. fixes #21797
|
| [21766]
|
ryan
|
Return WP_Error if the db insert in wp_set_object_terms() fails. Props jndetlefsen. fixes #21800
|
| [21765]
|
ryan
|
Fix typo in phpdoc for wp_newPost(). Props alyssonweb. fixes #21798
|
| [21750]
|
ryan
|
Remove the filter setting when searching media. Props helenyhou. fixes #19452
|
| [21749]
|
ryan
|
Make the 'Download Export File' button primary. Props helenyhou. fixes #21781
|
| [21748]
|
ryan
|
Allow querying by menu_order. Props wonderboymusic. fixes #21618
|
| [21747]
|
ryan
|
Update phpdoc for count_many_users_posts(). Props willmot. fixes #21640
|
| [21746]
|
ryan
|
Add labels for all inputs in options-discussion. Props SergeyBiryukov, lessbloat, Latz. fixes #21373
|
| [21743]
|
ryan
|
Remove not so useful author column sorting. Props scribu. fixes #17141
|
| [21742]
|
ryan
|
Make the callback optional for add_settings_section(). Props lightningspirit. fixes #21630
|
| [21735]
|
ryan
|
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
|
| [21734]
|
ryan
|
Use set_url_scheme() in the *_url() functions to keep things DRY. Props johnbillion. fixes #20759
|
| [21693]
|
ryan
|
s/blog/site/. see #21742
|
| [21687]
|
ryan
|
Introduce WP_Screen::in_admin() for determining which admin the screen is in.
Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.
fixes #21742
|
| [21664]
|
ryan
|
Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
|
| [21655]
|
ryan
|
Simplify return from WP_Post::__get() now that references are no longer returned. see #21309
|
| [21654]
|
ryan
|
Lose return ref from WP_Post::__get(). see #21309
|
| [21651]
|
ryan
|
Add tags_input, page_template, and post_category get magic to WP_Post.
Deprecate get_post_to_edit() and wp_get_single_post().
Props scribu
see #21309
|
| [21647]
|
ryan
|
Initialize to avoid 'Creating default object from empty value' warning in PHP 5.4.4.
|
| [21629]
|
ryan
|
Use set_url_scheme() in _custom_background_cb() to properly set the scheme for the background image when is_ssl(). Props jkudish. fixes #18005
|
| [21628]
|
ryan
|
Use switch_to_blog()/restore_current_blog() in get_blog_post() and get_blog_permalink(). Eliminate the duplicate caching in these functions. Return WP_Post from get_blog_post(). Update phpdoc. Remove global-posts cache invalidation. Props jondavidjohn fixes #21595
|
| [21627]
|
ryan
|
Return WP_Post from get_adjacent_post(). see #21309
|
| [21601]
|
ryan
|
Remove typo in phpdoc. see #21309 Props TobiasBg
|
| [21599]
|
ryan
|
Use get_post() instead of bare SQL in do_trackbacks(). see #21309
|
| [21598]
|
ryan
|
Update phpdoc for functions that return WP_Post. Soft deprecate get_page(). see #21309
|
| [21597]
|
ryan
|
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
|
| [21596]
|
ryan
|
Don't overwrite the post global in _get_page_link(). see #21309
|
| [21595]
|
ryan
|
Restore blog_option_* filter. see #21459
|
| [21590]
|
ryan
|
jQuery 1.8.0 and jQuery UI 1.8.23. Props c3mdigital. see #21532
|
| [21585]
|
ryan
|
Use get_posts() to fetch stickies rather than custom bare SQL. Props scribu. see #21309
|
| [21581]
|
ryan
|
Resurrect the switched global. Some are still using it. see #21459
|
| [21572]
|
ryan
|
Remove references from get_post() and get_page().
Handle $GLOBALS['post'] containing stdClass instead of WP_Post.
Props nacin
see #21309
|
| [21561]
|
ryan
|
s/is_ms_switched/ms_is_switched/ see #21459
|
| [21560]
|
ryan
|
Introduce is_ms_switched(). see #21459
|
| [21559]
|
ryan
|
Introduce WP_Post class. Clean up ancestors handling. Props scribu, toppa. fixes #10381 see #21309
|
| [21553]
|
ryan
|
Reduce calls to sanitize_title_with_dashes in register_(post_type|taxonomy). Props ocean90. fixes #21600
|
| [21541]
|
ryan
|
Introduce wp_get_mime_types() for fetching the complete list of mime types. Remove the static caching of the types so that filters other than the first filter work. Use wp_get_mime_types() in do_enclose(). fixes #21299 #21594
|
| [21538]
|
ryan
|
Send Content-Type with charset for iframe_header(). Props SergeyBiryukov, sergey.s.betke@novgaro.ru. fixes #19454
|
| [21531]
|
ryan
|
Specify the encoding in IXR_Server::output(). Props solarissmoke, sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #4794
|
| [21528]
|
ryan
|
Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #19448
|
| [21527]
|
ryan
|
Fix MS Office mime types. Group the mime list in get_allowed_mime_types() by type. Props hebbet, markel, SergeyBiryukov. fixes #17117
|
| [21526]
|
ryan
|
Return post_parent, menu_order, guid, and post_mime_type from wp.getPost(). Props maxcutler. fixes #21308
|
| [21523]
|
ryan
|
Fix phpdoc for switch_to_blog() and restore_current_blog(). Props SergeyBiryukov. fixes #21459
|
| [21522]
|
ryan
|
Add @since for _wp_get_user_contactmethods() and _get_additional_user_keys(). Props SergeyBiryukov. fixes #21246
|
| [21521]
|
ryan
|
Update @since for various wpdb properties. Props SergeyBiryukov. fixes #21582
|
| [21509]
|
ryan
|
Update wp_update_user() phpdoc to reflect a possible return of WP_Error. Props SergeyBiryukov. fixes #21439
|
| [21508]
|
ryan
|
Fix display issues in the custom header screen when height is not specified. Use get_header_image() instead of header_image() so that esc_url() can do its job. Props JarretC, SergeyBiryukov, georgestephanis. fixes #21130 #21433
|
| [21507]
|
ryan
|
Use admin_url() instead of get_edit_user_link() in wp-login.php since cookies are not yet set. Props SergeyBiryukov. fixes #14787
|