Changeset 2693464
- Timestamp:
- 03/14/2022 07:49:23 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tourfic/trunk/inc/tourfic-functions.php
r2693459 r2693464 1570 1570 function tf_ms_plugin_update_message( $file, $plugin ) { 1571 1571 if( is_multisite() && version_compare( $plugin['Version'], $plugin['new_version'], '<') ) { 1572 $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); 1573 echo '<tr class="plugin-update-tr"><td colspan="' .$wp_list_table->get_column_count(). '" class="plugin-update update-message notice inline notice-warning notice-alt"><div class="update-message"><span style="background: #D64D21;color: #fff;padding: 10px 10px 12px 10px;margin: 20px 0 15px 2px;display: block;border-radius: 2px;line-height: 18px;"><b>IMPORTANT UPGRADE NOTICE: </b>' .str_replace(['<p>', '</p>'], '', wpautop( $plugin['upgrade_notice'] )). '</span></div></td></tr>'; 1574 1572 if( isset( $data['upgrade_notice'] ) ) { 1573 $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); 1574 echo '<tr class="plugin-update-tr"><td colspan="' .$wp_list_table->get_column_count(). '" class="plugin-update update-message notice inline notice-warning notice-alt"><div class="update-message"><span style="background: #D64D21;color: #fff;padding: 10px 10px 12px 10px;margin: 20px 0 15px 2px;display: block;border-radius: 2px;line-height: 18px;"><b>IMPORTANT UPGRADE NOTICE: </b>' .str_replace(['<p>', '</p>'], '', wpautop( $plugin['upgrade_notice'] )). '</span></div></td></tr>'; 1575 } 1575 1576 } 1576 1577 }
Note: See TracChangeset
for help on using the changeset viewer.