This is indeed bizarre. I think they first tried it with dbDelta
, found it doesn’t work with DROP
queries, and went with a straight $wpdb
query instead. They then just forgot to take out the dbDelta
stuff. It appears dbDelta
collects creation queries in $cqueries
and insert queries in $iqueries
, but silently ignores the rest. What a lovely function…
To be sure, you could ask this question on the book forum, hopefully the authors hang around there. Don’t forget to mention you first asked it here, so we get some publicity!
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best practice way to delete user meta data during plugin uninstall?
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Does plugin uninstall always put WordPress back into original state?
- How can I delete options with register_uninstall_hook?
- Is it possible to uninstall one plugin from within another plugin?
- How to check what plugins used to be on a WordPress installation?
- Global variables during plugin activation , deactivation and uninstall operarations
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- uninstall.php file in Plugin to clean DB
- How to remove traces from widget during uninstallation
- uninstall.php does not appear to trigger when uninstalling my plugin
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Custom message on plugin uninstall
- Does plugin’s uninstall.php file have access to the plugin ‘s object?
- Remove .htaccess portion upon plugin deactivation?
- Plugin retrieving results even after uninstallation
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- plugin uninstall function drop the tables, but shows errors on admin
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- Uninstalling IntenseDebate
- How to delete Crisp Chat plugin completely?
- How to remove links generated by SEO-smart-links?
- Scripts don’t enqueue after removing plugin
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- fix the error : Plugin with id ‘com.android.application’ not found
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins
- Passing a parameter to filter and action functions
- Do deactivated plugins slow down a WordPress site?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- How do you debug plugins?
- How to structure a plugin
- What’s the preferred method of writing AJAX-enabled plugins?
- Get Product id from order id in Woocommerce [closed]
- Add multiple plugin directories
- What are the differences between WPINC and ABSPATH?
- Translate a plugin using .po .mo files
- Best way to overide plugin CSS?
- How to add a shortcode button to the TinyMCE editor?
- Where do I put the code snippets I found here or somewhere else on the web?
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- Get a list of all registered actions
- How can I force a file download in the WordPress backend?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- In what order does WordPress load plugin files?
- What Features would you Most Like to See Added to WordPress? [closed]
- Given the ID of a product in woocommerce, how can I get its URL?
- Adding Additional Attributes in Script Tag for 3rd party JS
- How can I edit post data before it is saved?
- Manually set global $post vars with an ID, in order to use template tags
- is_plugin_active function doesn’t exist
- How To Activate Plugins via Code?
- Disable plugin / plugin action via theme
- ‘Global’ settings page for multisite plugin
- Activate a plugin through PHPMyAdmin or FTP?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How can I use WordPress functions in my stylesheet?
- How do I show data from gravity forms in my template? [closed]
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- Creating a plugin with dependencies
- How can I make add_image_size() crop from the top?
- Implementing a CrunchBase.com Clone using WordPress?
- Difference between add_filter and apply_filters
- Add Google Analytics manually, or use a plug-in?
- How to enable suggested edits?
- Delete WordPress plugin Repository
- Disable email notification after change of password
- Custom pages with plugin
- How to change a user’s password programatically
- How to catch/what to do with a WP Error Object
- How can I see all the actions attached to an “add_action” hook?
- Proper Way to Modify Plugin
- wp.media.view.ImageDetails – Save settings as HTML5 data-* attributes for image
- Are WordPress Plugins essential?
- wordpress on localhost lamp doesn’t let me install plugins
- WP Rest API: details of latest post including featured media url in one request?
- Hide prices and checkout functionality in woocommerce
- Prompted for FTP details even with FS_DIRECT set to true
- what is the correct way to update a plugin via tortoise svn to the repository?