Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DG-1812 Twitter plugin fixes

  • Loading branch information...
commit 4768543bb8bf720a9974e093c8f2989252f60eb4 1 parent 2679c98
@alex-perfilov-reisys alex-perfilov-reisys authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+.idea
+.DS_Store
View
2  plugins/custom-post-view-generator/parse-readme.php
@@ -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;
}
View
6 plugins/metric-count/metric-count.php
@@ -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
View
2  themes/roots-nextdatagov/templates/content-contactus.php
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.