-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.11.3 #1145
2.11.3 #1145
Conversation
}); | ||
if (idCheck != id || undefined == settings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!== , ===
success: (result) => onGalleryLoaded(id, result), | ||
}); | ||
setAttributes({ id: id, images: res.modulaImages }); | ||
if (idCheck != id || undefined == settings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!==, ===
add_action( 'wp_ajax_modula_get_gallery', array( $this, 'get_gallery' ) ); | ||
add_action( 'wp_ajax_modula_get_jsconfig', array( $this, 'get_jsconfig' ) ); | ||
add_action( 'wp_ajax_modula_check_hover_effect', array( $this, 'check_hover_effect' ) ); | ||
// Filter the gallery data for the REST API. Used for the Gutenberg editor, to remove the | ||
// image data-width and data-height attributes. | ||
add_filter( 'rest_prepare_modula-gallery', array( $this, 'rest_api_filter_data' ), 15, 3 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vezi ca ai callbackul pentru fieldul respectiv, de ce ai nevoie sa modifici tot raspunsul?
includes/class-modula-gutenberg.php
Outdated
$data = $response->get_data(); | ||
$modula_settings = $data['modulaSettings']; | ||
if ( 'slider' !== $modula_settings['type'] ) { | ||
return $response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doar daca e slider e nevoie de functionalitatea asta? daca e o galerie care are un video - tot are nevoie de thumb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦🏼 am copiat de la slider, partea aia trebuie sa o scot
No description provided.