Skip to content

Commit 80c3e34

Browse files
author
ocean90
committed
Plugins: Fix order of arguments for the strpos() function added in [37562].
See #36706. git-svn-id: https://develop.svn.wordpress.org/trunk@37580 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 89cd851 commit 80c3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
9595
// If no text domain is defined fall back to the plugin slug.
9696
if ( ! $plugin_data['TextDomain'] ) {
9797
$plugin_slug = dirname( plugin_basename( $plugin_file ) );
98-
if ( '.' !== $plugin_slug && false === strpos( '/', $plugin_slug ) ) {
98+
if ( '.' !== $plugin_slug && false === strpos( $plugin_slug, '/' ) ) {
9999
$plugin_data['TextDomain'] = $plugin_slug;
100100
}
101101
}

0 commit comments

Comments
 (0)