Make WordPress Core


Ignore:
Timestamp:
05/26/2016 11:14:52 PM (8 years ago)
Author:
ocean90
Message:

Plugins: Fix order of arguments for the strpos() function added in [37562].

See #36706.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r37562 r37580  
    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        }
Note: See TracChangeset for help on using the changeset viewer.