Skip to content

Commit

Permalink
Switch get_children() from error to warning
Browse files Browse the repository at this point in the history
Merging in with the same as functions wp_get_recent_posts()

Relates to #573
  • Loading branch information
David Page authored and JDGrimes committed Oct 7, 2016
1 parent df5a609 commit 596aa80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WordPress/Tests/VIP/RestrictedFunctionsUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Tests/VIP/RestrictedFunctionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function getErrorList()
55 => 1,
56 => 1,
57 => 1,
61 => 1,
62 => 1,
63 => 1,
64 => 1,
Expand Down Expand Up @@ -91,6 +90,7 @@ public function getWarningList()
19 => 1,
58 => 1,
59 => 1,
61 => 1,
72 => 1,
);

Expand Down

0 comments on commit 596aa80

Please sign in to comment.