Skip to content

Commit

Permalink
Extra Braces in redirect function
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jan 16, 2018
1 parent 86f301a commit 0ac6e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/class-custom-permalinks-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function custom_permalinks_redirect() {
if ( ! $posts ) {
$def_query = apply_filters( 'custom_permalinks_like_query', '__false' );
if ( defined( 'POLYLANG_VERSION' ) || defined( 'AMP__VERSION' )
|| '__false' !== $def_query ) ) {
|| '__false' !== $def_query ) {
$sql = $wpdb->prepare( "SELECT p.ID, pm.meta_value, p.post_type, p.post_status FROM $wpdb->posts AS p " .
" LEFT JOIN $wpdb->postmeta AS pm ON (p.ID = pm.post_id) WHERE " .
" meta_key = 'custom_permalink' AND meta_value != '' AND " .
Expand Down

0 comments on commit 0ac6e9a

Please sign in to comment.