WordPress.org

Make WordPress Core

Opened 9 days ago

Closed 9 days ago

Last modified 7 days ago

#44076 closed defect (bug) (fixed)

Add `wp_page_for_privacy_policy` to `populate_options()`

Reported by: ocean90 Owned by: azaozz
Milestone: 4.9.6 Priority: normal
Severity: normal Version: trunk
Component: Privacy Keywords: has-patch gdpr commit
Focuses: performance Cc:

Description

We should populate the new option with 0 to avoid an unnecessary database query by get_privacy_policy_url() if no privacy page is set yet.

Previously: #34339

Attachments (1)

44076.patch (407 bytes) - added by ocean90 9 days ago.

Download all attachments as: .zip

Change History (6)

@ocean90
9 days ago

This ticket was mentioned in Slack in #core by desrosj. View the logs.


9 days ago

#2 @azaozz
9 days ago

  • Keywords commit added

+1, good to go for 4.9.6.

#3 @azaozz
9 days ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 43267:

Privacy: add wp_page_for_privacy_policy to populate_options().

Props ocean90.
Fixes #44076.

#4 @azaozz
9 days ago

In 43268:

Privacy: add wp_page_for_privacy_policy to populate_options().

Props ocean90.
Merges [43267] to the 4.9 branch.
Fixes #44076.

#5 @desrosj
7 days ago

  • Component changed from Database to Privacy

Moving to the new Privacy component.

Note: See TracTickets for help on using tickets.