Skip to content

Commit 4ea6c4a

Browse files
committed
Changed TGMPA Carbon Fields 'version' attribute to use plugin.json
1 parent feebcce commit 4ea6c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/TGMPA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function register_required_plugins() {
2929
'slug' => 'carbon-fields', // The plugin slug (typically the folder name).
3030
'source' => 'https://carbonfields.net/zip/latest/', // The plugin source.
3131
'required' => true, // If false, the plugin is only 'recommended' instead of required.
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.
32+
'version' => self::$config->get( 'dependencies/carbon_fields' ), // 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

0 commit comments

Comments
 (0)