false, ]); } /** * @inheritdoc */ public function init_fields() { $is_active = parent::init_fields(); if ( $is_active ) { add_action( 'quick_edit_custom_box', [ $this, 'display_quick_edit' ], 10, 2 ); } return $is_active; } /** * @action quick_edit_custom_box */ public function display_quick_edit( $wp_column_slug, $post_type ) { if ( $this->did_render ) { return; } $column = str_replace(' qef-thumbnail','', $wp_column_slug ); if ( isset( $_SERVER['REQUEST_URI'] ) ) { printf( '', esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized ); } foreach ( $this->fieldsets as $field_group_key => $fields ) { $field_group = acf_get_field_group( $field_group_key ); printf( '
'; } $this->did_render = true; } /** * @inheritdoc */ protected function get_save_data( $post_id ) { // fall back to $_POST['acf'] return null; } /** * @inheritdoc */ protected function is_saving() { return isset( $_POST['action'] ) && in_array( $_POST['action'], ['inline-save','inline-save-tax'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing -- no processing, just status check } }