iclanzan / backup Goto Github PK
View Code? Open in Web Editor NEWA WordPress backup plugin.
A WordPress backup plugin.
When version 2.0.1 will get into the main repository of Wordpress?
Maybe include a version check?
Here is an example of such a check:
<?php
function check_version() {
global $wp_version;
$plugin = plugin_basename( __FILE__ );
$plugin_data = get_plugin_data( __FILE__, false );
if ( version_compare($wp_version, "3.0", "<" ) ) {
if( is_plugin_active($plugin) ) {
deactivate_plugins( $plugin );
wp_die( "'".$plugin_data['Name']."' requires WordPress 3.0 or higher! Deactivating Plugin.<br /><br />Back to <a href='".admin_url()."'>WordPress admin</a>." );
}
}
}
add_action( 'admin_init', 'check_version' );
Maybe it makes sense to change "A WordPress backup plugin." to something more meaningful (e.g. "Plugin Backup. Allows you to make backup copies of the Wordpress website in Google Drive and locally")?
<?php
function always_flush() {
if( !isset( $this->$flushed ) ) {
// All this is needed in order that every echo gets sent to the browser.
// Code taken from php.net user contributed notes.
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
@ini_set('implicit_flush', 1);
wp_ob_end_flush_all();
ob_implicit_flush(1);
$this->flushed = true;
}
}
I am interested in such a way to output error messages:
<?php
/**
* trigger_error()
*
* @param string $error_msg
* @param boolean $fatal_error | catched a fatal error - when we exit, then we can't go further than this point
* @param unknown_type $error_type
* @return void
*/
function error( $error_msg, $fatal_error = false, $error_type = E_USER_ERROR ) {
if( isset( $_GET['action'] ) && 'error_scrape' == $_GET['action'] ) {
echo "{$error_msg}\n";
if ( $fatal_error )
exit;
}
else {
trigger_error( $error_msg, $error_type );
}
}
For the 2.1 branch should make a new screenshot. Because that in the 2.1 branch, has appeared new Metabox Action
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.