Skip to content

Commit

Permalink
commit 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Buttigieg committed Jan 8, 2015
1 parent 2c945fb commit f2fddcb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Simply download the .zip archive et go to *wp-quick-install/index.php*
Changelog
================

1.4
-----------
* Fix database issue since WordPress 4.1
* You can add your WordPress.com API Key

1.3.3
-----------

Expand Down Expand Up @@ -63,7 +68,7 @@ Changelog
* You can enable extension after installation
* Auto supression of Hello Dolly extension
* You can add a theme and enable it
* PYou can delete Twenty Elever and Twenty Ten
* You can delete Twenty Elever and Twenty Ten

1.2.6
-----------
Expand Down
4 changes: 4 additions & 0 deletions wp-quick-install/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ $(document).ready(function() {
$('#debug').removeAttr('checked');
}
}

if ( typeof data.wp_config.wpcom_api_key !='undefined' ) {
$('#wpcom_api_key').val(data.wp_config.wpcom_api_key);
}

}

Expand Down
1 change: 1 addition & 0 deletions wp-quick-install/data.ini
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
;wp_config['disallow_file_edit'] = 1
;wp_config['autosave_interval'] = 7200
;wp_config['debug'] = 1
;wp_config['wpcom_api_key'] =


;;;;
Expand Down
19 changes: 16 additions & 3 deletions wp-quick-install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Author: Jonathan Buttigieg
Contributors: Julio Potier
Script URI: http://wp-quick-install.com
Version: 1.3.1
Version: 1.3.4
Licence: GPLv3
Last Update: 11 jul 14
Last Update: 08 jan 15
*/

@set_time_limit( 0 );
Expand Down Expand Up @@ -212,6 +212,11 @@
$line .= "\r\n\n " . "/** Intervalle des sauvegardes automatique */" . "\r\n";
$line .= "define('AUTOSAVE_INTERVAL', " . (int) $_POST['autosave_interval'] . ");";
}

if ( ! empty( $_POST['wpcom_api_key'] ) ) {
$line .= "\r\n\n " . "/** WordPress.com API Key */" . "\r\n";
$line .= "define('WPCOM_API_KEY', " . $_POST['wpcom_api_key'] . ");";
}

$line .= "\r\n\n " . "/** On augmente la mémoire limite */" . "\r\n";
$line .= "define('WP_MEMORY_LIMIT', '96M');" . "\r\n";
Expand Down Expand Up @@ -264,6 +269,8 @@
/* Let's install WordPress database
/*--------------------------*/

define( 'WP_INSTALLING', true );

/** Load WordPress Bootstrap */
require_once( $directory . 'wp-load.php' );

Expand Down Expand Up @@ -737,7 +744,7 @@
<p><?php echo _('The extension slug is available in the url (Ex: http://wordpress.org/extend/plugins/<strong>wordpress-seo</strong>)');?></p>
</th>
<td>
<input name="plugins" type="text" id="plugins" size="50" value="" />
<input name="plugins" type="text" id="plugins" size="50" value="wp-website-monitoring; rocket-lazy-load" />
<p><?php echo _('Make sure that the extensions slugs are separated by a semicolon (;).');?></p>
</td>
</tr>
Expand Down Expand Up @@ -858,6 +865,12 @@
</div>
</td>
</tr>
<tr>
<th scope="row">
<label for="wpcom_api_key"><?php echo _('WP.com API Key');?></label>
</th>
<td><input name="wpcom_api_key" id="wpcom_api_key" type="text" size="25" value="" /></td>
</tr>
</table>
<p class="step"><span id="submit" class="button button-large"><?php echo _('Install WordPress');?></span></p>

Expand Down

0 comments on commit f2fddcb

Please sign in to comment.