Go to file
Boone Gorges c806540943 Avoid PHP notices when checking termmeta capabilities against a non-existent term.
Previously, checks like `current_user_can( 'edit_term_meta', $term_id )`
returned the proper value, but generated a PHP notice due to the fact
that `get_term( $term_id )` could, in certain instances, return
`WP_Error` objects.

Props caercam.
Fixes #40891.

git-svn-id: https://develop.svn.wordpress.org/trunk@40999 602fd350-edb4-49c9-b593-d223f7449a82
2017-07-04 19:58:35 +00:00
src Avoid PHP notices when checking termmeta capabilities against a non-existent term. 2017-07-04 19:58:35 +00:00
tests Avoid PHP notices when checking termmeta capabilities against a non-existent term. 2017-07-04 19:58:35 +00:00
tools/i18n
.editorconfig
.gitignore Build/Test Tools: Facilitate SVN and Git being co-located in the same directory. 2016-12-12 05:11:27 +00:00
.jshintrc Build/Test Tools: After [29858], update `.jsintrc` to use spaces, not tabs. 2017-01-13 04:44:53 +00:00
.travis.yml Build/Test: Post Travis results to Slack from `WordPress/wordpress-develop` 2017-05-10 10:28:19 +00:00
Gruntfile.js Widgets: Introduce `isHostedVideo` method on `VideoWidgetControl` to allow plugins to extend for recognizing services beyond YouTube and Vimeo. 2017-05-20 04:17:33 +00:00
package.json Trunk is really 4.9-alpha now 2017-06-01 22:07:51 +00:00
phpunit.xml.dist Build/Test Tools: Be strict about tests that do not test anything. 2017-04-23 01:24:41 +00:00
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00