From 7704f544575d29584bd406736280028c77aefb0c Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:28:56 +0100 Subject: [PATCH] Reduce yet yet more unnecessary get_the_ID calls --- user-profile.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/user-profile.php b/user-profile.php index 7cb2690a..bff9885b 100644 --- a/user-profile.php +++ b/user-profile.php @@ -36,10 +36,11 @@ if ( ! is_user_logged_in() ) { } // Setup +$post_id = get_the_ID(); $current_user = wp_get_current_user(); $title = trim( get_the_title() ); $title = empty( $title ) ? __( 'User Profile', 'fictioneer' ) : $title; -$this_breadcrumb = [$title, get_the_permalink()]; +$this_breadcrumb = [ $title, get_the_permalink() ]; // Flags $is_admin = fictioneer_is_admin( $current_user->ID ); @@ -67,7 +68,7 @@ $hook_args = array(