Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#44223 closed enhancement (wontfix)

Add privacy_url to get_bloginfo()

Reported by: fixw's profile fixw Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.6
Component: Privacy Keywords: has-patch
Focuses: Cc:


//* function get_bloginfo()
// * - 'privacy_url' - The Sites Privacy Url (set in Settings > Privacy)
		case 'privacy_url':
			$output = get_privacy_policy_url();

Attachments (1)

44223.diff (565 bytes) - added by XpertOne 6 years ago.

Download all attachments as: .zip

Change History (7)

6 years ago

#1 @XpertOne
6 years ago

  • Keywords has-patch added

#2 @swissspidy
6 years ago

What‘s the benefit of doing this when we have a dedicated function to get the privacy page URL already? I don‘t see a value in that.

#3 @subrataemfluence
6 years ago

  • Keywords reporter-feedback added

#4 @desrosj
6 years ago

  • Keywords close added

@fixw welcome to Trac!

Following up on @swissspidy's comment above, do you have a reasoning you can detail?

While there are several values for get_bloginfo() that just return a URL from a dedicated function (pingback_url, stylesheet_url, stylesheet_directory, to name a few), no new values have been introduced to get_bloginfo() in over 11 years when comments_atom_url was introduced (r4928).

I also vote to close this out in favor of using get_privacy_policy_url() directly.

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

6 years ago

#6 @desrosj
6 years ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version set to 4.9.6

I am going to close this one out as a wontfix. It does not seem to have a large enough benefit to add, and the direction of core has been in favor of individual functions instead of using get_bloginfo() as a helper.

If a use case comes up that shows more value we can revisit this.

Note: See TracTickets for help on using tickets.