We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a761d commit 77a2329Copy full SHA for 77a2329
Snippets.php
@@ -54,10 +54,6 @@ public function hooks() {
54
55
public function init() {
56
require_once("Snippets.API.php");
57
-
58
- if( plugin_needs_upgrade( $this ) ) {
59
- require_once( dirname( __FILE__ ) . '/install_functions.php' );
60
- }
61
}
62
63
/**
@@ -175,6 +171,13 @@ public function schema() {
175
171
);
176
172
177
173
174
+ public function upgrade( $p_schema ) {
+ if( $p_schema == 1 ) {
+ require_once( dirname( __FILE__ ) . '/install_functions.php' );
+ }
178
+ return true;
179
180
+
181
182
* RESTful route for Snippets Pattern Help (tooltip).
183
*
0 commit comments