Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#44076 closed defect (bug) (fixed)

Add `wp_page_for_privacy_policy` to `populate_options()`

Reported by: ocean90's profile ocean90 Owned by: azaozz's profile azaozz
Milestone: 4.9.6 Priority: normal
Severity: normal Version: 5.1
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 6 years ago.

Download all attachments as: .zip

Change History (6)

@ocean90
6 years ago

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


6 years ago

#2 @azaozz
6 years ago

  • Keywords commit added

+1, good to go for 4.9.6.

#3 @azaozz
6 years 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
6 years 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
6 years ago

  • Component changed from Database to Privacy

Moving to the new Privacy component.

Note: See TracTickets for help on using tickets.