twentyGOLEM/wp-includes
ryan a831898020 When fetching the user in get_currentuserinfo(), make sure it is a valid WP_User object. If it is stdClass, upgrade it to WP_User. If it is WP_Error, an int, or anything else, set the current user to ID 0.
In wp_set_current_user(), return the current user global only if it is a WP_User object. If it is not, fall through and go about setting it up properly.

Formatting cleanups for both functions.

see #20372


git-svn-id: http://svn.automattic.com/wordpress/trunk@20410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-09 22:01:07 +00:00
..
Text
css Compress scripts/styles: 3.4-beta1-20405. 2012-04-08 21:58:20 +00:00
images
js Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated. 2012-04-06 23:58:19 +00:00
pomo
theme-compat
admin-bar.php In the admin, render the Toolbar immediately, rather than waiting until the footer. When intensive pages take a while to load, you aren't stuck without a working admin header. fixes #20161. 2012-03-02 22:51:29 +00:00
atomlib.php
author-template.php
bookmark-template.php
bookmark.php
cache.php Prevent notices by checking if the $group key isset(). See #20004. 2012-03-02 21:57:03 +00:00
canonical.php Handle page= and feed= query strings in redirect_guess_404_permalink(). fixes #20387 2012-04-07 05:39:08 +00:00
capabilities.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
category-template.php Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. 2012-02-28 20:29:33 +00:00
category.php
class-IXR.php
class-feed.php
class-http.php WP_HTTP: Curl: $theHeaders is an array, not an object, introduced in [20370]. Props kurtpayne. Fixes #20389 See #20219 2012-04-07 07:16:30 +00:00
class-json.php
class-oembed.php We use colon as the case separator. 2012-03-21 15:04:52 +00:00
class-phpass.php
class-phpmailer.php Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887 2012-02-07 16:13:51 +00:00
class-pop3.php
class-simplepie.php Switch from Net_IPv6 to SimplePie_Net_IPv6. Props stephdau, rmccue. fixes #19991 2012-02-09 20:17:23 +00:00
class-smtp.php Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887 2012-02-07 16:13:51 +00:00
class-snoopy.php
class-wp-admin-bar.php
class-wp-ajax-response.php Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024. 2012-02-12 19:02:07 +00:00
class-wp-atom-server.php Consolidate some strings. Props ramiy. see #20216 2012-03-19 19:04:49 +00:00
class-wp-customize-control.php Add some missing documentation and fix a couple of typos. Props roscius. Fixes #19756. 2012-04-04 17:32:03 +00:00
class-wp-customize-section.php Add some missing documentation and fix a couple of typos. Props roscius. Fixes #19756. 2012-04-04 17:32:03 +00:00
class-wp-customize-setting.php Theme Customizer: Properly pass arguments by reference to WP_Customize_Setting->multidimensional(). see #19910, [20136], #20163. 2012-03-28 09:27:26 +00:00
class-wp-customize.php Theme Customizer: String change to clarify choosing a static page (remove 'select below'). see #19910. 2012-04-07 00:18:02 +00:00
class-wp-editor.php Fix adding of parent theme's editor-style before child theme's, props SergeyBiryukov, see #19437 2012-04-02 22:26:11 +00:00
class-wp-error.php
class-wp-http-ixr-client.php
class-wp-theme.php Child theme files need to override parent theme files. The array_merge() arguments are swapped. see #20103. 2012-04-05 20:36:34 +00:00
class-wp-walker.php
class-wp-xmlrpc-server.php Remove duplicated featured_image block. props koke. 2012-04-09 15:28:07 +00:00
class-wp.php Deprecate ancient "debugging" tools. 2012-02-17 00:02:42 +00:00
class.wp-dependencies.php
class.wp-scripts.php Pinking shears 6-20000 2012-02-27 19:46:52 +00:00
class.wp-styles.php
comment-template.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
comment.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
compat.php
cron.php Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449 2012-02-14 17:53:35 +00:00
customize-controls.php Theme Customizer: Add a 'previewing' notice by the theme name. Reduce padding and size on section titles, add a border between section titles and content to better indicate the title as a click target. see #19910. 2012-04-08 21:17:46 +00:00
default-constants.php
default-filters.php Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202. 2012-03-21 15:04:00 +00:00
default-widgets.php Use get_taxonomies() instead of get_object_taxonomies() in the tag cloud widget. props GautamGupta, scribu. see #20238, see #16125. 2012-03-24 14:00:52 +00:00
deprecated.php Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400 2012-04-09 20:05:47 +00:00
feed-atom-comments.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-atom.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rdf.php
feed-rss.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rss2-comments.php
feed-rss2.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed.php
formatting.php Do not process <pre> tags with wpautop, replace them with placeholders, process the rest of the content and then put them back. Part props kurtpayne, see #19855 2012-03-28 15:43:31 +00:00
functions.php Restore the h1 styling for wp_die(), primarily affects database down messages. See #17975 2012-03-18 11:51:25 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php Check for is_rtl() existence before checking it in the fallback condition in wp_admin_css(). Prevents fatal errors when plugins call wp_admin_css() on a non-existent (probably removed) stylesheet. props SergeyBiryukov, fixes #19913. 2012-03-30 13:10:52 +00:00
http.php
kses.php Reduce memory usage in wp-includes/kses.php by switching unnecessary empty arrays to boolean. Fixes #20017. 2012-02-21 20:33:44 +00:00
l10n.php
link-template.php Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. 2012-02-28 20:29:33 +00:00
load.php Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180. 2012-02-08 06:05:35 +00:00
locale.php Add a translator's comment. see #19924. 2012-02-06 19:43:26 +00:00
media.php Remove enqueue of wp_plupload_default_settings() from admin_enqueue_scripts(). For now, it needs to be enqueued selectively when needed. see #19910. 2012-03-21 03:21:07 +00:00
meta.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
ms-blogs.php Add refresh_blog_details action. Props mdawaffe. fixes #19987 2012-02-09 19:53:53 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
ms-files.php
ms-functions.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
ms-load.php
ms-settings.php
nav-menu-template.php
nav-menu.php
option.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
pluggable-deprecated.php
pluggable.php When fetching the user in get_currentuserinfo(), make sure it is a valid WP_User object. If it is stdClass, upgrade it to WP_User. If it is WP_Error, an int, or anything else, set the current user to ID 0. 2012-04-09 22:01:07 +00:00
plugin.php
post-template.php Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750. 2012-03-02 18:56:54 +00:00
post-thumbnail-template.php Split the main WP_Query posts query into two queries to avoid temp tables. Leverage cache to avoid second query in persistent cache environments. Props scribu, cheald, prettyboymp. see #18536 2012-02-14 15:09:35 +00:00
post.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
query.php Always pass a table alias to wp_post_mime_type_where(). Prevents ambiguous queries when adding joins later on. props benbalter, fixes #20193. 2012-03-30 13:08:12 +00:00
registration-functions.php
registration.php
rewrite.php Pinking shears 6-20000 2012-02-27 19:46:52 +00:00
rss-functions.php
rss.php
script-loader.php Allow selecting custom header and background images from the media library. Props aaroncampbell, sabreuse, greuben. fixes #19840 2012-04-05 00:20:28 +00:00
shortcodes.php
taxonomy.php Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948. 2012-03-24 15:24:31 +00:00
template-loader.php
template.php Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750. 2012-03-02 18:56:54 +00:00
theme.php Internally cache themes inside wp_get_themes() by theme_root as well as stylesheet, to avoid conflicts with future calls to wp_get_themes(). Always return only the last stylesheet found, as before. see #20103. 2012-04-05 20:38:42 +00:00
update.php Use correct filter name in wp_update_themes(): s/load-plugins/load-themes/. See r19683, #18876. 2012-03-24 14:07:12 +00:00
user.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
vars.php
version.php Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated. 2012-04-06 23:58:19 +00:00
widgets.php
wlwmanifest.xml Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
wp-db.php Correct @since and remove invalid code example in wpdb::delete() documentation. Props GaryJ, scribu. See #18948. 2012-03-27 12:00:39 +00:00
wp-diff.php