PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev2
Elementor Website Builder – more than just a page builder v3.20.0-dev2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/managers/image.php +3 -2 4.0.83.20.0-dev2 View file →
@@ -28,9 +28,9 @@
28 28 * @since 1.0.0
29 29 * @access public
30 30 */
31 31 public function get_images_details() {
32 - if ( ! current_user_can( 'publish_posts' ) ) {
32 + if ( ! current_user_can( Editor::EDITING_CAPABILITY ) ) {
33 33 wp_send_json_error( 'Permission denied' );
34 34 }
35 35
36 36 // PHPCS - Already validated by wp_ajax.
@@ -121,14 +121,15 @@
121 121 * Get Light-Box Image Attributes
122 122 *
123 123 * Used to retrieve an array of image attributes to be used for displaying an image in Elementor's Light Box module.
124 124 *
125 - * @param int $id The ID of the image.
125 + * @param int $id The ID of the image
126 126 *
127 127 * @return array An array of image attributes including `title` and `description`.
128 128 * @since 2.9.0
129 129 * @access public
130 130 */
131 +
131 132 public function get_lightbox_image_attributes( $id ) {
132 133 $attributes = [];
133 134 $kit = Plugin::$instance->kits_manager->get_active_kit();
134 135 $lightbox_title_src = $kit->get_settings( 'lightbox_title_src' );