mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user