From b458cc6b88ec73eed5815c4db48d473a3a692556 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 23 Jan 2023 20:13:56 +0100 Subject: [PATCH] coding standard --- includes/model/class-post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/model/class-post.php b/includes/model/class-post.php index 6006315..c796035 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -298,7 +298,7 @@ class Post { $need_update = false; // If the old contents is blank, use the defaults. - if ( $old_content == '' ) { + if ( '' === $old_content ) { $old_content = ACTIVITYPUB_CUSTOM_POST_CONTENT; $need_update = true; } @@ -315,7 +315,7 @@ class Post { $content = \str_replace( '%tags%', '[ap_hashtags]', $content ); // Store the new template if required. - if ( $content != $old_content || $need_update ) { + if ( $content !== $old_content || $need_update ) { \update_option( 'activitypub_custom_post_content', $content ); }