Permalink
Browse files

DG-1812 Twitter plugin fixes

  • Loading branch information...
1 parent 2679c98 commit 4768543bb8bf720a9974e093c8f2989252f60eb4 @alex-perfilov-reisys alex-perfilov-reisys committed Dec 19, 2013
View
@@ -0,0 +1,2 @@
+.idea
+.DS_Store
@@ -219,7 +219,7 @@ function user_sanitize( $text, $strict = false ) { // whitelisted chars
function sanitize_text( $text ) { // not fancy
$text = strip_tags($text);
- $text = wp_specialchars($text);
+ $text = esc_html($text);
$text = trim($text);
return $text;
}
@@ -471,9 +471,9 @@ function create_metric_content($cfo, $title, $ckan_id, $organizations, $parent_n
$last_entry = $body['result']['results'][0]['metadata_modified'];
// 2013-12-12T07:39:40.341322
- echo '---'.PHP_EOL;
- echo $url.PHP_EOL.PHP_EOL;
- echo 'metadata_modified '.$last_entry.PHP_EOL;
+// echo '---'.PHP_EOL;
+// echo $url.PHP_EOL.PHP_EOL;
+// echo 'metadata_modified '.$last_entry.PHP_EOL;
$last_entry = substr($last_entry, 0, 10);
// 2013-12-12
@@ -87,7 +87,7 @@
</h1>
<p class="section-intro">Follow us at @usdatagov</p>
<div class="twitter-feed">
- <?php echo do_shortcode( '[twitter-widget username="usdatagov" items="2" hidereplies="false" title=" " showintents="false" showretweets="true"]' ) ?>
+ <?php echo do_shortcode( '[twitter-widget username="usdatagov" items="3" hidereplies="false" title=" " showintents="false" showretweets="true"]' ) ?>
</div>
</div>
</section>

0 comments on commit 4768543

Please sign in to comment.