This repository was archived by the owner on Aug 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
wp-content-framework/common/src/classes/models Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 238238 },
239239 {
240240 "name" : " wp-content-framework/common" ,
241- "version" : " v0.0.39 " ,
242- "version_normalized" : " 0.0.39 .0" ,
241+ "version" : " v0.0.40 " ,
242+ "version_normalized" : " 0.0.40 .0" ,
243243 "source" : {
244244 "type" : " git" ,
245245 "url" : " https://github.com/wp-content-framework/common.git" ,
246- "reference" : " e507e1ca8bdfe9e7bb1087d9c2515936ca17f9d1 "
246+ "reference" : " 348eead0ab71866603a3f68f5005e21d7fe2cb78 "
247247 },
248248 "dist" : {
249249 "type" : " zip" ,
250- "url" : " https://api.github.com/repos/wp-content-framework/common/zipball/e507e1ca8bdfe9e7bb1087d9c2515936ca17f9d1 " ,
251- "reference" : " e507e1ca8bdfe9e7bb1087d9c2515936ca17f9d1 " ,
250+ "url" : " https://api.github.com/repos/wp-content-framework/common/zipball/348eead0ab71866603a3f68f5005e21d7fe2cb78 " ,
251+ "reference" : " 348eead0ab71866603a3f68f5005e21d7fe2cb78 " ,
252252 "shasum" : " "
253253 },
254254 "require" : {
258258 "phake/phake" : " ~2.0" ,
259259 "phpunit/phpunit" : " ~5.7"
260260 },
261- "time" : " 2019-03-24T17:19:56 +00:00" ,
261+ "time" : " 2019-03-25T08:52:05 +00:00" ,
262262 "type" : " library" ,
263263 "installation-source" : " dist" ,
264264 "notification-url" : " https://packagist.org/downloads/" ,
Original file line number Diff line number Diff line change 22/**
33 * WP_Framework_Common Classes Models Uninstall
44 *
5- * @version 0.0.38
5+ * @version 0.0.40
66 * @author Technote
77 * @copyright Technote All Rights Reserved
88 * @license http://www.opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2
@@ -80,7 +80,8 @@ public function uninstall() {
8080 }
8181 } else {
8282 $ current_blog_id = get_current_blog_id ();
83- $ blog_ids = $ this ->wpdb ()->get_col ( "SELECT blog_id FROM {$ this ->get_wp_table ('blogs ' )}" );
83+ /** @noinspection SqlResolve */
84+ $ blog_ids = $ this ->wpdb ()->get_col ( "SELECT blog_id FROM {$ this ->get_wp_table ('blogs ' )}" );
8485 foreach ( $ blog_ids as $ blog_id ) {
8586 switch_to_blog ( $ blog_id );
8687
@@ -89,9 +90,11 @@ public function uninstall() {
8990 $ this ->call_if_closure ( $ item );
9091 }
9192 }
93+ delete_option ( WP_FRAMEWORK_VENDOR_NAME );
9294 }
9395 switch_to_blog ( $ current_blog_id );
9496 }
97+ delete_site_option ( WP_FRAMEWORK_VENDOR_NAME );
9598 }
9699
97100 /**
You can’t perform that action at this time.
0 commit comments