mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: Corrections and improvements to types used in docblocks for symbols, properties, and filters.
See #53399 git-svn-id: https://develop.svn.wordpress.org/trunk@51298 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -82,7 +82,7 @@ class WP_UnitTest_Factory_For_Term extends WP_UnitTest_Factory_For_Thing {
|
||||
* @param array $args Array or string of arguments for inserting a term.
|
||||
* @param null $generation_definitions The default values.
|
||||
*
|
||||
* @return WP_Term|WP_Error|null WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.
|
||||
* @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure.
|
||||
*/
|
||||
public function create_and_get( $args = array(), $generation_definitions = null ) {
|
||||
$term_id = $this->create( $args, $generation_definitions );
|
||||
@@ -100,7 +100,7 @@ class WP_UnitTest_Factory_For_Term extends WP_UnitTest_Factory_For_Thing {
|
||||
*
|
||||
* @param int $term_id ID of the term to retrieve.
|
||||
*
|
||||
* @return WP_Term|WP_Error|null WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.
|
||||
* @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure.
|
||||
*/
|
||||
public function get_object_by_id( $term_id ) {
|
||||
return get_term( $term_id, $this->taxonomy );
|
||||
|
||||
Reference in New Issue
Block a user