Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin notice template showing live deprecation notices.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( 'Invalid request.' );
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-error is-dismissible jquery-migrate-dashboard-notice jquery-migrate-deprecation-notice hidden" data-notice-id="jquery-migrate-deprecation-list">
|
||||
<h2><?php _ex( 'jQuery Migrate Helper', 'Admin notice header', 'enable-jquery-migrate-helper' ); ?> — <?php _ex( 'Warnings encountered', 'enable-jquery-migrate-helper' ); ?></h2>
|
||||
<p><?php _e( 'This page generated the following warnings:', 'enable-jquery-migrate-helper' ); ?></p>
|
||||
|
||||
<ol class="jquery-migrate-deprecation-list"></ol>
|
||||
|
||||
<p>
|
||||
<?php _e( 'Please make sure you are using the latest version of all of your plugins, and your theme. If that is the case, then you may want to ask the developers of the code mentioned in your warnings to update it.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<?php wp_nonce_field( 'jquery-migrate-deprecation-list', 'jquery-migrate-deprecation-list-nonce', false ); ?>
|
||||
</div>
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin notice template encouraging removal of this plugin when it may no longer be needed.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( 'Invalid request.' );
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-warning is-dismissible jquery-migrate-dashboard-notice" data-notice-id="jquery-migrate-no-deprecations-notice">
|
||||
<h2><?php _ex( 'jQuery Migrate Helper', 'Admin notice header', 'enable-jquery-migrate-helper' ); ?></h2>
|
||||
|
||||
<p>
|
||||
<?php _e( 'No deprecations have been logged on this site in a while, you may no longer need this plugin.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'Please note that not all jQuery deprecation notices are recorded in the log. Deprecation notices that occur on public pages (front end) are recorded. Notices from the admin pages (back end) are only recorded if the immediate deprecation notices in the admin bar are turned off. Also keep in mind that under WordPress 5.6 logging of deprecation notices are only logged if logging is specifically enabled by the user.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'This means you should still check that things work as expected after you have disabled the plugin, and if you know there have been warnings in the admin pages, you may still need to reach out to the authors of the affected plugin or theme.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<?php if ( ! is_wp_version_compatible( '5.5.1' ) ) : ?>
|
||||
|
||||
<p>
|
||||
<strong>
|
||||
<?php _e( 'You are using a WordPress version prior to 5.5.1. This plugin also helps with a bug found in WordPress 5.5.0. Please update WordPress to version 5.5.1, or later, before deactivating this plugin.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php wp_nonce_field( 'jquery-migrate-no-deprecations-notice', 'jquery-migrate-no-deprecations-notice-nonce', false ); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin notice template for the plugins welcome message.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( 'Invalid request.' );
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice <?php echo ( 'no' !== get_option( '_jquery_migrate_downgrade_version', 'no' ) ? 'notice-error' : 'notice-warning is-dismissible' ); ?> jquery-migrate-dashboard-notice" data-notice-id="jquery-migrate-notice">
|
||||
<h2><?php _ex( 'jQuery Migrate Helper', 'Admin notice header', 'enable-jquery-migrate-helper' ); ?></h2>
|
||||
<p>
|
||||
<?php _e( 'Right now, you are using a plugin to support some old code in this website’s jQuery JavaScript library. That code is deprecated, meaning it is basically obsolete and is losing the support of your themes and plugins and WordPress itself.', 'enable-jquery-migrate-helper' ); ?>
|
||||
<br>
|
||||
<strong>
|
||||
<?php _e( 'This plugin, called Enable jQuery Migrate Helper, is not a fix. It is a temporary solution to give your plugin and theme authors time to update.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'If you get warnings, please check for updated versions of the plugin or theme that generated the warning. There will very likely be one you can install. When you have updated your plugins and themes, and there are no more warnings, please deactivate Enable jQuery Migrate Helper.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<?php if ( 'no' !== get_option( '_jquery_migrate_downgrade_version', 'no' ) ) : ?>
|
||||
<p>
|
||||
<strong>
|
||||
<?php _e( 'You are currently using a legacy version of jQuery. It has no support and doesn’t receive security updates. Please upgrade as soon as possible.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</strong>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
<a href="<?php echo esc_url( admin_url( 'tools.php?page=jqmh' ) ); ?>"><?php _e( 'Plugin settings', 'enable-jquery-migrate-helper' ); ?></a> | <a href="<?php echo esc_url( admin_url( 'tools.php?page=jqmh&tab=logs' ) ); ?>"><?php _e( 'Logged deprecations', 'enable-jquery-migrate-helper' ); ?></a>
|
||||
</p>
|
||||
|
||||
<?php wp_nonce_field( 'jquery-migrate-notice', 'jquery-migrate-notice-nonce', false ); ?>
|
||||
</div>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Template for automatic downgrade email.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( 'Invalid request.' );
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<p>
|
||||
<?php _e( 'Greetings!', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'This is a one-time, automated, message to inform you that the jQuery version on your site has been automatically downgraded to the legacy 1.12.4-wp version.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'This happened because you, or a visitor to your site, viewed a page that was using one or more deprecated jQuery features which are no longer in use. As the feature being used is no longer maintained, this caused an error. In order to maintain the expected user experience, this automatic downgrade was performed.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
// translators: 1: Link to deprecation log page.
|
||||
__( 'You can view captured and logged deprecations at %s', 'enable-jquery-migrate-helper' ),
|
||||
admin_url( 'tools.php?page=jqmh&tab=logs' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span style="font-style: italic;">
|
||||
<?php
|
||||
printf(
|
||||
// translators: 1: The website name as a link.
|
||||
__( 'This email was automatically generated by the Enable jQuery Migrate Helper plugin on your website %s', 'enable-jquery-migrate-helper' ),
|
||||
sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
esc_url( get_site_url() ),
|
||||
esc_html( get_bloginfo( 'name' ) )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</p>
|
||||
@@ -0,0 +1,184 @@
|
||||
<?php
|
||||
/**
|
||||
* Template for weekly scheduled email.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
die( 'Invalid request.' );
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'get_plugins' ) ) {
|
||||
require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/plugin.php';
|
||||
}
|
||||
|
||||
$plugins = array();
|
||||
|
||||
foreach ( get_plugins() as $slug => $plugin ) {
|
||||
$slug = explode( '/', $slug );
|
||||
$plugins[ $slug[0] ] = $plugin;
|
||||
}
|
||||
|
||||
$themes = wp_get_themes();
|
||||
|
||||
$logs = get_option( 'jqmh_logs', array() );
|
||||
?>
|
||||
|
||||
<p>
|
||||
<?php _e( 'Greetings!', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php _e( 'This is a weekly summary of the warnings still present on your site, relating to the jQuery library. These errors should be addressed as soon as possible.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<?php if ( 'yes' === get_option( '_jquery_migrate_downgrade_version', 'no' ) ) : ?>
|
||||
|
||||
<p>
|
||||
<strong>
|
||||
<?php _e( 'Your site is running a legacy version of jQuery, modern functionality and recent security enhancements within the jQuery library are currently not available to your plugins, themes or WordPress itself.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( jQuery_Migrate_Helper::logged_migration_notice_count() < 1 ) : ?>
|
||||
|
||||
<p>
|
||||
<?php _e( 'There have been no reported deprecations logged in the past week, maybe you no longer need this plugin?', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<p>
|
||||
<?php _e( 'The following deprecations have been logged from the front-end of your site, or from your admin area while live deprecation notices were disabled.', 'enable-jquery-migrate-helper' ); ?>
|
||||
</p>
|
||||
|
||||
<table style="background: #fff; border: 1px solid #ccd0d4;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="border-bottom: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Time', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-bottom: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Notice', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-bottom: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Plugin or theme', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-bottom: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'File location', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-bottom: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Triggered on page', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
$odd = true;
|
||||
foreach ( $logs as $log ) :
|
||||
|
||||
preg_match( '/\/plugins\/(?P<slug>.+?)\/.+?: (?P<notice>.+)/', $log['notice'], $plugin );
|
||||
preg_match( '/\/themes\/(?P<slug>.+?)\/.+?: (?P<notice>.+)/', $log['notice'], $theme );
|
||||
preg_match( '/\/wp-(admin|includes)\/.+?: (?P<notice>.+)/', $log['notice'], $core );
|
||||
|
||||
$notice = $log['notice'];
|
||||
// Translators: Undetermined source
|
||||
$source = __( 'Undetermined', 'enable-jquery-migrate-helper' );
|
||||
$file = __( 'Inline code, unknown file location', 'enable-jquery-migrate-helper' );
|
||||
|
||||
if ( ! empty( $plugin ) ) {
|
||||
preg_match( '/(?P<path>https?:\/\/.+?):/', $log['notice'], $file );
|
||||
$file = $file['path'];
|
||||
|
||||
$plugin_link = '#';
|
||||
|
||||
if ( isset( $plugins[ $plugin['slug'] ] ) ) {
|
||||
$plugin_link = ( isset( $plugins[ $plugin['slug'] ]['PluginURI'] ) ? $plugins[ $plugin['slug'] ]['PluginURI'] : $plugins[ $plugin['slug'] ]['AuthorURI'] );
|
||||
}
|
||||
|
||||
$notice = $plugin['notice'];
|
||||
$source = sprintf(
|
||||
// translators: 1: Linked name of the plugin throwing notices.
|
||||
__( 'Plugin: %s', 'enable-jquery-migrate-helper' ),
|
||||
sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
esc_url( $plugin_link ),
|
||||
esc_html( ( isset( $plugins[ $plugin['slug'] ] ) ? $plugins[ $plugin['slug'] ]['Name'] : $plugin['slug'] ) )
|
||||
)
|
||||
);
|
||||
} elseif ( ! empty( $theme ) ) {
|
||||
preg_match( '/(?P<path>https?:\/\/.+?):/', $log['notice'], $file );
|
||||
$file = $file['path'];
|
||||
|
||||
$theme_link = '#';
|
||||
|
||||
if ( isset( $themes[ $theme['slug'] ] ) ) {
|
||||
$theme_link = $themes[ $theme['slug'] ]->get( 'ThemeURI' );
|
||||
}
|
||||
|
||||
$notice = $theme['notice'];
|
||||
$source = sprintf(
|
||||
// translators: 1: Linked name of the theme throwing notices.
|
||||
__( 'Theme: %s', 'enable-jquery-migrate-helper' ),
|
||||
sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
esc_url( $theme_link ),
|
||||
esc_html( ( isset( $themes[ $theme['slug'] ] ) ? $themes[ $theme['slug'] ]->get( 'Name' ) : $theme['slug'] ) )
|
||||
)
|
||||
);
|
||||
} elseif ( ! empty( $core ) ) {
|
||||
preg_match( '/(?P<path>https?:\/\/.+?):/', $log['notice'], $file );
|
||||
$file = $file['path'];
|
||||
|
||||
$notice = $core['notice'];
|
||||
$source = __( 'WordPress core', 'enable-jquery-migrate-helper' );
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<tr style="<?php echo ( $odd ? 'background-color: #f9f9f9;' : '' ); ?>">
|
||||
<td style="padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php echo esc_html( $log['registered'] ); ?></td>
|
||||
<td style="padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php echo esc_html( $notice ); ?></td>
|
||||
<td style="padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php echo $source; ?></td>
|
||||
<td style="padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php echo esc_html( $file ); ?></td>
|
||||
<td style="padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php echo esc_html( $log['page'] ); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ( $odd ) { $odd = false; } else { $odd = true; } ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th style="border-top: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Time', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-top: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Notice', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-top: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Plugin or theme', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-top: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'File location', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
<th style="border-top: 1px solid #ccd0d4; text-align: left; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px;"><?php _ex( 'Page', 'Admin deprecation notices', 'enable-jquery-migrate-helper' ); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
// translators: 1: Link to deprecation log page.
|
||||
__( 'You can view captured and logged deprecations at %s', 'enable-jquery-migrate-helper' ),
|
||||
admin_url( 'tools.php?page=jqmh&tab=logs' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span style="font-style: italic;">
|
||||
<?php
|
||||
printf(
|
||||
// translators: 1: The website name as a link.
|
||||
__( 'This email was automatically generated by the Enable jQuery Migrate Helper plugin on your website %s', 'enable-jquery-migrate-helper' ),
|
||||
sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
esc_url( get_site_url() ),
|
||||
esc_html( get_bloginfo( 'name' ) )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
</p>
|
||||
Reference in new issue
Block a user