Auto-updating WordPress from a local zip file
As so often, WP-CLI already has you covered: wp core update –version=3.8 ../latest.zip Have a look here for more details: http://wp-cli.org/commands/core/update/
As so often, WP-CLI already has you covered: wp core update –version=3.8 ../latest.zip Have a look here for more details: http://wp-cli.org/commands/core/update/
I think best way to do this is via actions and filters, like we extend WordPress core itself. Other options is like @helgatheviking pointed, if plugin is class you can extend it. Unfortunately not all plugin developers provide useful filters and actions with their code, most often plugin isn’t written in OOP manner. Only way … Read more
With a dynamic CMS like WordPress, there is no real way to “lock it down.” As the web evolves, formerly unknown security holes are discovered and patched in new versions. In reality, unless you’re always running the latest version of WordPress (currently 3.0.4), your site is in some way vulnerable. If you don’t intend to … Read more
How to hide WordPress update mesages CSS The low-tech way to hide something is using css: // Low-tech hiding of update-mesages // source: http://wpsnipp.com/index.php/functions-php/hide-update-nag-within-the-admin/ function remove_upgrade_nag() { echo ‘<style type=”text/css”> .update-nag {display: none} </style>’; } add_action(‘admin_head’, ‘remove_upgrade_nag’); This more-or-less works, but it is a lot of work to find al the places WordPress shows messages. … Read more
gear-solid**: Looking in the Source Code… Here’s the function from WP-DBManager Plugin that generates that error: function dbmanager_admin_notices() { $backup_options = get_option(‘dbmanager_options’); if(!@file_exists($backup_options[‘path’].’/.htaccess’)) { echo ‘<div class=”error” style=”text-align: center;”><p style=”color: red; font-size: 14px; font-weight: bold;”>’.__(‘Your backup folder MIGHT be visible to the public’, ‘wp-postratings’).'</p><p>’.sprintf(__(‘To correct this issue, move the <strong>.htaccess</strong> file from <strong>wp-content/plugins/wp-dbmanager</strong> to <strong>%s</strong>’, … Read more
@pwnguin, I had the same problems running mod_php with WordPress and I finally figured it out. # chown www-data:www-data /home/CIM140/public_html/wordpress/ -R As long as YOU control the box this won’t cause any security issues. EDIT: You might also need to change your umask to 022 so new directories created by WordPress will have 755 permissions … Read more
No, it doesn’t. You could hook into the appropriate filters and save the information in an option or in a custom post type. I would log updates to PHP, MySQL and the server software too. Would be an interesting project. 🙂
The function checks your version of WP for possible updates. It appears that there is a transient in the database named ‘update_core’, so it’s stored in the $wpdb->options table as ‘_site_transient_update_core’. The value of that transient is a serialized object that has information, I’m not an expert on wp_version_check, but it uses that transient to … Read more
How to disable core auto updates but enable plugins and themes auto updates If you want to stop the autoupdates of the WordPress core, but to enable them for your Plugins and/or Themes, you can add these lines in the wp-config.php file: Stop the core auto updates: define( ‘WP_AUTO_UPDATE_CORE’, false ); Then Enable the plugins/themes: … Read more
PHPMailer is not part of the plugin, it is shipped with WordPress. So it is up to WordPress to keep it up to date. There is a patch already in ticket #37210. In the mean time, you can create a mu-plugin, include the newer version of PHPMailer here, create an instance and assign it to … Read more