Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 9181335

Browse files
committed
fix
1 parent c6c6de3 commit 9181335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function codeat_get_by_url( $args ){
3838
$taxonomies = get_taxonomies( array( '_builtin' => true ), 'objects' );
3939
foreach ( $taxonomies as $taxonomy ) {
4040
if ( $taxonomy->rewrite[ 'slug' ] === $term_slug ) {
41-
$tax = get_term_by( 'name', $last_slug, $taxonomy->name );
41+
$tax = get_term_by( 'slug', $last_slug, $taxonomy->name );
4242
if( is_object( $tax ) ) {
4343
WP_CLI::log( 'term | ' . $tax->term_id . ' | ' . $tax->taxonomy );
4444
return;

0 commit comments

Comments
 (0)