Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Oct 3, 2015
1 parent d96aeeb commit 3fea63f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions class-fw-extension-learning.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ public function get_previous_lesson( $lesson_id = null ) {
global $wpdb;

$result = $wpdb->get_results( $wpdb->prepare(
"SELECT * FROM wp_posts AS p " .
"SELECT * FROM {$wpdb->posts} AS p " .
"WHERE p.post_date < %s AND p.post_type = %s AND p.post_parent = %d AND p.post_status = 'publish' " .
"ORDER BY p.post_date DESC LIMIT 1",
$post->post_date,
Expand Down Expand Up @@ -790,7 +790,7 @@ public function get_next_lesson( $lesson_id ) {
global $wpdb;

$result = $wpdb->get_results( $wpdb->prepare(
"SELECT * FROM wp_posts AS p " .
"SELECT * FROM {$wpdb->posts} AS p " .
"WHERE p.post_date > %s AND p.post_type = %s AND p.post_parent = %d AND p.post_status = 'publish' " .
"ORDER BY p.post_date ASC LIMIT 1",
$post->post_date,
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.' Using this extension you can add courses, lessons and tests for your users to take.',
'fw'
);
$manifest['version'] = '1.0.8';
$manifest['version'] = '1.0.9';
$manifest['display'] = true;
$manifest['standalone'] = true;

Expand Down

0 comments on commit 3fea63f

Please sign in to comment.