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:
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @since 0.71
|
||||
*/
|
||||
function the_ID() {
|
||||
function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
echo get_the_ID();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ function the_ID() {
|
||||
*
|
||||
* @return int|false The ID of the current item in the WordPress Loop. False if $post is not set.
|
||||
*/
|
||||
function get_the_ID() {
|
||||
function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
$post = get_post();
|
||||
return ! empty( $post ) ? $post->ID : false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user