WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query
Discouraged PHP function
The plugin uses a PHP or WordPress pattern that coding standards discourage.
Why It Shows Up
Plugin Check found a discouraged function, forbidden function, goto, backtick operator, or similar construct.
Why It Matters
Discouraged patterns are often harder to review, less portable across hosts, or easier to misuse securely.
How to Fix
- Identify why the construct is used and whether WordPress provides a safer API.
- Replace shell execution, dynamic execution, or broad forbidden functions with constrained WordPress APIs.
- If a third-party library triggers the warning, isolate and document it.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #251 | Grid Gallery – for Photo Gallery, Image Gallery & Portfolio | 46 | 7 | 74 | 1k+ | Request data is not unslashed | ||
| #252 | HT Slider For Elementor | 50 | 884 | 40 | 20k+ | Text Domain Mismatch | ||
| #253 | Section Widget | 50 | 24 | 35 | 500 | Nonce verification recommended | ||
| #254 | Ultimate Floating Widgets – Make popup sidebars | 50 | 48 | 14 | 3k+ | Output is not escaped | ||
| #255 | Simple Masonry Layout | 53 | 28 | 28 | 1k+ | Output is not escaped | ||
| #256 | Quick and Easy Testimonials | 54 | 63 | 32 | 3k+ | Non Singular String Literal Domain | ||
| #257 | Advanced Floating Content Lite | 56 | 88 | 49 | 7k+ | Text Domain Mismatch | ||
| #258 | Kwayy HTML Sitemap | 56 | 13 | 19 | 6k+ | Missing nonce verification | ||
| #259 | Flexible FAQ | 58 | 27 | 26 | 1k+ | Text Domain Mismatch | ||
| #260 | Random Post for Widget | 58 | 27 | 5 | 2k+ | Output is not escaped | ||
| #261 | REVIEWS.io for WooCommerce | 58 | 71 | 161 | 1k+ | Non-prefixed global variable | ||
| #262 | UiCore Elements – Free widgets and templates for Elementor | 58 | 29 | 30 | 40k+ | Output is not escaped | ||
| #263 | Latest Posts | 63 | 27 | 1 | 5k+ | Output is not escaped | ||
| #264 | Query Posts | 63 | 53 | 6 | 800 | Output is not escaped | ||
| #265 | Page Tag Cloud | 64 | 21 | 3 | 500 | Output is not escaped | ||
| #266 | WP SEO HTML Sitemap | 65 | 22 | 15 | 6k+ | Output is not escaped | ||
| #267 | Waymark | 72 | 16 | 32 | 900 | Missing direct file access protection | ||
| #268 | Post Sliders & Post Grids | 73 | 6 | 43 | 1k+ | Request data is not unslashed | ||
| #269 | Post Carousel for DV Builder | 74 | 152 | 9 | 2k+ | Text Domain Mismatch | ||
| #270 | Klaviyo | 79 | 26 | 86 | 100k+ | Non-prefixed function | ||
| #271 | ShopEngine Gutenberg WooCommerce Builder Blocks Addon – All in One WooCommerce Solution | 80 | 424 | 735 | 3k+ | Non-prefixed global variable | ||
| #272 | Advanced Sitemap Generator | 88 | 5 | 5 | 400 | Discouraged PHP function | ||
| #273 | Related Posts Flatsome | 88 | 24 | 4 | 10k+ | Text Domain Mismatch | ||
| #274 | Continue Shopping Anywhere for WooCommerce | 90 | 21 | 10 | 700 | Text Domain Mismatch | ||
| #275 | PixCodes | 94 | 216 | 8k+ | Non-prefixed global variable | |||
| #276 | WPGraphQL Yoast SEO Addon | 95 | 42 | 13 | 10k+ | Text Domain Mismatch | ||
| #277 | Video User Manuals | 96 | 15 | 3 | 10k+ | Missing Arg Domain | ||
| #278 | FlexiType Lite | 97 | 2 | 14 | 1k+ | Non-prefixed global variable | ||
| #279 | Guten Post Layout – An Advanced Post Grid Collection | 97 | 1 | 13 | 1k+ | Non-prefixed class | ||
| #280 | WP Sitemap Pages and Posts | 97 | 2 | 7 | 1k+ | trademarked term | ||
| #281 | WebMan Amplifier | 98 | 13 | 2k+ | Non-prefixed class |