From 596aa80201251f7559880967ab0dc1f084891f2c Mon Sep 17 00:00:00 2001 From: David Page Date: Mon, 11 Jul 2016 14:49:30 +0100 Subject: [PATCH] Switch get_children() from error to warning Merging in with the same as functions wp_get_recent_posts() Relates to #573 --- WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc | 2 +- WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc b/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc index 8ab7a1d4c8..b1c8bb1c27 100644 --- a/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc +++ b/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc @@ -58,7 +58,7 @@ attachment_url_to_postid(); // error get_posts(); // warning wp_get_recent_posts(); // warning -get_children(); // error +get_children(); // warning wp_get_post_terms(); // error wp_get_post_categories(); // error wp_get_post_tags(); // error diff --git a/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php b/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php index fd3210e0f5..c67c3fd847 100644 --- a/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php +++ b/WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php @@ -43,7 +43,6 @@ public function getErrorList() 55 => 1, 56 => 1, 57 => 1, - 61 => 1, 62 => 1, 63 => 1, 64 => 1, @@ -91,6 +90,7 @@ public function getWarningList() 19 => 1, 58 => 1, 59 => 1, + 61 => 1, 72 => 1, );