Exploit databaseDownload repository ZIP
GH-9b291812d998ae6b68f8e3fcf6f8d2e6
0x4e0x650x6f/wordpress-cve-cve-2022-21661
Sources for CVE-2022-21661
10 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files45
0x4e0x650x6f/wordpress-cve-cve-2022-21661Revision 745e79963aae
- ↑..Parent directory
- groups/
- animation.php
- base-data.php
- base-icon-font.php
- base-multiple.php
- base-ui.php
- base-units.php
- base.php
- box-shadow.php
- button.php
- choose.php
- code.php
- color.php
- date-time.php
- deprecated-notice.php
- dimensions.php
- divider.php
- exit-animation.php
- font.php
- gallery.php
- heading.php
- hidden.php
- hover-animation.php
- icon.php
- icons.php
- image-dimensions.php
- media.php
- number.php
- popover-toggle.php
- raw-html.php
- repeater.php
- section.php
- select.php
- select2.php
- slider.php
- structure.php
- switcher.php
- tab.php
- tabs.php
- text-shadow.php
- text.php
- textarea.php
- url.php
- wp-widget.php
- wysiwyg.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
plugins/elementor/includes/controls/gallery.php
PHP · 3,635 bytes<?php
namespace Elementor;
use Elementor\Modules\DynamicTags\Module as TagsModule;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor gallery control.
*
* A base control for creating gallery chooser control. Based on the WordPress
* media library galleries. Used to select images from the WordPress media library.
*
* @since 1.0.0
*/
class Control_Gallery extends Base_Data_Control {
/**
* Get gallery control type.
*
* Retrieve the control type, in this case `gallery`.
*
* @since 1.0.0
* @access public
*
* @return string Control type.
*/
public function get_type() {
return 'gallery';
}
/**
* Import gallery images.
*
* Used to import gallery control files from external sites while importing
* Elementor template JSON file, and replacing the old data.
*
* @since 1.0.0
* @access public
*
* @param array $settings Control settings
*
* @return array Control settings.
*/
public function on_import( $settings ) {
foreach ( $settings as &$attachment ) {
if ( empty( $attachment['url'] ) ) {
continue;
}
$attachment = Plugin::$instance->templates_manager->get_import_images_instance()->import( $attachment );
}
// Filter out attachments that don't exist
$settings = array_filter( $settings );
return $settings;
}
/**
* Render gallery control output in the editor.
*
* Used to generate the control HTML in the editor using Underscore JS
* template. The variables for the class are available using `data` JS
* object.
*
* @since 1.0.0
* @access public
*/
public function content_template() {
?>
<div class="elementor-control-field">
<div class="elementor-control-title">{{{ data.label }}}</div>
<div class="elementor-control-input-wrapper">
<# if ( data.description ) { #>
<div class="elementor-control-field-description">{{{ data.description }}}</div>
<# } #>
<div class="elementor-control-media__content elementor-control-tag-area">
<div class="elementor-control-gallery-status elementor-control-dynamic-switcher-wrapper">
<span class="elementor-control-gallery-status-title"></span>
<span class="elementor-control-gallery-clear elementor-control-unit-1"><i class="eicon-trash-o" aria-hidden="true"></i></span>
</div>
<div class="elementor-control-gallery-content">
<div class="elementor-control-gallery-thumbnails"></div>
<div class="elementor-control-gallery-edit"><span><i class="eicon-pencil" aria-hidden="true"></i></span></div>
<button class="elementor-button elementor-control-gallery-add" aria-label="<?php echo esc_html__( 'Add Images', 'elementor' ); ?>"><i class="eicon-plus-circle" aria-hidden="true"></i></button>
</div>
</div>
</div>
</div>
<?php
}
/**
* Get gallery control default settings.
*
* Retrieve the default settings of the gallery control. Used to return the
* default settings while initializing the gallery control.
*
* @since 1.0.0
* @access protected
*
* @return array Control default settings.
*/
protected function get_default_settings() {
return [
'label_block' => true,
'separator' => 'none',
'dynamic' => [
'categories' => [ TagsModule::GALLERY_CATEGORY ],
'returnType' => 'object',
],
];
}
/**
* Get gallery control default values.
*
* Retrieve the default value of the gallery control. Used to return the default
* values while initializing the gallery control.
*
* @since 1.0.0
* @access public
*
* @return array Control default value.
*/
public function get_default_value() {
return [];
}
}