Skip to content

Commit a686c7c

Browse files
committed
Merge branch 'release/1.1.3'
2 parents 4f1a4ff + 6bf6ed1 commit a686c7c

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.github/workflows/test.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,29 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
19+
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
20+
services:
21+
mysql:
22+
image: mysql:5.7
23+
env:
24+
MYSQL_ROOT_PASSWORD: root
25+
MYSQL_DATABASE: wordpress_test
26+
ports:
27+
- 3306
28+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2029
steps:
2130
- name: Checkout
2231
uses: actions/checkout@v2
2332
- name: Install dependencies
2433
run: composer install --no-progress
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v1
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick
39+
coverage: none
2540
- name: PHPUnit
2641
run: |
27-
composer setup-local-tests
42+
chmod 777 bin/install-wp-tests.sh
43+
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }} latest true
2844
composer phpunit

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 1.1.3 - 15.06.2020
5+
6+
### Fixed:
7+
- WP_CONTENT_URL not returning proper protocol. Replaced with `content_url()`, thanks to @matt-bernhardt
8+
49
## 1.1.2 - 10.02.2020
510

611
### Changed:

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
[![Total Downloads](https://poser.pugx.org/micropackage/filesystem/downloads)](https://packagist.org/packages/micropackage/filesystem)
77
[![License](https://poser.pugx.org/micropackage/filesystem/license)](https://packagist.org/packages/micropackage/filesystem)
88

9+
<p align="center">
10+
<img src="https://bracketspace.com/extras/micropackage/micropackage-small.png" alt="Micropackage logo"/>
11+
</p>
12+
913
## 🧬 About Filesystem
1014

1115
This micropackage is a wrapper for WordPress filesystem intended to be used within the `wp-content` directory.

src/Filesystem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false, $r
180180
* @return string
181181
*/
182182
public function path_to_url( $path ) {
183-
return str_replace( wp_normalize_path( WP_CONTENT_DIR ), WP_CONTENT_URL, $path );
183+
return str_replace( wp_normalize_path( WP_CONTENT_DIR ), content_url(), $path );
184184
}
185185

186186
/**

0 commit comments

Comments
 (0)