WordPress/wp-admin/includes
Scott Taylor fe6b5983df In PHP 5.0.0, `is_a()` became deprecated in favour of the `instanceof` operator. Calling `is_a()` would result in an `E_STRICT` warning.
In PHP 5.3.0, `is_a()` is no longer deprecated, and will therefore no longer throw `E_STRICT` warnings.

To avoid warnings in PHP < 5.3.0, convert all `is_a()` calls to `$var instanceof WP_Class` calls.

`instanceof` does not throw any error if the variable being tested is not an object, it simply returns `false`.

Props markoheijnen, wonderboymusic.
Fixes #25672.

Built from https://develop.svn.wordpress.org/trunk@31188


git-svn-id: http://core.svn.wordpress.org/trunk@31169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-16 01:06:24 +00:00
..
admin.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:14:16 +00:00
ajax-actions.php In `wp_ajax_upload_attachment()`, `wp_check_filetype_and_ext()` doesn't need a 3rd param - it already defaults to `null`. Passing `false` would fail a strict check 2015-01-10 04:55:25 +00:00
bookmark.php Switch to a `403` response code in places where it is more appropriate than a `500` due to permissions errors. 2014-11-16 06:16:22 +00:00
class-ftp-pure.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
class-ftp-sockets.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
class-ftp.php PHP 5.2 compatibility for [30310], __DIR__ wasn't added until PHP 5.3. Props TobiasBg. Fixes #29628 2014-11-12 10:44:23 +00:00
class-pclzip.php
class-wp-comments-list-table.php After [31146], properly declare `$user_can` as a `private` field in `WP_Comments_List_Table`. 2015-01-12 16:02:24 +00:00
class-wp-filesystem-base.php In `WP_Filesystem_Base`, make the only `private` member, `$cache`, `public` and remove magic methods. `$cache` was always `public` until [28487], has been essentially `public` via a magic method since. 2015-01-11 22:04:22 +00:00
class-wp-filesystem-direct.php Improve some `wp-admin/includes/class-wp-filesystem-*.php` docs for `@param`. 2014-12-20 20:40:23 +00:00
class-wp-filesystem-ftpext.php Adding a `@return` annotation to constructors is generally not recommended as a constructor does not have a meaningful return value - anything that is returned is discarded. 2015-01-10 06:13:22 +00:00
class-wp-filesystem-ftpsockets.php Adding a `@return` annotation to constructors is generally not recommended as a constructor does not have a meaningful return value. Constructors do not have meaningful return values, anything that is returned from here is discarded. 2015-01-10 06:54:23 +00:00
class-wp-filesystem-ssh2.php Adding a `@return` annotation to constructors is generally not recommended as a constructor does not have a meaningful return value - anything that is returned is discarded. 2015-01-10 06:13:22 +00:00
class-wp-importer.php Adding a `@return` annotation to constructors is generally not recommended as a constructor does not have a meaningful return value - anything that is returned is discarded. 2015-01-10 06:13:22 +00:00
class-wp-links-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-media-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-ms-sites-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-ms-themes-list-table.php In lieu of refactoring, add a `private` field to `WP_MS_Themes_List_Table`, `$has_items`. Ideally, this class would overload `->has_items()` and not set a `private` field. 2015-01-12 16:17:22 +00:00
class-wp-ms-users-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-plugin-install-list-table.php Add a `private` field to `WP_Plugin_Install_List_Table`, `$error`. 2015-01-12 16:19:22 +00:00
class-wp-plugins-list-table.php Improve various `@param` docs for List Tables. 2014-12-01 00:33:23 +00:00
class-wp-posts-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-terms-list-table.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:14:22 +00:00
class-wp-theme-install-list-table.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/includes/*. 2014-11-30 11:28:24 +00:00
class-wp-themes-list-table.php Improve various `@param` docs for List Tables. 2014-12-01 00:33:23 +00:00
class-wp-upgrader-skins.php `WP_Upgrader` will take any "skin" that is passed to it, and set `->skin` via composition. The default type of `->skin` is `WP_Upgrader_Skin`, which doesn't have methods declared for `->bulk_header()` and `->bulk_footer()`. Add noop methods to `WP_Upgrader_Skin`. 2015-01-10 05:42:22 +00:00
class-wp-upgrader.php Jump statements should not be followed by other statements (there were 5 lingering). 2015-01-08 21:15:22 +00:00
class-wp-users-list-table.php In PHP 5.0.0, `is_a()` became deprecated in favour of the `instanceof` operator. Calling `is_a()` would result in an `E_STRICT` warning. 2015-01-16 01:06:24 +00:00
comment.php Correct references of `@uses $wpdb` in core documentation to use `@global`. 2014-10-31 17:56:22 +00:00
continents-cities.php
dashboard.php In dashboard activity widget, display a front-end link if the user cannot edit the post. 2015-01-08 00:26:22 +00:00
deprecated.php Correctly capitalize JavaScript throughout core docs. 2014-12-02 00:31:22 +00:00
export.php The keyword `elseif` should be used instead of `else if` so that all control keywords look like single words. 2015-01-08 07:05:25 +00:00
file.php The keyword `elseif` should be used instead of `else if` so that all control keywords look like single words. 2015-01-08 07:05:25 +00:00
image-edit.php Image file editor: fix a wrong error message when restoring an edited image and IMAGE_EDIT_OVERWRITE is set. Props tiqbiz, fixes #30167. 2015-01-07 22:48:22 +00:00
image.php Use `&&` instead of `and` in the 3 places where `and` was used. 2015-01-08 21:12:22 +00:00
import.php In `wp_import_handle_upload()`: 2014-12-20 21:10:24 +00:00
list-table.php Fix mismatches in access modifiers for `WP_List_Table` + subclasses. 2014-07-13 22:09:16 +00:00
media.php Replace the 3 remaining occurrences of `wpspin` GIF with `spinner`. 2015-01-16 00:33:22 +00:00
menu.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:14:16 +00:00
meta-boxes.php The keyword `elseif` should be used instead of `else if` so that all control keywords look like single words. 2015-01-08 07:05:25 +00:00
misc.php Fill in the `@param` types for the args for functions missing them in `wp-admin/includes/misc.php`. 2014-11-03 06:01:24 +00:00
ms-deprecated.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:14:16 +00:00
ms.php Add variable type for sync_category_tag_slugs() parameters. 2015-01-09 11:19:22 +00:00
nav-menu.php For clarity, initialize some arrays that previously were only assigned via short circuit in loops. 2014-12-20 22:47:22 +00:00
plugin-install.php Use localized format for Last Updated date in plugin details modal, for consistency with [31055]. 2015-01-09 06:21:22 +00:00
plugin.php After [31105], don't ditch the `isset()` calls for BC. Declare `$page_hook` as `null` so it is initialized for all execution paths but will still fail `isset()` checks. 2015-01-08 22:52:22 +00:00
post.php Replace the 3 remaining occurrences of `wpspin` GIF with `spinner`. 2015-01-16 00:33:22 +00:00
revision.php In `wp-admin/includes/revision.php`, `$post->modified` is a coding error. It should be `$post->post_modified`. 2015-01-10 05:50:22 +00:00
schema.php Adjust [29806] and revert [29807] to restore placeholder and email copy order. 2014-12-05 01:15:26 +00:00
screen.php In PHP 5.0.0, `is_a()` became deprecated in favour of the `instanceof` operator. Calling `is_a()` would result in an `E_STRICT` warning. 2015-01-16 01:06:24 +00:00
taxonomy.php Default `$parent` in `category_exists()` should default to null rather than 0. 2015-01-11 01:26:27 +00:00
template.php In PHP 5.0.0, `is_a()` became deprecated in favour of the `instanceof` operator. Calling `is_a()` would result in an `E_STRICT` warning. 2015-01-16 01:06:24 +00:00
theme-install.php Bring the theme browsing experience from 3.8 to the theme installer. First pass. 2014-03-11 07:47:15 +00:00
theme.php In PHP 5.0.0, `is_a()` became deprecated in favour of the `instanceof` operator. Calling `is_a()` would result in an `E_STRICT` warning. 2015-01-16 01:06:24 +00:00
translation-install.php Call the init() method for the upgrader in wp_can_install_language_pack() to avoid undefined index notices. 2015-01-07 23:43:24 +00:00
update-core.php Declare `$wp_version`, `$required_php_version`, and `$required_mysql_version` as globals in install and upgrade admin files. 2015-01-10 05:57:22 +00:00
update.php The keyword `elseif` should be used instead of `else if` so that all control keywords look like single words. 2015-01-08 07:05:25 +00:00
upgrade.php More concise documentation for wp_install_maybe_enable_pretty_permalinks() 2015-01-12 04:33:23 +00:00
user.php Correct all `@return unknown` instances. 2014-11-03 06:17:22 +00:00
widgets.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:14:16 +00:00