Skip to content

Commit

Permalink
Commit 1.3.1
Browse files Browse the repository at this point in the history
Fix error Strict standards: Only variables should be passed by
reference in ../wp-quick-install/index.php on line 10
  • Loading branch information
Jonathan Buttigieg committed Jul 11, 2014
1 parent 58c214a commit 5231854
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions 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.3.1
-----------

* Fix error for PHP > 5.5: Strict standards: Only variables should be passed by reference in ../wp-quick-install/index.php on line 10

1.3
-----------

Expand Down
2 changes: 1 addition & 1 deletion wp-quick-install/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ $(document).ready(function() {

// Let's create the wp-config.php file
function wp_config() {
$response.html("<p>File Creation For wp-config...</p>");
$response.html("<p>File Creation for wp-config...</p>");
$('.progress-bar').animate({width: "33%"});
$.post(window.location.href + '?action=wp_config', $('form').serialize(), function(data) {
install_wp();
Expand Down
18 changes: 10 additions & 8 deletions wp-quick-install/index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
set_time_limit(0);

define( 'WP_API_CORE', 'http://api.wordpress.org/core/version-check/1.7/?locale=' );
define( 'WPQI_CACHE_PATH', 'cache/' );
define( 'WPQI_CACHE_CORE_PATH', WPQI_CACHE_PATH . 'core/' );
define( 'WPQI_CACHE_PLUGINS_PATH', WPQI_CACHE_PATH . 'plugins/' );
define( 'WP_API_CORE' , 'http://api.wordpress.org/core/version-check/1.7/?locale=' );
define( 'WPQI_CACHE_PATH' , 'cache/' );
define( 'WPQI_CACHE_CORE_PATH' , WPQI_CACHE_PATH . 'core/' );
define( 'WPQI_CACHE_PLUGINS_PATH' , WPQI_CACHE_PATH . 'plugins/' );

// Force URL with index.php
if ( empty( $_GET ) && end( explode( '/' , trim($_SERVER['REQUEST_URI'], '/') ) ) == 'wp-quick-install' ) {
if ( empty( $_GET ) && end(( explode( '/' , trim($_SERVER['REQUEST_URI'], '/') ) )) == 'wp-quick-install' ) {
header( 'Location: index.php' );
}

Expand Down Expand Up @@ -535,7 +535,9 @@
file_put_contents( $directory . '.htaccess' , null );
flush_rewrite_rules();
}


echo '<div id="errors" class="alert alert-danger"><p style="margin:0;"><strong>' . _('Warning') . '</strong>: Don\'t forget to delete WP Quick Install folder.</p></div>';

// Link to the admin
echo '<a href="' . admin_url() . '" class="button" style="margin-right:5px;" target="_blank">'. _ ('Log In') .'</a>';
echo '<a href="' . home_url() . '" class="button" target="_blank">'. _ ('Go to website').'</a>';
Expand Down Expand Up @@ -630,7 +632,7 @@
<?php
// Get all available languages
$languages = json_decode( file_get_contents( 'http://api.wordpress.org/translations/core/1.0/?version=4.0' ) )->translations;

foreach ( $languages as $language ) {
echo '<option value="' . $language->language . '">' . $language->native_name . '</option>';
}
Expand Down Expand Up @@ -731,7 +733,7 @@

<h1><?php echo _('Permalinks Informations');?></h1>

<p><?php echo sprintf( _('By default WordPress uses web URLs which have question marks and lots of numbers in them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.'), 'http://codex.wordpress.org/Using_Permalinks'); ?></p>
<p><?php echo sprintf( _('By default WordPress uses web URLs which have question marks and lots of numbers in them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>.'), 'http://codex.wordpress.org/Using_Permalinks'); ?></p>

<table class="form-table">
<tr>
Expand Down

0 comments on commit 5231854

Please # to comment.