Changeset 4916 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
- Timestamp:
- 02/18/2017 02:57:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r4915 r4916 93 93 94 94 public function do_topic_sidebar() { 95 include_once WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php'; 95 if ( file_exists( WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php' ) ) { 96 include_once WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php'; 97 } 98 96 99 $plugin = sprintf( '<a href="//wordpress.org/plugins/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->plugin->post_title ) ); 97 100 $faq = sprintf( '<a href="//wordpress.org/plugins/%s/faq/">%s</a>', esc_attr( $this->slug() ), __( 'Frequently Asked Questions', 'wporg-forums' ) ); … … 117 120 <h3><?php _e( 'About this Plugin', 'wporg-forums' ); ?></h3> 118 121 <ul> 122 <?php if ( function_exists( 'wporg_get_plugin_icon' ) ) : ?> 119 123 <li><?php echo wporg_get_plugin_icon( $this->slug, 128 ); ?></li> 124 <?php endif; ?> 120 125 <li style="clear:both;"><?php echo $plugin; ?></li> 121 126 <?php if ( ! empty( $this->plugin->post_content ) && false !== strpos( $this->plugin->post_content, '<!--section=faq-->' ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.