Skip to content

Commit

Permalink
home_url plutôt que site_url
Browse files Browse the repository at this point in the history
  • Loading branch information
David Miorin committed May 19, 2015
1 parent 9ca4e18 commit e0870ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _mediavault.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ function mgjp_mv_upload_dir( $path = '', $in_url = false ) {
function mgjp_mv_get_the_rewrite_rules() {

$upload = wp_upload_dir();
$uploads_path = str_replace( site_url( '/' ), '', $upload['baseurl'] );
$uploads_path = str_replace( home_url( '/' ), '', $upload['baseurl'] );

// if is multisite add allowance for '/sites/ID' folders in uploads path
if ( is_multisite() )
Expand Down

0 comments on commit e0870ac

Please sign in to comment.