Changeset 55988 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 06/22/2023 02:34:56 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r53876 r55988 103 103 if ( ! $plugin_data['TextDomain'] ) { 104 104 $plugin_slug = dirname( plugin_basename( $plugin_file ) ); 105 if ( '.' !== $plugin_slug && false === strpos( $plugin_slug, '/' ) ) {105 if ( '.' !== $plugin_slug && ! str_contains( $plugin_slug, '/' ) ) { 106 106 $plugin_data['TextDomain'] = $plugin_slug; 107 107 } … … 1936 1936 return $parent_page; 1937 1937 } elseif ( empty( $typenow ) && $pagenow === $submenu_array[2] 1938 && ( empty( $parent_file ) || false === strpos( $parent_file, '?' ) )1938 && ( empty( $parent_file ) || ! str_contains( $parent_file, '?' ) ) 1939 1939 ) { 1940 1940 $parent_file = $parent_page;
Note: See TracChangeset
for help on using the changeset viewer.