have_posts; } public function the_post(): void { // No-op. } } } // Stub WP text-processing functions used by image prompt builder. if ( ! function_exists( 'wp_strip_all_tags' ) ) { function wp_strip_all_tags( $string, $remove_breaks = false ) { $string = strip_tags( $string ); if ( $remove_breaks ) { $string = preg_replace( '/[\r\n\t ]+/', ' ', $string ); } return trim( $string ); } } if ( ! function_exists( 'sanitize_text_field' ) ) { function sanitize_text_field( $str ) { return trim( strip_tags( $str ) ); } }