200 ) ); } $filing = self::post_value( 'filingType' ); $config = AFS_Renderer::normalize_config( array( // 1.x sent a tab slug, a comma list (the "All" tab of a restricted feed), or "all". 'terms' => 'all' === $filing ? '' : $filing, ) ); $state = AFS_Renderer::normalize_state( array( 's' => self::post_value( 'filterBy' ), 'month' => self::post_value( 'filterMonths' ), 'year' => self::post_value( 'filterYears' ), 'paged' => self::post_value( 'page' ), ), $config ); $base = wp_validate_redirect( esc_url_raw( (string) wp_get_referer() ), home_url( '/' ) ); $base = remove_query_arg( AFS_Renderer::URL_KEYS, $base ); $result = AFS_Renderer::render_results( $config, $state, $base ); header( 'X-AFS-Deprecated: the my_action ajax action is deprecated; use the afs/v1/results REST route' ); echo $result['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in AFS_Renderer. exit; } }