Skip to content

Commit

Permalink
merge changes from pro 3.31 release
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed May 3, 2016
1 parent b8e1ad9 commit 253896c
Show file tree
Hide file tree
Showing 29 changed files with 904 additions and 1,042 deletions.
24 changes: 13 additions & 11 deletions assets/css/backwpup.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,24 +200,26 @@
#wpfooter #footer-right {
overflow: hidden;
}
#wpfooter .mp_logo {
background: url('../images/mp_logo_small.png') no-repeat;
display: block;
float: left;
#wpfooter .inpsyde_logo {
background: url('../images/inpsyde.png') no-repeat;
display: inline-block;
margin-top: 5px;
margin-right: 15px;
line-height: 26px;
width: 145px;
line-height: 25px;
height: 25px;
width: 80px;
text-indent: -9999em;
}
#wpfooter .inpsyde_logo:active {
text-decoration: none;
}
#wpfooter #footer-left .backwpup-get-pro {
display: block;
float: left;
line-height: 36px;
margin-right: 15px;
display: inline-block;
line-height: 25px;
}
#wpfooter #footer-upgrade .backwpup-update-footer {
display: block;
line-height: 36px;
line-height: 25px;
}
#wpfooter #footer-left #footer-thankyou {
clear: both;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/backwpup.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified assets/images/inpsyde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/mp_logo_small.png
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/js/general.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 9 additions & 25 deletions backwpup.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* Plugin Name: BackWPup
* Plugin URI: https://marketpress.com/product/backwpup-pro/
* Plugin URI: http://backwpup.com
* Description: WordPress Backup Plugin
* Author: Inpsyde GmbH
* Author URI: http://inpsyde.com
* Version: 3.3.1-alpha
* Version: 3.3.1
* Text Domain: backwpup
* Domain Path: /languages/
* Network: true
Expand Down Expand Up @@ -138,43 +138,27 @@ public static function get_plugin_data( $name = NULL ) {
if ( empty( self::$plugin_data ) ) {
self::$plugin_data = get_file_data( __FILE__, array(
'name' => 'Plugin Name',
'pluginuri' => 'Plugin URI',
'version' => 'Version',
'description' => 'Description',
'author' => 'Author',
'authoruri' => 'Author URI',
'textdomain' => 'Text Domain',
'domainpath' => 'Domain Path',
'license' => 'License',
'licenseuri' => 'License URI'
'version' => 'Version'
), 'plugin' );
//Translate some vars
self::$plugin_data[ 'name' ] = trim( self::$plugin_data[ 'name' ] );
self::$plugin_data[ 'pluginuri' ] = trim( self::$plugin_data[ 'pluginuri' ] );
self::$plugin_data[ 'description' ] = trim( self::$plugin_data[ 'description' ] );
self::$plugin_data[ 'author' ] = trim( self::$plugin_data[ 'author' ] );
self::$plugin_data[ 'authoruri' ] = trim( self::$plugin_data[ 'authoruri' ] );
//set some extra vars
self::$plugin_data[ 'basename' ] = plugin_basename( dirname( __FILE__ ) );
self::$plugin_data[ 'mainfile' ] = __FILE__ ;
self::$plugin_data[ 'plugindir' ] = untrailingslashit( dirname( __FILE__ ) ) ;
self::$plugin_data[ 'hash' ] = get_site_option( 'backwpup_cfg_hash' );
if ( empty( self::$plugin_data[ 'hash' ] ) || strlen( self::$plugin_data[ 'hash' ] ) < 6 || strlen( self::$plugin_data[ 'hash' ] ) > 12 ) {
update_site_option( 'backwpup_cfg_hash', substr( md5( md5( BackWPup::get_plugin_data( "mainfile" ) ) ), 14, 6 ) );
self::$plugin_data[ 'hash' ] = get_site_option( 'backwpup_cfg_hash' );
self::$plugin_data[ 'hash' ] = substr( md5( md5( __FILE__ ) ), 14, 6 );
update_site_option( 'backwpup_cfg_hash', self::$plugin_data[ 'hash' ] );
}
if ( defined( 'WP_TEMP_DIR' ) && is_dir( WP_TEMP_DIR ) ) {
self::$plugin_data[ 'temp' ] = trailingslashit( untrailingslashit( str_replace( '\\', '/', WP_TEMP_DIR ) ) . '/backwpup-' . self::$plugin_data[ 'hash' ] );
self::$plugin_data['temp'] = str_replace( '\\', '/', get_temp_dir() ) . 'backwpup-' . self::$plugin_data['hash'] . '/';
} else {
$upload_dir = wp_upload_dir();
self::$plugin_data[ 'temp' ] = trailingslashit( untrailingslashit( str_replace( '\\', '/', $upload_dir[ 'basedir' ] ) ) . '/backwpup-' . self::$plugin_data[ 'hash' ] . '-temp' );
$upload_dir = wp_upload_dir();
self::$plugin_data['temp'] = str_replace( '\\', '/', $upload_dir['basedir'] ) . '/backwpup-' . self::$plugin_data['hash'] . '-temp/';
}
self::$plugin_data[ 'running_file' ] = self::$plugin_data[ 'temp' ] . 'backwpup-working.php';
self::$plugin_data[ 'url' ] = plugins_url( '', __FILE__ );
self::$plugin_data[ 'cacert' ] = FALSE;
if ( file_exists( self::$plugin_data[ 'plugindir' ] . '/vendor/Guzzle/Http/Resources/cacert.pem' ) )
self::$plugin_data[ 'cacert' ] = self::$plugin_data[ 'plugindir' ] . '/vendor/Guzzle/Http/Resources/cacert.pem';
self::$plugin_data[ 'cacert' ] = apply_filters( 'backwpup_cacert_bundle', self::$plugin_data[ 'cacert' ] );
self::$plugin_data[ 'cacert' ] = apply_filters( 'backwpup_cacert_bundle', ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
//get unmodified WP Versions
include ABSPATH . WPINC . '/version.php';
/** @var $wp_version string */
Expand Down
Loading

3 comments on commit 253896c

@pedro-mendonca
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @danielhuesken

Why include translation to strings like __( 'http://inpsyde.com', 'backwpup' ) ?
These don't need translation, and appearing in the strings list they contribute to increase the not translated percentage, and if more than 5% could stop the cycle of language packs updates in the wordpress.org repo. By the way, I can't find it on the repo to translate, or even the pro version translate.marketpress.com!
These new links could be just 'http://inpsyde.com' without the gettext code.

Regards

@danielhuesken
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pedro-mendonca,

it is only the simple way to switch between .com and .de in conjunction of the translation. So a translator can select the best domain for the translation.

For translate.marketpress.com you can use http://translate.inpsyde.com/ what i hope will come this day.

@pedro-mendonca
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so I'll keep it as the original .com for pt_PT translation.
Thank you for your anwser.

Please sign in to comment.