Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @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