Opened 2 years ago
Closed 7 weeks ago
#61194 closed defect (bug) (invalid)
Duplicate Query for getting Privacy Policy Page
| Reported by: | aftab.alam8028 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Privacy | Version: | 6.2 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
WP stores the privacy policy page id in wp_options table under "wp_page_for_privacy_policy" option_key.
If it has value like "3" and if that page id doesnot exist then it is firing approx 78 duplicate query.
SELECT * FROM wp_posts WHERE ID = 3 LIMIT 1
This query is running only in UI side.
If I select a page from Settings > Privacy then duplicate query is not showing.
Change History (4)
#3
@
6 months ago
- Keywords needs-testing removed
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 6.9
- PHP: 8.3.30
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Query Monitor 3.20.2
- Test Reports 1.2.1
Actual Results
- ❌ Error condition doesn't occur (not reproducible).
- Even after deleting the page, set as the Privacy policy page and viewing the frontend. No visible queries are visible.
Additional Notes
- None
Supplemental Artifacts
Screencast:
https://files.catbox.moe/x2frp2.webm
#4
@
7 weeks ago
- Resolution → invalid
- Status assigned → closed
Couldnt replicate the issue as noted but we're working on improvements in handling a better resetting of the privacypolicy option in ticket https://core.trac.wordpress.org/ticket/56694.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there and welcome to Trac!
I am unable to reproduce this issue so far. Here's what I did:
Whether I go to the dashboard, the homepage, or the privacy settings page, there isn't any big amount of duplicate queries like you mention it.
Could you please share more specific steps to reproduce? Verify that the issue still happens with all plugins disabled and when using one of the default themes.