芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/socialdigivlms.com/wp-content/plugins/tutor/classes/WhatsNew.php
* @link https://themeum.com * @since 2.3.0 */ namespace TUTOR; /** * Class WhatsNew */ class WhatsNew { /** * What's new page. * * @since 2.2.4 * * @return void */ public static function whats_new_menu() { $transient_key = 'tutor_plugin_info'; $plugin_info = get_transient( $transient_key ); if ( false === $plugin_info ) { $plugin_info = tutils()->get_remote_plugin_info(); $hour_in_seconds = 1800; set_transient( $transient_key, $plugin_info, $hour_in_seconds ); } $remote_version = $plugin_info->version ?? TUTOR_VERSION; $installed_version = TUTOR_VERSION; $update_required = version_compare( $remote_version, $installed_version, '>' ); $menu_text = __( "What's New", 'tutor' ); if ( $update_required ) { $menu_text .= '
1
'; } add_submenu_page( 'tutor', __( "What's New", 'tutor' ), $menu_text, 'manage_options', 'tutor-whats-new', function() use ( $remote_version, $installed_version, $update_required ) { $changelogs = self::build_changelog_array(); include tutor()->path . 'views/pages/whats-new.php'; } ); } /** * Whats new item. * * @param string $type type of item. * @param array $log changelog item. * * @return void */ public static function render_item( $type, $log ) { $obj = (object) $log; ?>
:
title ); ?>
is_pro ) && $obj->is_pro ) : ?>
Pro