WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #23483, comment 12


Ignore:
Timestamp:
07/08/2017 12:01:08 AM (2 years ago)
Author:
natejacobson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23483, comment 12

    v1 v2  
    66
    77Nate
     8
     9---
     10
     11After trying a host of other functions and filters to remedy the problem, what worked for me was simply this in functions.php:
     12
     13{{{#!php
     14update_option('upload_url_path', $_SERVER['HTTP_HOST'].'/media');
     15}}}
     16
     17