Changeset 49639 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 11/17/2020 08:50:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r49566 r49639 1041 1041 if ( 1042 1042 ( ! isset( $content_url['path'] ) || strpos( $src_url['path'], $content_url['path'] ) === 0 ) && 1043 ( ! isset( $src_url['host'] ) || $src_url['host'] === $content_url['host'] )1043 ( ! isset( $src_url['host'] ) || ! isset( $content_url['host'] ) || $src_url['host'] === $content_url['host'] ) 1044 1044 ) { 1045 1045 // Make the src relative the specific plugin or theme. … … 1058 1058 } elseif ( 1059 1059 ( ! isset( $plugins_url['path'] ) || strpos( $src_url['path'], $plugins_url['path'] ) === 0 ) && 1060 ( ! isset( $src_url['host'] ) || $src_url['host'] === $plugins_url['host'] )1060 ( ! isset( $src_url['host'] ) || ! isset( $plugins_url['host'] ) || $src_url['host'] === $plugins_url['host'] ) 1061 1061 ) { 1062 1062 // Make the src relative the specific plugin. … … 1073 1073 $relative = array_slice( $relative, 1 ); // Remove <plugin name>. 1074 1074 $relative = implode( '/', $relative ); 1075 } elseif ( ! isset( $src_url['host'] ) || $src_url['host'] === $site_url['host'] ) {1075 } elseif ( ! isset( $src_url['host'] ) || ! isset( $site_url['host'] ) || $src_url['host'] === $site_url['host'] ) { 1076 1076 if ( ! isset( $site_url['path'] ) ) { 1077 1077 $relative = trim( $src_url['path'], '/' );
Note: See TracChangeset
for help on using the changeset viewer.