$ module_array ['konfigurable'] = sprintf ('<a href="%1$s">% 2 $ s </a>', esc_url ($ module_array ['configure_url']), __ ('Configure', ' jetpack '));
<? php
gunakan Automattic \ Jetpack \ Status;
// Bangun menu admin Jetpack secara keseluruhan
class Jetpack_Admin {
/ **
* @var Jetpack_Admin
** /
private static $ instance = null;
* @var Jetpack
private $ jetpack;
fungsi statis init () {
if (isset ($ _GET ['page']) && $ _GET ['page'] === 'jetpack') {
add_filter ('nocache_headers', array ('Jetpack_Admin', 'add_no_store_header'), 100);
}
if (is_null (self :: $ instance)) {
self :: $ instance = new Jetpack_Admin ();
return self :: $ instance;
fungsi statis add_no_store_header ($ header) {
$ header ['Cache-Control']. = ', no-store';
return $ header;
fungsi pribadi __construct () {
$ this-> jetpack = Jetpack :: init ();
jetpack_require_lib ('admin-pages / class.jetpack-react-page');