Exploit databaseDownload repository ZIP
GH-c3c89120e2a52c8d61f777b438101247
cybfar/cve-2023-23488-pmpro-2.8
Sources for CVE-2023-23488
6 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
cybfar/cve-2023-23488-pmpro-2.8Revision 555f7544c7fa
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
plugins/paid-memberships-pro/blocks/checkout-button/inspector.js
JavaScript · 1,821 bytes/**
* Internal block libraries
*/
const { __ } = wp.i18n;
const { Component } = wp.element;
const {
PanelBody,
TextControl,
SelectControl,
} = wp.components;
const {
InspectorControls,
} = wp.blockEditor;
/**
* Create an Inspector Controls wrapper Component
*/
export default class Inspector extends Component {
constructor() {
super( ...arguments );
}
render() {
const { attributes: { text, level, css_class }, setAttributes } = this.props;
return (
<InspectorControls>
<PanelBody>
<TextControl
label={ __( 'Button Text', 'paid-memberships-pro' ) }
help={ __( 'Text for checkout button', 'paid-memberships-pro' ) }
value={ text }
onChange={ text => setAttributes( { text } ) }
/>
</PanelBody>
<PanelBody>
<SelectControl
label={ __( 'Level', 'paid-memberships-pro' ) }
help={ __( 'The level to link to for checkout button', 'paid-memberships-pro' ) }
value={ level }
onChange={ level => setAttributes( { level } ) }
options={ window.pmpro.all_level_values_and_labels }
/>
</PanelBody>
<PanelBody>
<TextControl
label={ __( 'CSS Class', 'paid-memberships-pro' ) }
help={ __( 'Additional styling for checkout button', 'paid-memberships-pro' ) }
value={ css_class }
onChange={ css_class => setAttributes( { css_class } ) }
/>
</PanelBody>
</InspectorControls>
);
}
}