Skip to content

Commit a846dee

Browse files
committed
Update some terminology for WordPress VIP components.
1 parent 0fd53b1 commit a846dee

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

classes/Component.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class QM_Component implements JsonSerializable {
1717
public const TYPE_ALTIS_VENDOR = 'altis-vendor';
1818
public const TYPE_CORE = 'core';
1919
public const TYPE_DROPIN = 'dropin';
20-
public const TYPE_GO_PLUGIN = 'go-plugin';
2120
public const TYPE_MU_PLUGIN = 'mu-plugin';
2221
public const TYPE_MU_VENDOR = 'mu-vendor';
2322
public const TYPE_OTHER = 'other';
@@ -29,6 +28,7 @@ class QM_Component implements JsonSerializable {
2928
public const TYPE_UNKNOWN = 'unknown';
3029
public const TYPE_VIP_CLIENT_MU_PLUGIN = 'vip-client-mu-plugin';
3130
public const TYPE_VIP_PLUGIN = 'vip-plugin';
31+
public const TYPE_VIP_SHARED_PLUGIN = 'vip-shared-plugin';
3232

3333
/**
3434
* @var string
@@ -97,8 +97,8 @@ final public static function from( string $type, string $context = '', string $f
9797
return new QM_Component_MU_Plugin( $context, $file, $type );
9898
case self::TYPE_MU_VENDOR:
9999
return new QM_Component_MU_Vendor( $context, $file, $type );
100-
case self::TYPE_GO_PLUGIN:
101-
return new QM_Component_Go_Plugin( $context, $file, $type );
100+
case self::TYPE_VIP_SHARED_PLUGIN:
101+
return new QM_Component_VIP_Shared_Plugin( $context, $file, $type );
102102
case self::TYPE_VIP_PLUGIN:
103103
return new QM_Component_VIP_Plugin( $context, $file, $type );
104104
case self::TYPE_VIP_CLIENT_MU_PLUGIN:

classes/Component_VIP_Client_MU_Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22
/**
3-
* Class representing a VIP client mu-plugin component.
3+
* Class representing a WordPress VIP client mu-plugin component.
44
*
55
* @package query-monitor
66
*/

classes/Component_VIP_Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22
/**
3-
* Class representing a VIP plugin component.
3+
* Class representing a WordPress VIP plugin component.
44
*
55
* @package query-monitor
66
*/
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php declare(strict_types = 1);
22
/**
3-
* Class representing a VIP Go mu-plugins/shared-plugins component.
3+
* Class representing a WordPress VIP shared plugin component.
44
*
55
* @package query-monitor
66
*/
77

8-
class QM_Component_Go_Plugin extends QM_Component {
8+
class QM_Component_VIP_Shared_Plugin extends QM_Component {
99
public function get_name(): string {
1010
return sprintf(
1111
/* translators: %s: Plugin name */

classes/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public static function get_file_dirs() {
122122

123123
self::$file_dirs[ QM_Component::TYPE_PLUGIN ] = WP_PLUGIN_DIR;
124124
self::$file_dirs[ QM_Component::TYPE_MU_VENDOR ] = WPMU_PLUGIN_DIR . '/vendor';
125-
self::$file_dirs[ QM_Component::TYPE_GO_PLUGIN ] = WPMU_PLUGIN_DIR . '/shared-plugins';
125+
self::$file_dirs[ QM_Component::TYPE_VIP_SHARED_PLUGIN ] = WPMU_PLUGIN_DIR . '/shared-plugins';
126126
self::$file_dirs[ QM_Component::TYPE_MU_PLUGIN ] = WPMU_PLUGIN_DIR;
127127
self::$file_dirs[ QM_Component::TYPE_VIP_PLUGIN ] = get_theme_root() . '/vip/plugins';
128128

@@ -196,7 +196,7 @@ public static function get_file_component( $file ) {
196196
}
197197
$context = $plug;
198198
break;
199-
case QM_Component::TYPE_GO_PLUGIN:
199+
case QM_Component::TYPE_VIP_SHARED_PLUGIN:
200200
case QM_Component::TYPE_VIP_PLUGIN:
201201
case QM_Component::TYPE_VIP_CLIENT_MU_PLUGIN:
202202
$plug = str_replace( self::$file_dirs[ $type ], '', $file );

0 commit comments

Comments
 (0)