src/Checksum_Plugin_Command.php
private function get_plugin_files( $path ) {
		$folder = dirname( $this->get_absolute_path( $path ) );

		// Return single file plugins immediately, to avoid iterating over the
		// entire plugins folder.
		if ( WP_PLUGIN_DIR === $folder ) {
			return (array) $path;
		}

		return $this->get_files( trailingslashit( $folder ) );
	}
private function get_plugin_files( $path ) {
		$folder = dirname( $this->get_absolute_path( $path ) );

		// Return single file plugins immediately, to avoid iterating over the
		// entire plugins folder.
		if ( WP_PLUGIN_DIR === $folder ) {
			return (array) $path;
		}

		return $this->get_files( trailingslashit( $folder ) );
	}
private function get_plugin_files ( $ path ) { $ folder = dirname ( $ this -> get_absolute_path ( $ path ) ) ; // Return single file plugins immediately, to avoid iterating over the // entire plugins folder. if ( WP_PLUGIN_DIR === $ folder ) { return ( array ) $ path ; } return $ this -> get_files ( trailingslashit ( $ folder ) ) ; }
Gets the list of files that are part of the given plugin.

@param string $path Relative path to the main plugin file.

@return array<string> Array of files with their relative paths.
Gets the list of files that are part of the given plugin .