From 278cd7cf9f5736c99bbfd41f97f385bec5769153 Mon Sep 17 00:00:00 2001 From: Brandon Hundt Date: Mon, 18 Mar 2024 11:26:38 -0500 Subject: [PATCH] chore(theme): lint --- phpcs.xml | 51 +++++++++++++++++++++++ wp-content/themes/the-world/functions.php | 4 +- 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 phpcs.xml diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 000000000..36a23e49d --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,51 @@ + + + + The Coding standard for the WordPress Coding Standards itself. + + . + + + + + + + /bin/class-ruleset-test.php + + */vendor/* + */plugins/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wp-content/themes/the-world/functions.php b/wp-content/themes/the-world/functions.php index eeaab5285..7e7b80004 100644 --- a/wp-content/themes/the-world/functions.php +++ b/wp-content/themes/the-world/functions.php @@ -271,7 +271,7 @@ function tw_remove_core_block_patterns() { * @uses add_menu_page() Add links to the menu. */ function tw_add_edit_homepage_menu_link() { - add_menu_page('tw_edit_homepage_link', 'The World Homepage', 'publish_posts', "/wp-admin/term.php?taxonomy=program&tag_ID=2&post_type=post", '', 'dashicons-admin-site-alt3', 8); + add_menu_page( 'tw_edit_homepage_link', 'The World Homepage', 'publish_posts', '/wp-admin/term.php?taxonomy=program&tag_ID=2&post_type=post', '', 'dashicons-admin-site-alt3', 8 ); } endif; -add_action('admin_menu', 'tw_add_edit_homepage_menu_link'); +add_action( 'admin_menu', 'tw_add_edit_homepage_menu_link' );