Skip to content
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

Merged
merged 13 commits into from
Nov 27, 2024
Merged

2.11.3 #1145

merged 13 commits into from
Nov 27, 2024

Conversation

razvanaldea89
Copy link
Contributor

No description provided.

});
if (idCheck != id || undefined == settings) {
Copy link
Contributor

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) {
Copy link
Contributor

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 );
Copy link
Contributor

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?

$data = $response->get_data();
$modula_settings = $data['modulaSettings'];
if ( 'slider' !== $modula_settings['type'] ) {
return $response;
Copy link
Contributor

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

Copy link
Contributor Author

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

@razvanaldea89 razvanaldea89 merged commit bddef2c into master Nov 27, 2024
@razvanaldea89 razvanaldea89 deleted the 2.11.3 branch November 27, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants