From 5f360a12a75527e8611214a29abaf01f5aa02ae3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Feb 2015 04:21:47 +0000 Subject: [PATCH] `_list_meta_row()` should always return a string. props ipm-frommen. fixes #31310. git-svn-id: https://develop.svn.wordpress.org/trunk@31442 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 3973d80ca0..30e333ec5e 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -582,7 +582,7 @@ function _list_meta_row( $entry, &$count ) { static $update_nonce = false; if ( is_protected_meta( $entry['meta_key'], 'post' ) ) - return; + return ''; if ( !$update_nonce ) $update_nonce = wp_create_nonce( 'add-meta' ); @@ -597,7 +597,7 @@ function _list_meta_row( $entry, &$count ) { } else { // This is a serialized array/object so we should NOT display it. --$count; - return; + return ''; } }