Skip to content

Commit

Permalink
Merge pull request #1 from thenextweb/master
Browse files Browse the repository at this point in the history
Bugfixes after the public release
  • Loading branch information
pabloroman committed Feb 26, 2012
2 parents 23f1d31 + c1cc0ad commit d479f58
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin.php
Expand Up @@ -6,7 +6,7 @@

global $tnwsc_config;

$postdata = wpv_postdata( file_get_contents('php://input') );
$postdata = $_POST;

// save posted settings
if( isset( $postdata['tnwsc_save'] ) ) {
Expand Down Expand Up @@ -59,7 +59,7 @@
<th scope="row"><label>Query the following services:</label></th>
<td>
<?php foreach($tnwsc_services as $service => $enabled) { ?>
<label><input type="checkbox" name="tnwsc_services" value="<?php echo $service; ?>" <?php echo $enabled?' checked="checked"':''?> /> <?php echo ucwords($service); ?> </label>
<label><input type="checkbox" name="tnwsc_services[]" value="<?php echo $service; ?>" <?php echo $enabled?' checked="checked"':''?> /> <?php echo ucwords($service); ?> </label>
<br />
<?php } ?>
</td>
Expand Down
2 changes: 1 addition & 1 deletion config.php
Expand Up @@ -17,6 +17,6 @@
'tnwsc_debug' => 1
);

$tnwsc_error_log_path = dirname( __FILE__)'./tnwsc.log';
$tnwsc_error_log_path = dirname( __FILE__).'./tnwsc.log';

?>
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -181,7 +181,7 @@ function tnwsc_schedule_sync( $immediate = false )
tnwsc_log( "tnwsc_schedule_sync() - Synching in ".$tnwsc_sync_frequency." seconds" );
wp_clear_scheduled_hook( $hook );
if ( $immediate ) {
tnwsc_process();
wp_schedule_single_event( time() -1, $hook );
} else {
//schedule the next sync in typical fashion
wp_schedule_single_event( time() + $tnwsc_sync_frequency, $hook );
Expand Down
9 changes: 9 additions & 0 deletions readme.txt
Expand Up @@ -7,3 +7,12 @@ Version: 1.0
Author: Pablo Román for The Next Web
Author URI: http://stijlfabriek.com


Installation:
After activating the plugin, just include the following snippet of code in your theme, wherever you want the button to appear:

<?php
if(function_exists('render_tnwsc_button')) {
echo render_tnwsc_button();
}
?>

0 comments on commit d479f58

Please sign in to comment.