Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Formatting Filters / Use FeedWordPressLocalPost methods to determine …

…whether or not to bypass WordPress formatting filters.
  • Loading branch information...
commit 47072fd88dbc25d555417f5dc19cbee2ee2cb9fa 1 parent b24782d
Charles Johnson authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 feedwordpress.php
View
8 feedwordpress.php
@@ -127,6 +127,7 @@
require_once("${dir}/feedwordpress_parser.class.php");
require_once("${dir}/feedwordpressrpc.class.php");
require_once("${dir}/feedwordpresshttpauthenticator.class.php");
+require_once("${dir}/feedwordpresslocalpost.class.php");
// Magic quotes are just about the stupidest thing ever.
if (is_array($_POST)) :
@@ -472,11 +473,8 @@ function the_local_permalink ($id = NULL) {
function feedwordpress_preserve_syndicated_content ($text) {
global $feedwordpress_the_syndicated_content;
- $globalExpose = (get_option('feedwordpress_formatting_filters') == 'yes');
- $localExpose = get_post_custom_values('_feedwordpress_formatting_filters');
- $expose = ($globalExpose or ((count($localExpose) > 0) and $localExpose[0]));
-
- if ( is_syndicated() and !$expose ) :
+ $p = new FeedWordPressLocalPost;
+ if (!$p->is_exposed_to_formatting_filters()) :
$feedwordpress_the_syndicated_content = $text;
else :
$feedwordpress_the_syndicated_content = NULL;
Please sign in to comment.
Something went wrong with that request. Please try again.