~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-error.php

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-09-04 23:18:58 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20130904231858-nljmn1buzswh63jk
Tags: 3.6+dfsg-1
* New upstream release.
* Improve wp-settings to verify that $_SERVER['HTTP_X_FORWARDED_PROTO']
  exists before accessing it (avoids a PHP notice).
  Thanks to Paul Dreik <slask@pauldreik.se> for the report and the patch.
* Document in README.Debian the need to login to /wp-admin/ to complete
  an upgrade.
* Drop useless debian/README.source
* Drop 008CVE2008-2392.patch since upstream now disables unfiltered
  uploads by default. See http://core.trac.wordpress.org/ticket/10692
* Drop 009CVE2008-6767.patch since the backto parameter is validated
  against a whitelist, and externally triggered upgrades are not a
  security problem as long as they work.
* Update debian/missing-sources with latest versions.
* Update upstream l10n.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
/**
195
195
 * Check whether variable is a WordPress Error.
196
196
 *
197
 
 * Looks at the object and if a WP_Error class. Does not check to see if the
198
 
 * parent is also WP_Error, so can't inherit WP_Error and still use this
199
 
 * function.
 
197
 * Returns true if $thing is an object of the WP_Error class.
200
198
 *
201
199
 * @since 2.1.0
202
200
 *
203
 
 * @param mixed $thing Check if unknown variable is WordPress Error object.
 
201
 * @param mixed $thing Check if unknown variable is a WP_Error object.
204
202
 * @return bool True, if WP_Error. False, if not WP_Error.
205
203
 */
206
204
function is_wp_error($thing) {