Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf2a597

Browse files
y0hnngregberge
authored andcommitted
fix: "*146221 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant icl_object_id - assumed 'icl_object_id' (this will throw an Error in a future version of PHP) in /var/www/html/wp-content/plugins/smooth-js/index.php on line 152" (#46)
1 parent a2c0eec commit bf2a597

File tree

1 file changed

+1
-1
lines changed
  • packages/smooth-backend-wordpress/src/wordpress/plugin

1 file changed

+1
-1
lines changed

packages/smooth-backend-wordpress/src/wordpress/plugin/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function get_content($data)
149149
$slug = $data['slug'];
150150
$lang = $data['lang'];
151151
$post = get_page_by_path($slug, OBJECT, $postType);
152-
if ($lang && function_exists(icl_object_id)) {
152+
if ($lang && function_exists('icl_object_id')) {
153153
$post = get_page(icl_object_id($post->ID, $postType, true, $lang));
154154
}
155155
if (!$post) {

0 commit comments

Comments
 (0)