axi35
Forum Replies Created
-
@andreasmuench Sorry I don’t see it anymore, and I realised it was a really poor feedback as I’m not even able to find it again or reproduce it anymore.
Thanks for the other fix.Oups, I just saw your post after writing this: https://ww.wp.xz.cn/support/topic/deprecation-in-multilang-polylang-tab/#post-18741733
It looks like you never received an answer…Also, I have a warning when used with wp-cli:
Warning: Undefined array key "REQUEST_METHOD" in /home/axi/projects/beka/web/app/plugins/multilingual-contact-form-7-with-polylang/frontend/Messages_Translation.php on line 67
easily fixable by replacing in https://plugins.trac.ww.wp.xz.cn/browser/multilingual-contact-form-7-with-polylang/trunk/frontend/Messages_Translation.phpif (
$_SERVER['REQUEST_METHOD'] !== 'POST'
|| ( empty( $_POST['_wpcf7_locale'] ) && empty( $_COOKIE['pll_language'] ) )
|| empty( $mofile )
|| strpos( $mofile, 'contact-form-7' ) === false
|| ! Helpers::is_rest()
) {
return $mofile;
}by
if (
(isset( $_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] !== 'POST')
|| ( empty( $_POST['_wpcf7_locale'] ) && empty( $_COOKIE['pll_language'] ) )
|| empty( $mofile )
|| strpos( $mofile, 'contact-form-7' ) === false
|| ! Helpers::is_rest()
) {
return $mofile;
}Forum: Plugins
In reply to: [WP Testimonials] PHP8.1 deprecationI gave you the solution 😉
Hopefully it will be fix in 1.4.7Forum: Plugins
In reply to: [WP Testimonials] PHP8.1 deprecationDo you plan a release with the fix ?
Forum: Plugins
In reply to: [Import and export users and customers] Retain existing User IDHere is my hack to fix this. You should now what you do before using this.
add_action( 'pre_acui_import_single_user', 'checkUserInBddBeforeInserting',10, 2 );function checkUserInBddBeforeInserting($headers, $data): void { $keys = array_keys($headers, 'id'); if (count($keys) === 1) { $userId = $data[$keys[0]]; if (get_userdata($userId) === false) { global $wpdb; $keys = array_keys($headers, 'user_login'); $userName = $data[$keys[0]]; $wpdb->insert( $wpdb->users, [ 'ID' => $userId, 'user_login' => $userName, 'user_nicename' => $userName, // Necessary to avoid some warning about cache ] ); } } }