Changeset 63715 for branches/4.7/src/wp-admin/includes/plugin.php
- Timestamp:
- 09/17/2026 09:15:04 PM (6 hours ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 63656-63657,63659-63660,63665,63669,63672
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-admin/includes/plugin.php
r38687 r63715 499 499 * 500 500 * @since 3.0.0 501 * 502 * @param string $plugin Plugin to check 501 * @since 7.1.1 The `$plugin` path is normalized with `plugin_basename()` and `trim()`, 502 * matching how `activate_plugin()` resolves it. 503 * 504 * @param string $plugin Path to the plugin file. Accepts a path relative to the plugins 505 * directory, or an absolute path, with or without surrounding whitespace. 503 506 * @return bool True if plugin is network only, false otherwise. 504 507 */ 505 508 function is_network_only_plugin( $plugin ) { 509 // Normalize the path the same way activate_plugin() does, so both agree on the file. 510 $plugin = plugin_basename( trim( $plugin ) ); 511 506 512 $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); 507 513 if ( $plugin_data )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)