karbou
Forum Replies Created
-
Hello @usamaazad99 @daniyalraza01
Do you have a date for the next plugin update ? I have lot of website to update, so do it manually is not optimum for me
I think compatibility with PHP 8.2 could be easy and appreciable for website in PHP 8.2 and a minor update should be great
Thanks !
Same error in my website
I have the same issue, deleting db.php change anything
Fatal error: Cannot declare class ComposerAutoloaderInitad25d53a23099da4b0886b4f6754360e, because the name is already in use in /var/www/html/wordpress/…/plugins/query-monitor/vendor/composer/autoload_real.php on line 5
Forum: Plugins
In reply to: [WP Job Manager] Permission issue adding jobs with custom roleSame issue with capability set with Publishpress, it’s fix with the 1.42 version of this plugin
This is my code :
<?php foreach( $my_posts as $post ): setup_postdata( $post ); ?> <?php get_template_part( 'card' ) ?> <?php endforeach; ?>
and in the end of my template ‘card’, i have
wp_reset_postdata
I try to add
wp_reset_postdata
directly after the foreach, but changed anything;
The funny fact is this code work perfecly, its the good post display in my template, but with the warningForum: Plugins
In reply to: [ACF Medium Editor Field] Error JS with ACF 6@hube2 Thanks !
Forum: Plugins
In reply to: [ACF Medium Editor Field] Error JS with ACF 6This is the previously code
if(typeof acf.add_action !== 'undefined') { acf.add_action('ready append', function( $el ){ acf.get_fields({ type : 'medium_editor'}, $el).each(function(){ initialize_acf_medium_editor_field($(this)); }); }); } else { $(document).on('acf/setup_fields', function(e, postbox){ $(postbox).find('.field[data-field_type="medium_editor"]').each(function(){ initialize_acf_medium_editor_field($(this)); }); }); }
And this the new :
if(typeof acf.add_action !== 'undefined') { acf.add_action('ready append', function( $el ){ acf.get_fields({ type : 'medium_editor' }, $el).each(function(){ if ($(this).hasClass('acf-field-medium-editor') ) { initialize_acf_medium_editor_field($(this)); } }); }); } else { $(document).on('acf/setup_fields', function(e, postbox){ $(postbox).find('.field[data-field_type="medium_editor"]').each(function(){ initialize_acf_medium_editor_field($(this)); }); }); }
My goal with this modification is to use initialize_acf_medium_editor_field only in edit post page, not in acf field group edit page.
Sorry if i’m not clear, i talking about the free version, but this bug must be the same with the pro version. The code isn’t a custom code, it’s a solution i can find to fix this, temporarily. But let me explain the probleme just with your code.
My problem is this. I want to allow multiple role for a user.
Case 1: Basic case
– I create a user, i choose his role
– After saved this user, i edit them and now i can add multiple role.Case 2 : PP_CAPABILITIES_ADD_USER_MULTI_ROLES defined
– I define PP_CAPABILITIES_ADD_USER_MULTI_ROLES
– I create a user and choose multiple role, contributor, editor
– After i saved this user, his role is wrong, he’s currently administrator and i need to change this role on a second time, and after that, his role is good.So, Case 1 is OK, but i would like to save multiple role when i creating a user. So i use PP_CAPABILITIES_ADD_USER_MULTI_ROLES and case 2. But in this case, it’s not work perfectly. And in this case, for me, the problem is in includes/admin-load on line 355
if (!empty($_REQUEST['_wpnonce']) && wp_verify_nonce(sanitize_key($_REQUEST['_wpnonce']), 'update-user_' . $userId) && isset($_POST['pp_roles']) && current_user_can('promote_users')) {
Because in my request, i don’t have _wpnonce but this _wpnonce_create-user and obviously, when you check the, it’s not gonna work. And Publish Press can’t handle a case with _wpnonce_create-user
For you, it’s a probleme with an another plugin or, Publish Press, should work with a request like _wpnonce_create-user ?
Thaks a lot and i hope i am more clear
Best regards
MattForum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Conflict with js, event type changeYes it’s working, thanks !