/home/techb158/public_html/wp-content/plugins/kirki/includes
NameSizeModeActions
Admin/-0755rm
Ajax/-0755rm
API/-0755rm
ExportImport/-0755rm
FormValidator/-0755rm
Frontend/-0755rm
Manager/-0755rm
Admin.php9780644editdlrm
Ajax.php252630644editdlrm
API.php29380644editdlrm
Apps.php38590644editdlrm
ContentManager.php82500644editdlrm
DbQueryUtils.php53130644editdlrm
ElementVisibilityConditions.php68830644editdlrm
Frontend.php25040644editdlrm
HelperFunctions.php1404820644editdlrm
KirkiBase.php18010644editdlrm
PostsQueryUtils.php49690644editdlrm
Staging.php204120644editdlrm
View.php85360644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/kirki/includes/Frontend.php (2504B)
plugin_editor_page_or_iframe_or_the_content(); } /** * This action trigger when post data loaded done * * @param object $post WordPress post object. * @return void */ public function post_loaded( $post ) { if ( ! HelperFunctions::user_has_editor_access() ) { //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped wp_die( __( 'Sorry, you are not allowed to access this page.', 'kirki' ) ); } } /** * Render the plugin editor page * * @return void */ public function plugin_editor_page_or_iframe_or_the_content() { //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $action = HelperFunctions::sanitize_text( isset( $_GET['action'] ) ? $_GET['action'] : '' ); $staging_version = isset( $_GET['staging_version'] ) ? intval( HelperFunctions::sanitize_text( $_GET['staging_version'] ) ) : false; $nonce = HelperFunctions::sanitize_text( isset( $_GET['nonce'] ) ? $_GET['nonce'] : 'false' ); $preview_staging_version = ( $staging_version && wp_verify_nonce( $nonce, 'kirki_preview_staging_nonce' ) ) ? $staging_version : false; if ( $action === KIRKI_EDITOR_ACTION ) { add_action( 'the_post', array( $this, 'post_loaded' ) ); //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $load_for = HelperFunctions::sanitize_text( isset( $_GET['load_for'] ) ? $_GET['load_for'] : '' ); if ( $load_for === 'kirki-iframe' ) { new Iframe( $staging_version ); } elseif ( $load_for === 'migration' ) { new TheFrontend( 'migration' ); } else { new Editor(); } } else { new TheFrontend( null, $preview_staging_version ); } } }