Skip to content

Commit a4e76cd

Browse files
committed
Modified 'notice_can_install_required' string
1 parent d7e7e96 commit a4e76cd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

app/TGMPA.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function register_required_plugins() {
2929
'slug' => 'carbon-fields-loader', // The plugin slug (typically the folder name).
3030
'source' => 'https://github.com/dmhendricks/carbon-fields-loader/archive/master.zip', // The plugin source.
3131
'required' => true, // If false, the plugin is only 'recommended' instead of required.
32-
'version' => '2.0.0', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.
32+
'version' => '2.1.0', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.
3333
'force_activation' => true // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.
3434
)
3535

@@ -51,7 +51,14 @@ public function register_required_plugins() {
5151
'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
5252
'has_notices' => true, // Show admin notices or not.
5353
'dismissable' => true, // If false, a user cannot dismiss the nag message.
54-
'is_automatic' => true // Automatically activate plugins after installation or not.
54+
'is_automatic' => true, // Automatically activate plugins after installation or not.
55+
'strings' => array(
56+
'notice_can_install_required' => _n_noop(
57+
'This plugin has the following dependency: %1$s.',
58+
'This plugin has the following dependencies: %1$s.',
59+
self::$textdomain
60+
),
61+
)
5562
);
5663

5764
tgmpa( $plugins, $config );

0 commit comments

Comments
 (0)