diff -urN wordpress/wp-admin/edit-link-form.php site/wp-admin/edit-link-form.php
|
old
|
new
|
|
| 14 | 14 | function xfn_check($class, $value = '', $deprecated = '') { |
| 15 | 15 | global $link; |
| 16 | 16 | |
| 17 | | $link_rel = $link->link_rel; |
| | 17 | $link_rel = @ $link->link_rel; |
| 18 | 18 | $rels = preg_split('/\s+/', $link_rel); |
| 19 | 19 | |
| 20 | 20 | if ('' != $value && in_array($value, $rels) ) { |
| … |
… |
|
| 92 | 92 | <div id="descriptiondiv" class="stuffbox"> |
| 93 | 93 | <h3><?php _e('Description') ?></h3> |
| 94 | 94 | <div class="inside"> |
| 95 | | <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br /> |
| | 95 | <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo @ $link->link_description; ?>" id="link_description" /><br /> |
| 96 | 96 | <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> |
| 97 | 97 | </div> |
| 98 | 98 | </div> |
| … |
… |
|
| 139 | 139 | <h3><?php _e('Target') ?></h3> |
| 140 | 140 | <div class="inside"> |
| 141 | 141 | <label for="link_target_blank" class="selectit"> |
| 142 | | <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> |
| | 142 | <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo((@ $link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> |
| 143 | 143 | <code>_blank</code></label><br /> |
| 144 | 144 | <label for="link_target_top" class="selectit"> |
| 145 | | <input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo(($link->link_target == '_top') ? 'checked="checked"' : ''); ?> /> |
| | 145 | <input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo((@ $link->link_target == '_top') ? 'checked="checked"' : ''); ?> /> |
| 146 | 146 | <code>_top</code></label><br /> |
| 147 | 147 | <label for="link_target_none" class="selectit"> |
| 148 | | <input id="link_target_none" type="radio" name="link_target" value="" <?php echo(($link->link_target == '') ? 'checked="checked"' : ''); ?> /> |
| | 148 | <input id="link_target_none" type="radio" name="link_target" value="" <?php echo((@ $link->link_target == '') ? 'checked="checked"' : ''); ?> /> |
| 149 | 149 | <?php _e('none') ?></label> |
| 150 | 150 | <p><?php _e('Choose the frame your link targets. Essentially this means if you choose <code>_blank</code> your link will open in a new window.'); ?></p> |
| 151 | 151 | </div> |
| … |
… |
|
| 157 | 157 | <table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> |
| 158 | 158 | <tr> |
| 159 | 159 | <th style="width: 20%;" scope="row"><?php _e('rel:') ?></th> |
| 160 | | <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td> |
| | 160 | <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo @ $link->link_rel; ?>" /></td> |
| 161 | 161 | </tr> |
| 162 | 162 | <tr> |
| 163 | 163 | <td colspan="2"> |
| … |
… |
|
| 270 | 270 | <table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5"> |
| 271 | 271 | <tr class="form-field"> |
| 272 | 272 | <th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> |
| 273 | | <td><input type="text" name="link_image" id="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> |
| | 273 | <td><input type="text" name="link_image" id="link_image" size="50" value="<?php echo @ $link->link_image; ?>" style="width: 95%" /></td> |
| 274 | 274 | </tr> |
| 275 | 275 | <tr class="form-field"> |
| 276 | 276 | <th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> |
| 277 | | <td><input name="link_rss" type="text" id="rss_uri" value="<?php echo $link->link_rss; ?>" size="50" style="width: 95%" /></td> |
| | 277 | <td><input name="link_rss" type="text" id="rss_uri" value="<?php echo @ $link->link_rss; ?>" size="50" style="width: 95%" /></td> |
| 278 | 278 | </tr> |
| 279 | 279 | <tr class="form-field"> |
| 280 | 280 | <th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th> |
| 281 | | <td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td> |
| | 281 | <td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo @ $link->link_notes; ?></textarea></td> |
| 282 | 282 | </tr> |
| 283 | 283 | <tr class="form-field"> |
| 284 | 284 | <th valign="top" scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th> |
| … |
… |
|
| 286 | 286 | <?php |
| 287 | 287 | for ($r = 0; $r < 10; $r++) { |
| 288 | 288 | echo(' <option value="'.$r.'" '); |
| 289 | | if ($link->link_rating == $r) |
| | 289 | if (isset($link->link_rating) && $link->link_rating == $r) |
| 290 | 290 | echo 'selected="selected"'; |
| 291 | 291 | echo('>'.$r.'</option>'); |
| 292 | 292 | } |
diff -urN wordpress/wp-admin/includes/bookmark.php site/wp-admin/includes/bookmark.php
|
old
|
new
|
|
| 13 | 13 | $_POST['link_name'] = wp_specialchars( $_POST['link_name'] ); |
| 14 | 14 | $_POST['link_image'] = wp_specialchars( $_POST['link_image'] ); |
| 15 | 15 | $_POST['link_rss'] = clean_url($_POST['link_rss']); |
| 16 | | if ( 'N' != $_POST['link_visible'] ) |
| | 16 | if ( 'N' != @ $_POST['link_visible'] ) |
| 17 | 17 | $_POST['link_visible'] = 'Y'; |
| 18 | 18 | |
| 19 | 19 | if ( !empty( $link_id ) ) { |
diff -urN wordpress/wp-admin/link-add.php site/wp-admin/link-add.php
|
old
|
new
|
|
| 18 | 18 | require('admin-header.php'); |
| 19 | 19 | ?> |
| 20 | 20 | |
| 21 | | <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?> |
| | 21 | <?php $get_added = @ $_GET['added']; if ($get_added && '' != @ $_POST['link_name']) : ?> |
| 22 | 22 | <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div> |
| 23 | 23 | <?php endif; ?> |
| 24 | 24 | |
diff -urN wordpress/wp-admin/link-manager.php site/wp-admin/link-manager.php
|
old
|
new
|
|
| 78 | 78 | <h2><?php printf( __( 'Manage Links (<a href="%s">add new</a>)' ), 'link-add.php' ); ?></h2> |
| 79 | 79 | |
| 80 | 80 | <p id="post-search"> |
| 81 | | <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> |
| | 81 | <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes( @ $_GET['s'] )); ?>" /> |
| 82 | 82 | <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" /> |
| 83 | 83 | </p> |
| 84 | 84 | |
| … |
… |
|
| 149 | 149 | </thead> |
| 150 | 150 | <tbody> |
| 151 | 151 | <?php |
| | 152 | $i = 0; |
| 152 | 153 | foreach ($links as $link) { |
| 153 | 154 | $link = sanitize_bookmark($link); |
| 154 | 155 | $link->link_name = attribute_escape($link->link_name); |
diff -urN wordpress/wp-admin/link.php site/wp-admin/link.php
|
old
|
new
|
|
| 6 | 6 | if ( ! current_user_can('manage_links') ) |
| 7 | 7 | wp_die( __('You do not have sufficient permissions to edit the links for this blog.') ); |
| 8 | 8 | |
| 9 | | if ('' != $_POST['deletebookmarks']) |
| | 9 | if ('' != @ $_POST['deletebookmarks']) |
| 10 | 10 | $action = 'deletebookmarks'; |
| 11 | | if ('' != $_POST['move']) |
| | 11 | if ('' != @ $_POST['move']) |
| 12 | 12 | $action = 'move'; |
| 13 | | if ('' != $_POST['linkcheck']) |
| 14 | | $linkcheck = $_POST[linkcheck]; |
| | 13 | if ('' != @ $_POST['linkcheck']) |
| | 14 | $linkcheck = @ $_POST['linkcheck']; |
| 15 | 15 | |
| 16 | 16 | $this_file = 'link-manager.php'; |
| 17 | 17 | |
diff -urN wordpress/wp-includes/bookmark.php site/wp-includes/bookmark.php
|
old
|
new
|
|
| 247 | 247 | if ( $do_object ) |
| 248 | 248 | $bookmark->$field = sanitize_bookmark_field($field, $bookmark->$field, $bookmark->link_id, $context); |
| 249 | 249 | else |
| 250 | | $bookmark[$field] = sanitize_bookmark_field($field, $bookmark[$field], $bookmark['link_id'], $context); |
| | 250 | $bookmark[$field] = sanitize_bookmark_field($field, @ $bookmark[$field], $bookmark['link_id'], $context); |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | return $bookmark; |