Rename param added to wp_list_categories() in [33764] to 'hide_title_if_empty'.

Props vilkatis, DrewAPicture.
Fixes #33565.

git-svn-id: https://develop.svn.wordpress.org/trunk@33767 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges
2015-08-27 02:08:31 +00:00
parent 30eb4853f0
commit 718787cd18
2 changed files with 10 additions and 10 deletions

View File

@@ -212,10 +212,10 @@ class Tests_Category_WpListCategories extends WP_UnitTestCase {
/**
* @ticket 33460
*/
public function test_hide_title_if_no_cats_should_be_respected_for_empty_lists_when_true() {
public function test_hide_title_if_empty_should_be_respected_for_empty_lists_when_true() {
$found = wp_list_categories( array(
'echo' => false,
'hide_title_if_no_cats' => true,
'hide_title_if_empty' => true,
) );
$this->assertNotContains( '<li class="categories">Categories', $found );
@@ -224,10 +224,10 @@ class Tests_Category_WpListCategories extends WP_UnitTestCase {
/**
* @ticket 33460
*/
public function test_hide_title_if_no_cats_should_be_respected_for_empty_lists_when_false() {
public function test_hide_title_if_empty_should_be_respected_for_empty_lists_when_false() {
$found = wp_list_categories( array(
'echo' => false,
'hide_title_if_no_cats' => false,
'hide_title_if_empty' => false,
) );
$this->assertContains( '<li class="categories">Categories', $found );
@@ -236,13 +236,13 @@ class Tests_Category_WpListCategories extends WP_UnitTestCase {
/**
* @ticket 33460
*/
public function test_hide_title_if_no_cats_should_be_ignored_when_category_list_is_not_empty() {
public function test_hide_title_if_empty_should_be_ignored_when_category_list_is_not_empty() {
$cat = $this->factory->category->create();
$found = wp_list_categories( array(
'echo' => false,
'hide_empty' => false,
'hide_title_if_no_cats' => true,
'hide_title_if_empty' => true,
) );
$this->assertContains( '<li class="categories">Categories', $found );