﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
19420,get_blog_permalink() can cache either an HTTP or HTTPS link for the same post,mdawaffe,,"{{{get_home_url()}}} can return an HTTP or HTTPS URL based on an {{{is_ssl() && !is_admin()}}} check.

{{{get_permalink()}}} uses {{{home_url()}}} to construct the permalink.

{{{get_blog_permalink()}}} caches the result of {{{get_permalink()}}}.

When using a persistent cache, this can lead to an inconsistent cache and cause unexpected results.

Suggestion: always cache the link as HTTP.  Add a filter to the return value so that sites can adjust things as needed for their specific scenarios.

Patch attached.",defect (bug),closed,normal,,Multisite,3.0,normal,invalid,has-patch,johnbillion@…
