- This topic has 3 replies, 3 voices, and was last updated 2 years, 8 months ago by xohed26846.
-
AuthorPosts
-
April 27, 2021 at 4:58 am #10973
siamsnakeParticipantSynopsis:
Installed fresh version of WordPress (ru_RU locale) 5.7.1
PHP 7.4
Kable Theme 1.5.2
Pikoworks Core plugin 1.2.1—–
backtrace errorWP_Scripts::localize
handle: pikoworks-meta-box
object_name: meta_box_ids
l10n: #kable_product_setting_meta_box,
#kable_product_tabs_layout_meta_box,
#kable_page_layout_meta_box,
#kable_page_breadcrumb_meta_box,
#kable_header_layout_meta_box,
#kable_footer_layout_meta_boxPhp error:
Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information.
- This topic was modified 3 years, 7 months ago by siamsnake.
April 28, 2021 at 3:47 am #10984
siamsnakeParticipantvery tired for awaiting an answer.
fixed by selfplugins/pikoworks_core.php
——————————–
if (!function_exists(‘pikoworks_core_admin_js’)) {
function pikoworks_core_admin_js() {
wp_enqueue_script(‘pikoworks-meta-box’,PIKOWORKSCORE_ADMIN_URL.’assets/js/meta-box.js’, array(‘jquery’),PIKOWORKSCORE_VERSION,’all’);global $meta_boxes;
$meta_box_id=”;
$a=[];
foreach($meta_boxes as $box) {
if(!isset($box[‘tab’])) {
continue;
}
if (!empty($meta_box_id)) {
$meta_box_id.=’,’;
}
$meta_box_id.=’#’.$box[‘id’];
$a[]=’#’.$box[‘id’];
}
wp_localize_script(‘pikoworks-meta-box’,’meta_box_ids’,$a);
}
add_action(‘admin_enqueue_scripts’,’pikoworks_core_admin_js’);
}May 1, 2021 at 12:33 pm #11000
ForhadKeymasterhello, you can update the latest version theme. download again themeforest and update all theme and plugins
March 28, 2022 at 10:55 am #11410
xohed26846ParticipantCoding is the process of transforming computer instructions into a form a computer can understand. Programs are written in code at https://www.computertechreviews.com/7-tips-on-writing-an-effective-scholarship-or-college-essay/ and the code is run through a compiler to create a machine code program that can be run on a computer.
-
AuthorPosts
You must be logged in to reply to this topic.