PluginProbe
FeedWordPress / 2017.0913
FeedWordPress v2017.0913
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | syndicatedpostterm.class.php +7 -7 trunk2017.0913 View file →
@@ -20,9 +20,9 @@
20 20 $tax = $catTax;
21 21 endif;
22 22
23 23 $aTerm = get_term($cat_id, $tax);
24 - if ( !is_wp_error($aTerm) and !! $aTerm) :
24 + if (!is_wp_error($aTerm) and !!$aTerm) :
25 25 $this->exists = (array) $aTerm;
26 26 $this->exists_in = $this->exists['taxonomy'];
27 27
28 28 $this->term = $this->exists['name'];
@@ -53,9 +53,9 @@
53 53 'Assigned category '.json_encode($this->term)
54 54 .' by feed; checking '.json_encode($this->tax)
55 55 . ' with result: '.json_encode($ex)
56 56 );
57 - return ( !is_wp_error($ex) and !! $ex);
57 + return (!is_wp_error($ex) and !!$ex);
58 58 } /* SyndicatedPostTerm::familiar () */
59 59
60 60 protected function search () {
61 61
@@ -70,9 +70,9 @@
70 70 // either case, loop through and check each pair of term
71 71
72 72 foreach ($this->tax as $tax) :
73 73
74 - if ( ! $this->is_forbidden_in($tax)) :
74 + if (!$this->is_forbidden_in($tax)) :
75 75
76 76 $found = $this->fetch_record_in($tax);
77 77 if ($found) :
78 78 // When TRUE, the term has been found
@@ -109,9 +109,9 @@
109 109 .json_encode($this->term)
110 110 .' with result: '.json_encode($record)
111 111 );
112 112
113 - $found = ( !is_wp_error($record) and !! $record);
113 + $found = (!is_wp_error($record) and !!$record);
114 114
115 115 if ($found) :
116 116 $this->exists = $record;
117 117 endif;
@@ -175,18 +175,18 @@
175 175 $tax = $this->tax[0];
176 176 endif;
177 177 endif;
178 178
179 - if ( ! $this->is_forbidden_in($tax)) :
179 + if (!$this->is_forbidden_in($tax)) :
180 180 $aTerm = wp_insert_term($this->term, $tax);
181 181 if (is_wp_error($aTerm)) :
182 182
183 183 // If debug mode is ON, this will halt us here.
184 - FeedWordPressDiagnostic::noncritical_bug(
184 + FeedWordPress::noncritical_bug(
185 185 'term insertion problem', array(
186 186 'term' => $this->term,
187 187 'result' => $aTerm,
188 - 'post' => $this->post,
188 + 'post' => $post,
189 189 'this' => $this
190 190 ), __LINE__, __FILE__
191 191 );
192 192