mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Allow overriding cat walker. Props AaronCampbell. fixes #8682 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10246 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -439,8 +439,10 @@ class Walker_Category_Checklist extends Walker {
|
||||
* @param unknown_type $selected_cats
|
||||
* @param unknown_type $popular_cats
|
||||
*/
|
||||
function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false ) {
|
||||
$walker = new Walker_Category_Checklist;
|
||||
function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null ) {
|
||||
if ( empty($walker) || !is_a($walker, 'Walker') )
|
||||
$walker = new Walker_Category_Checklist;
|
||||
|
||||
$descendants_and_self = (int) $descendants_and_self;
|
||||
|
||||
$args = array();
|
||||
|
||||
Reference in New Issue
Block a user