From ba949efccef4c75ac0e2720e52df084a220523dd Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Fri, 6 Sep 2024 14:53:12 +0700 Subject: [PATCH] fix: deprecated messages --- includes/modules/Cloneable/Cloneable.php | 2 +- includes/modules/Field/Field.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/modules/Cloneable/Cloneable.php b/includes/modules/Cloneable/Cloneable.php index e5b4411..5587ef0 100644 --- a/includes/modules/Cloneable/Cloneable.php +++ b/includes/modules/Cloneable/Cloneable.php @@ -44,7 +44,7 @@ public function get_fields() { ]; } - public function render( $attrs, $content = null, $render_slug ) { + public function render( $attrs, $content, $render_slug ) { global $wp_query; $post_id = $wp_query->get_queried_object_id(); diff --git a/includes/modules/Field/Field.php b/includes/modules/Field/Field.php index c0c7166..b74c108 100644 --- a/includes/modules/Field/Field.php +++ b/includes/modules/Field/Field.php @@ -53,7 +53,7 @@ public function get_fields() { ]; } - public function render( $attrs, $content = null, $render_slug ) { + public function render( $attrs, $content, $render_slug ) { global $wp_query; $index = $attrs['index'] ?? null;