Wordpress/tests/phpunit/tests
K. Adam White 49d8c2590c REST API: Avoid undefined-property notice when setting parent term to 0.
Only try to access `term_id` once `$parent_term` is known to be a `WP_Term`.

Props dlh, earnjam.
Fixes #44983.


git-svn-id: https://develop.svn.wordpress.org/trunk@44965 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-21 18:58:50 +00:00
..
actions
admin Posts, Post Types: Add type parameter to post_exists(). 2019-03-21 12:43:48 +00:00
ajax Tests: Fix failing tests for privacy export/erase requests when running the ajax group for multisite. 2019-03-20 17:40:17 +00:00
attachment
blocks Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
bookmark General: Fix existing coding standard violations in bookmark tests, as outlined in [44546]. 2019-01-10 21:16:49 +00:00
canonical Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
category Taxonomy: Make sure wp_list_categories() correctly outputs term name of 0. 2018-09-02 22:08:05 +00:00
comment Comments: Show the "awaiting moderation" message when comment cookies are disabled. 2019-01-21 01:33:50 +00:00
customize Customizer: Fix a coding standards issue introduced in [44580]. 2019-01-14 07:22:03 +00:00
date Tests: Fix the tests for the c and r formats in date_i18n(). 2019-01-29 01:19:30 +00:00
db
dependencies Build: Fix formatting issues introduced in [44740]. 2019-02-14 00:41:15 +00:00
editor Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
external-http
feed Build: correct some linting errors. 2019-03-20 22:05:58 +00:00
filesystem Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
formatting Formatting: Loosen the type checking in _sanitize_text_fields(). 2019-02-07 23:34:22 +00:00
functions Tests: Add tests for the __return*() functions. 2019-01-21 00:32:33 +00:00
general Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
hooks
http Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
image Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
import Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
includes Bootstrap/Load: Fix fatal error when passing a WP_Error to wp_die(). 2019-01-22 08:51:56 +00:00
l10n I18N: Fix JavaScript translations for subdirectory installations. 2018-12-18 23:09:51 +00:00
link Link Template: In get_adjacent_post(), move the sanitisation of $excluded_terms earlier. 2019-01-15 01:53:02 +00:00
load
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Nav Menus: Fix a PHP 7.3 error when switching themes. 2018-12-14 05:15:54 +00:00
meta Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
multisite Multisite: Fix code formatting errors from r44805 2019-03-07 03:45:26 +00:00
oembed Accessibility: Ensure embed iframes have a title attribute. 2019-03-20 17:21:56 +00:00
option Options: Avoid unnecessary DB calls when updating network options. 2019-01-21 04:26:33 +00:00
pomo Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
post Posts: Avoid the use of globals in get_the_content() and related functions. 2019-03-20 15:48:46 +00:00
privacy Privacy: Allow new requests to be created after a user’s existing one has been completed. 2019-03-15 16:26:55 +00:00
query Posts: Avoid the use of globals in get_the_content() and related functions. 2019-03-20 15:48:46 +00:00
rest-api REST API: Avoid undefined-property notice when setting parent term to 0. 2019-03-21 18:58:50 +00:00
rewrite Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term REST API: Move object type-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2018-12-12 03:02:00 +00:00
theme Themes: Introduce responsive embeds support. 2018-12-14 01:49:46 +00:00
url Privacy: Add template tags for building link to privacy policy page. 2018-04-25 15:54:29 +00:00
user Bootstrap/Load: Revert fatal error recovery mechanism from 5.1 to polish for 5.2. 2019-01-30 11:00:30 +00:00
widgets Widgets: Don't log invalid HTML in the Text Widget. 2019-01-14 05:04:12 +00:00
xmlrpc Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
actions.php
adminbar.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
auth.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
avatar.php Coding Standards: Fix and whitelist variable names. 2019-01-12 06:05:55 +00:00
basic.php
cache.php
canonical.php
category.php
comment-submission.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
comment.php Privacy: Don't replace comment author URL and email with anything. 2018-07-17 08:59:30 +00:00
compat.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
cron.php Cron: Ensure identical single events aren't scheduled less than 10min apart. 2019-03-16 06:41:23 +00:00
db.php WPDB: Check that $wpdb->last_result is countable before counting with it. 2018-12-17 18:38:13 +00:00
dbdelta.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
dependencies.php
file.php
filters.php
functions.php Media: grid view attachment filter drop down - only show available mime types. 2019-03-20 20:06:22 +00:00
kses.php KSES: Allow the download attribute on <a> tags. 2018-12-14 03:27:55 +00:00
l10n.php Build/Test Tools: Fix coding standards issues after [44515] and [44514]. 2019-01-09 12:36:43 +00:00
link.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
locale.php Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
mail.php
media.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
meta.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
multisite.php
pluggable.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
post.php Permalinks: Add a pre_wp_unique_post_slug filter. 2019-01-08 03:46:58 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rest-api.php REST API: Encourage proper usage of register_rest_route(). 2019-01-11 18:18:41 +00:00
rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
shortcode.php Coding Standards: Extract extract() from the codebase. 2019-01-12 03:19:23 +00:00
taxonomy.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
term.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theme.php Bundled Themes: Make twentynineteen the default theme. 2018-12-14 02:48:14 +00:00
upload.php
url.php
user.php Build Tools: Upgrade WPCS to 2.0.0. 2019-01-18 02:14:24 +00:00
walker.php
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wp.php Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00