[wp-meta] [Making WordPress.org] #395: Unexpected preview result on Themes Directory

Making WordPress.org noreply at wordpress.org
Thu Jul 26 07:46:26 UTC 2018


#395: Unexpected preview result on Themes Directory
-----------------------------+-----------------------
 Reporter:  wikicms          |       Owner:  (none)
     Type:  defect           |      Status:  assigned
 Priority:  low              |   Milestone:
Component:  Theme Directory  |  Resolution:
 Keywords:  has-screenshots  |
-----------------------------+-----------------------

Comment (by dd32):

 Replying to [comment:13 Otto42]:
 > If we change the base URL to that, and thus generate all internal links
 like this, as if it was in a subdirectory:
 > https://wp-themes.com/twentyfourteen/?p=19

 I did try that, and didn't run into any issues at the time, simply
 stripping all the cookie handling and instead adding a `pre_option_home`
 filter like this
 {{{
 function home() {
         return WP_HOME . '/' . $this->theme->get_stylesheet();
 }
 }}}
 seems to works OK.

 PHP combines the `GET` parameters from the URL and the nginx rules and it
 was seemingly working fine.

 I don't understand the `alloptions` stuff, as far as I can see it's not
 even needed, so after stripping that all out i stopped there to avoid
 breaking something before figuring out what it was trying to do.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/395#comment:14>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list