Changeset 6051
- Timestamp:
- 10/23/2017 10:14:32 PM (7 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
r5868 r6051 94 94 } 95 95 96 $icon = ''; 96 97 $plugin = sprintf( '<a href="//wordpress.org/plugins/%s/">%s</a>', esc_attr( $this->slug() ), esc_html( $this->plugin->post_title ) ); 97 98 $faq = sprintf( '<a href="//wordpress.org/plugins/%s/faq/">%s</a>', esc_attr( $this->slug() ), __( 'Frequently Asked Questions', 'wporg-forums' ) ); … … 101 102 $reviews = sprintf( '<a href="%s">%s</a>', home_url( '/plugin/' . esc_attr( $this->slug() ) . '/reviews/' ), __( 'Reviews', 'wporg-forums' ) ); 102 103 $create = ''; 104 105 if ( function_exists( 'wporg_get_plugin_icon' ) ) { 106 $icon = wporg_get_plugin_icon( $this->slug, 128 ); 107 } 103 108 104 109 $create_label = ''; … … 117 122 <div> 118 123 <ul> 119 <?php if ( function_exists( 'wporg_get_plugin_icon' )) : ?>120 <li><?php echo wporg_get_plugin_icon( $this->slug, 128 ); ?></li>124 <?php if ( $icon ) : ?> 125 <li><?php echo $icon; ?></li> 121 126 <?php endif; ?> 122 127 <li style="clear:both;"><?php echo $plugin; ?></li>
Note: See TracChangeset
for help on using the changeset viewer.