[wp-trac] [WordPress Trac] #40465: Multisite fails to rewrite upload path on main site
WordPress Trac
noreply at wordpress.org
Mon Apr 17 18:12:14 UTC 2017
#40465: Multisite fails to rewrite upload path on main site
--------------------------------+------------------------------
Reporter: daniel berhane | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by daniel berhane):
I think my description was too long (I can shorten it if a moderator
recommends so)
'''My hypothesis is that:'''
The main site images were not properly configured at the time when I
removed the /blog/ slug.
Therefore, even if the blog slug is now properly removed and the
Rewrite_rules in wp_2_options is okay, the image library didn't
'''learn''' that transformation because it was sort of disconnected at the
time.
As a result, even if the main site image library is properly set now, it
has somehow skipped that learning step, thus it is acting in disregard of
the rewrite_rules.
Hence, it is using the siteurl as default image url.
Still, it doesn't have any reason to deny image urls consisting only home
url (without subdirectory), therefore, it works with those urls as well.
If my hypothesis makes sense, it is a bug.
Because, in the absence of any code to the contrary, why would the main
site ignore the rewrite_rules set in wp_2_options?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40465#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list