Skip to content

Commit

Permalink
Merge pull request #361 from ogorzalka/patch-1
Browse files Browse the repository at this point in the history
Fix raw sql table post meta declaration
  • Loading branch information
Sidsector9 authored Jan 22, 2024
2 parents 5f789da + 01064cb commit 33d274f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ function srm_create_redirect( $redirect_from, $redirect_to, $status_code = 302,
FROM
$wpdb->postmeta AS fromMeta
LEFT JOIN
wp_postmeta AS toMeta ON fromMeta.post_id = toMeta.post_id AND toMeta.meta_key = %s
$wpdb->postmeta AS toMeta ON fromMeta.post_id = toMeta.post_id AND toMeta.meta_key = %s
LEFT JOIN
wp_postmeta AS statusCodeMeta ON fromMeta.post_id = statusCodeMeta.post_id AND statusCodeMeta.meta_key = %s
$wpdb->postmeta AS statusCodeMeta ON fromMeta.post_id = statusCodeMeta.post_id AND statusCodeMeta.meta_key = %s
LEFT JOIN
wp_postmeta AS fromRegexMeta ON fromMeta.post_id = fromRegexMeta.post_id AND fromRegexMeta.meta_key = %s
$wpdb->postmeta AS fromRegexMeta ON fromMeta.post_id = fromRegexMeta.post_id AND fromRegexMeta.meta_key = %s
LEFT JOIN
wp_postmeta AS notesMeta ON fromMeta.post_id = notesMeta.post_id AND notesMeta.meta_key = %s
$wpdb->postmeta AS notesMeta ON fromMeta.post_id = notesMeta.post_id AND notesMeta.meta_key = %s
WHERE
fromMeta.meta_key = %s AND fromMeta.meta_value = %s",
'_redirect_rule_to',
Expand Down

0 comments on commit 33d274f

Please sign in to comment.