mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.
See #47632 git-svn-id: https://develop.svn.wordpress.org/trunk@45580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -197,7 +197,7 @@ function get_category_by_slug( $slug ) {
|
||||
* @param string $cat_name Category name.
|
||||
* @return int 0, if failure and ID of category on success.
|
||||
*/
|
||||
function get_cat_ID( $cat_name ) {
|
||||
function get_cat_ID( $cat_name ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
$cat = get_term_by( 'name', $cat_name, 'category' );
|
||||
if ( $cat ) {
|
||||
return $cat->term_id;
|
||||
|
||||
Reference in New Issue
Block a user