PluginProbe
FeedWordPress / 2010.0531
FeedWordPress v2010.0531
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 | admin-ui.php +19 -11 2010.01272010.0531 View file →
@@ -51,9 +51,9 @@
51 51
52 52 /*static*/ function submitted_link () {
53 53 $link_id = FeedWordPressAdminPage::submitted_link_id();
54 54 if (is_numeric($link_id) and $link_id) :
55 - $link =& new SyndicatedLink($link_id);
55 + $link = new SyndicatedLink($link_id);
56 56 else :
57 57 $link = NULL;
58 58 endif;
59 59 return $link;
@@ -61,9 +61,9 @@
61 61
62 62 function stamp_link_id ($field = null) {
63 63 if (is_null($field)) : $field = 'save_link_id'; endif;
64 64 ?>
65 - <input type="hidden" name="<?php print wp_specialchars($field, 'both'); ?>" value="<?php print ($this->for_feed_settings() ? $this->link->id : '*'); ?>" />
65 + <input type="hidden" name="<?php print esc_html($field); ?>" value="<?php print ($this->for_feed_settings() ? $this->link->id : '*'); ?>" />
66 66 <?php
67 67 } /* FeedWordPressAdminPage::stamp_link_id () */
68 68
69 69 function these_posts_phrase () {
@@ -132,10 +132,10 @@
132 132 min-width: 130px;
133 133 position:relative;
134 134 }
135 135 .fwpfs {
136 - color: #dddddd;
137 - background:#797979 url(<?php bloginfo('home') ?>/wp-admin/images/fav.png) repeat-x scroll left center;
136 + color: #dddddd !important; background-color: #333 !important;
137 + background:#797979 url(<?php bloginfo('url') ?>/wp-admin/images/fav.png) repeat-x scroll left center;
138 138 border-color:#777777 #777777 #666666 !important; -moz-border-radius-bottomleft:12px;
139 139 -moz-border-radius-bottomright:12px;
140 140 -moz-border-radius-topleft:12px;
141 141 -moz-border-radius-topright:12px;
@@ -149,9 +149,9 @@
149 149 -moz-border-radius-bottomleft:0;
150 150 -moz-border-radius-bottomright:0;
151 151 -moz-border-radius-topleft:12px;
152 152 -moz-border-radius-topright:12px;
153 - background-image:url(<?php bloginfo('home') ?>/wp-admin/images/fav-top.png);
153 + background-image:url(<?php bloginfo('url') ?>/wp-admin/images/fav-top.png);
154 154 background-position:0 top;
155 155 background-repeat:repeat-x;
156 156 border-bottom-style:solid;
157 157 border-bottom-width:1px;
@@ -178,9 +178,9 @@
178 178 <p id="post-search">
179 179 <select name="link_id" class="fwpfs" style="max-width: 20.0em;">
180 180 <option value="*"<?php if ($this->for_default_settings()) : ?> selected="selected"<?php endif; ?>>- defaults for all feeds -</option>
181 181 <?php if ($links) : foreach ($links as $ddlink) : ?>
182 - <option value="<?php print (int) $ddlink->link_id; ?>"<?php if (!is_null($this->link) and ($this->link->id==$ddlink->link_id)) : ?> selected="selected"<?php endif; ?>><?php print wp_specialchars($ddlink->link_name, 1); ?></option>
182 + <option value="<?php print (int) $ddlink->link_id; ?>"<?php if (!is_null($this->link) and ($this->link->id==$ddlink->link_id)) : ?> selected="selected"<?php endif; ?>><?php print esc_html($ddlink->link_name); ?></option>
183 183 <?php endforeach; endif; ?>
184 184 </select>
185 185 <input class="button" type="submit" name="go" value="<?php _e('Go') ?> &raquo;" />
186 186 </p>
@@ -189,14 +189,14 @@
189 189
190 190 function display_sheet_header ($pagename = 'Syndication', $all = false) {
191 191 if (FeedWordPressCompatibility::test_version(FWP_SCHEMA_27)) :
192 192 ?>
193 - <div class="icon32"><img src="<?php print wp_specialchars(WP_PLUGIN_URL.'/'.$GLOBALS['fwp_path'].'/feedwordpress.png', 1); ?>" alt="" /></div>
193 + <div class="icon32"><img src="<?php print esc_html(WP_PLUGIN_URL.'/'.$GLOBALS['fwp_path'].'/feedwordpress.png'); ?>" alt="" /></div>
194 194 <?php
195 195 endif;
196 196 ?>
197 197
198 - <h2><?php print wp_specialchars(__($pagename.($all ? '' : ' Settings')), 1); ?><?php if ($this->for_feed_settings()) : ?>: <?php echo wp_specialchars($this->link->link->link_name, 1); ?><?php endif; ?></h2>
198 + <h2><?php print esc_html(__($pagename.($all ? '' : ' Settings'))); ?><?php if ($this->for_feed_settings()) : ?>: <?php echo esc_html($this->link->link->link_name); ?><?php endif; ?></h2>
199 199 <?php
200 200 }
201 201
202 202 function display_update_notice_if_updated ($pagename = 'Syndication', $mesg = NULL) {
@@ -210,9 +210,9 @@
210 210
211 211 if (!is_null($mesg)) :
212 212 ?>
213 213 <div class="updated">
214 - <p><?php print wp_specialchars($mesg, 1); ?></p>
214 + <p><?php print esc_html($mesg); ?></p>
215 215 </div>
216 216 <?php
217 217 endif;
218 218 } /* FeedWordPressAdminPage::display_update_notice_if_updated() */
@@ -220,9 +220,9 @@
220 220 function display_settings_scope_message () {
221 221 if ($this->for_feed_settings()) :
222 222 ?>
223 223 <p>These settings only affect posts syndicated from
224 - <strong><?php echo wp_specialchars($this->link->link->link_name, 1); ?></strong>.</p>
224 + <strong><?php echo esc_html($this->link->link->link_name); ?></strong>.</p>
225 225 <?php
226 226 else :
227 227 ?>
228 228 <p>These settings affect posts syndicated from any feed unless they are overridden
@@ -507,9 +507,17 @@
507 507 .$feed['link/uri']."\">".$feed['link/uri']."</a>&gt; ...";
508 508 flush();
509 509 }
510 510 function update_feeds_finish ($feed, $added, $dt) {
511 - echo " completed in $dt second".(($dt==1)?'':'s')."</li>\n";
511 + if (is_wp_error($added)) :
512 + $mesgs = $added->get_error_messages();
513 + foreach ($mesgs as $mesg) :
514 + echo "<br/><strong>Feed error:</strong> <code>$mesg</code>";
515 + endforeach;
516 + echo "</li>\n";
517 + else :
518 + echo " completed in $dt second".(($dt==1)?'':'s')."</li>\n";
519 + endif;
512 520 }
513 521
514 522 function fwp_author_list () {
515 523 global $wpdb;