-
Notifications
You must be signed in to change notification settings - Fork 799
/
jetpack.php
54 lines (51 loc) · 1.92 KB
/
jetpack.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Plugin Name: Jetpack Monorepo (not a real plugin)
* Plugin URI: https://github.com/Automattic/jetpack#jetpack-monorepo
* Description: The Jetpack Monorepo is not a plugin. Don't try to use it as one. See the Jetpack Monorepo documentation for instructions on correctly installing Jetpack.
* Author: Automattic
* Version: 9.5-alpha
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
*
* @package automattic/jetpack
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// phpcs:disable WordPress.WP.I18n.TextDomainMismatch
/**
* Notify the admin that the Jetpack Monorepo is not a plugin,
* if they tried to install it as one.
*/
function jetpack_monorepo_is_not_a_plugin() {
$message = sprintf(
wp_kses(
/* translators: Link to Jetpack installation instructions. */
__( 'The Jetpack Monorepo is not a plugin, and should not be installed as one. See <a href="%s">the Jetpack Monorepo documentation</a> for instructions on correctly installing Jetpack.', 'jetpack' ),
array(
'a' => array( 'href' => array() ),
)
),
esc_url( 'https://github.com/Automattic/jetpack#jetpack-monorepo' )
);
wp_admin_notice(
$message,
array(
'type' => 'error',
)
);
}
add_action( 'admin_notices', 'jetpack_monorepo_is_not_a_plugin' );