Changeset 62192 for trunk/src/wp-includes/class-wp-connector-registry.php
- Timestamp:
- 04/01/2026 02:56:47 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-connector-registry.php
r62180 r62192 41 41 * }, 42 42 * plugin?: array{ 43 * slug: non-empty-string43 * file: non-empty-string 44 44 * } 45 45 * } … … 110 110 * Optional. Plugin data for install/activate UI. 111 111 * 112 * @type string $slug The WordPress.org plugin slug. 112 * @type string $file The plugin's main file path relative to the plugins 113 * directory (e.g. 'akismet/akismet.php' or 'hello.php'). 113 114 * } 114 115 * } … … 243 244 } 244 245 245 if ( ! empty( $args['plugin'] ) && is_array( $args['plugin'] ) ) {246 $connector['plugin'] = $args['plugin'];246 if ( ! empty( $args['plugin'] ) && is_array( $args['plugin'] ) && ! empty( $args['plugin']['file'] ) ) { 247 $connector['plugin'] = array( 'file' => $args['plugin']['file'] ); 247 248 } 248 249
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)