Skip to content

Commit 0ea5c07

Browse files
committed
Fix Autoloader
Quick fix to respect the uppercase folder name.
1 parent 0e9bf2c commit 0ea5c07

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

includes/class-autoloader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ public function load( $class_name ) {
8787
$namespace = \str_replace( '_', '-', $namespace );
8888
$class_name = \substr( $class_name, $last_ns_pos + 1 );
8989
$dir = \str_replace( self::NS_SEPARATOR, DIRECTORY_SEPARATOR, $namespace ) . DIRECTORY_SEPARATOR;
90+
if ( $dir ) {
91+
$dir = ucfirst( $dir );
92+
}
9093
}
9194

9295
$path = $this->path . $dir . 'class-' . \str_replace( '_', '-', $class_name ) . '.php';

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Tags: webmention, pingback, trackback, linkback, indieweb
66
- Requires at least: 6.3
77
- Tested up to: 6.8
8-
- Stable tag: 5.4.0
8+
- Stable tag: 5.4.1
99
- Requires PHP: 7.2
1010
- License: MIT
1111
- License URI: https://opensource.org/licenses/MIT
@@ -101,6 +101,10 @@ While not all display options can be settings, we are looking to provide some si
101101

102102
Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention).
103103

104+
### 5.4.1
105+
106+
* Fix autoloader
107+
104108
### 5.4.0
105109

106110
* Update yoast/phpunit-polyfills requirement from ^2.0 to ^3.0

webmention.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Webmention support for WordPress posts
66
* Author: Matthias Pfefferle
77
* Author URI: https://notiz.blog/
8-
* Version: 5.4.0
8+
* Version: 5.4.1
99
* License: MIT
1010
* License URI: https://opensource.org/licenses/MIT
1111
* Text Domain: webmention
@@ -14,7 +14,7 @@
1414

1515
namespace Webmention;
1616

17-
\define( 'WEBMENTION_VERSION', '5.4.0' );
17+
\define( 'WEBMENTION_VERSION', '5.4.1' );
1818

1919
\define( 'WEBMENTION_PLUGIN_DIR', \plugin_dir_path( __FILE__ ) );
2020
\define( 'WEBMENTION_PLUGIN_BASENAME', \plugin_basename( __FILE__ ) );

0 commit comments

Comments
 (0)