Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions select/taxonomy-dropdown-custom-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function __construct($manager, $id, $args = array(), $options = array())
*/
public function render_content()
{
// call wp_dropdown_cats to get data and add to select field
add_action( 'wp_dropdown_cats', array( $this, 'wp_dropdown_cats' ) );
// call wp_dropdown_categories to get data and add to select field
add_action( 'wp_dropdown_categories', array( $this, 'wp_dropdown_categories' ) );

// Set defaults
$this->defaults = array(
Expand Down Expand Up @@ -59,11 +59,11 @@ public function render_content()
* @since 11/14/2012
* @return String $output
*/
public function wp_dropdown_cats( $output )
public function wp_dropdown_categories( $output )
{
$output = str_replace( '<select', '<select ' . $this->get_link(), $output );

return $output;
}
}
?>
?>