mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 00:31:28 +01:00
In WP_Posts_List_Table::single_row()
:
* `get_the_terms()` can return `WP_Error`, so its return value should be checked before traversing. * Correct the `@param` doc blocks See #32444. Built from https://develop.svn.wordpress.org/trunk@32738 git-svn-id: http://core.svn.wordpress.org/trunk@32709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4835310a18
commit
da4c3d0fe4
@ -674,8 +674,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
* @global string $mode
|
||||
* @global WP_Post $post
|
||||
*
|
||||
* @param WP_Post $post
|
||||
* @param int $level
|
||||
* @param int|WP_Post $post
|
||||
* @param int $level
|
||||
*/
|
||||
public function single_row( $post, $level = 0 ) {
|
||||
global $mode;
|
||||
@ -886,7 +886,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
|
||||
if ( $taxonomy ) {
|
||||
$taxonomy_object = get_taxonomy( $taxonomy );
|
||||
if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) {
|
||||
$terms = get_the_terms( $post->ID, $taxonomy );
|
||||
if ( is_array( $terms ) ) {
|
||||
$out = array();
|
||||
foreach ( $terms as $t ) {
|
||||
$posts_in_term_qv = array();
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32737';
|
||||
$wp_version = '4.3-alpha-32738';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user