Automator_System_Report::output_plugins_info( $plugins )
Contents
Parameters Parameters
- $plugins
-
(Required)
Source Source
File: src/core/lib/utilities/class-automator-system-report.php
public function output_plugins_info( $plugins ) { foreach ( $plugins as $plugin ) { if ( ! empty( $plugin['name'] ) ) { // Link the plugin name to the plugin url if available. $plugin_name = esc_html( $plugin['name'] ); if ( ! empty( $plugin['url'] ) ) { $plugin_name = '<a href="' . esc_url( $plugin['url'] ) . '" aria-label="' . esc_attr__( 'Visit plugin homepage', 'uncanny-automator' ) . '" target="_blank">' . $plugin_name . '</a>'; } $version_string = $plugin['version']; $network_string = ''; ?> <tr> <td><?php echo wp_kses_post( $plugin_name ); ?></td> <td class="help"> </td> <td> <?php /* translators: %s: plugin author */ printf( esc_html__( 'by %s', 'uncanny-automator' ), esc_html( $plugin['author_name'] ) ); echo ' – ' . esc_html( $version_string ) . $network_string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </td> </tr> <?php } } }
Expand full source code Collapse full source code View on Github