v1.6.9
This commit is contained in:
parent
1ff471299e
commit
7379505d20
1 changed files with 912 additions and 139 deletions
|
|
@ -182,9 +182,14 @@ class Frontend_Profile {
|
|||
* @return void
|
||||
*/
|
||||
public function maybe_enqueue_assets(): void {
|
||||
/**
|
||||
* Current post. Typed for PHPStan level max.
|
||||
*
|
||||
* @var \WP_Post|string|null $post
|
||||
*/
|
||||
global $post;
|
||||
|
||||
if ( ! is_a( $post, 'WP_Post' ) || ! has_shortcode( $post->post_content, 'robotstxt_2fa_profile' ) ) {
|
||||
if ( ! $post instanceof \WP_Post || ! has_shortcode( $post->post_content, 'robotstxt_2fa_profile' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue