Changeset 12617 for trunk/wp-admin/ms-sites.php
- Timestamp:
- 01/07/2010 12:13:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-sites.php
r12610 r12617 82 82 <form method="post" action="wpmu-edit.php?action=updateblog"> 83 83 <?php wp_nonce_field('editblog'); ?> 84 <input type="hidden" name="id" value="<?php echo $id?>" />84 <input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" /> 85 85 <div class='metabox-holder' style='width:49%;float:left;'> 86 86 <div id="blogedit_bloginfo" class="postbox " > … … 94 94 <tr class="form-field form-required"> 95 95 <th scope="row"><?php _e('Path') ?></th> 96 <td><input name="blog[path]" type="text" id="path" value="<?php echo $details['path']?>" size="40" style='margin-bottom:5px;' />96 <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr($details['path']) ?>" size="40" style='margin-bottom:5px;' /> 97 97 <br /><input type='checkbox' style='width:20px;' name='update_home_url' value='update' <?php if( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) ) echo 'checked="checked"'; ?> /> <?php _e( "Update 'siteurl' and 'home' as well." ); ?></td> 98 98 </tr> 99 99 <tr class="form-field"> 100 100 <th scope="row"><?php _e('Registered') ?></th> 101 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo $details['registered']?>" size="40" /></td>101 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr($details['registered']) ?>" size="40" /></td> 102 102 </tr> 103 103 <tr class="form-field"> 104 104 <th scope="row"><?php _e('Last Updated') ?></th> 105 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo $details['last_updated']?>" size="40" /></td>105 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr($details['last_updated']) ?>" size="40" /></td> 106 106 </tr> 107 107 <tr class="form-field"> … … 141 141 </tr> 142 142 </table> 143 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e ('Update Options »') ?>" /></p>143 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _esc_attr_e('Update Options »') ?>" /></p> 144 144 </div></div> 145 145 … … 174 174 <tr class="form-field"> 175 175 <th scope="row"><?php echo ucwords( str_replace( "_", " ", $val['option_name'] ) ) ?></th> 176 <td><input name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>" value="<?php echo wp_specialchars( stripslashes( $val['option_value'] ), 1 ) ?>" size="40" <?php echo $disabled ?> /></td>176 <td><input name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>" value="<?php echo esc_attr( stripslashes( $val['option_value'] ), 1 ) ?>" size="40" <?php echo $disabled ?> /></td> 177 177 </tr> 178 178 <?php … … 181 181 ?> 182 182 </table> 183 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>183 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options »') ?>" /></p> 184 184 </div></div> 185 185 </div> … … 215 215 <?php echo $out; ?> 216 216 </table> 217 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>217 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options »') ?>" /></p> 218 218 </div></div> 219 219 <?php } ?> … … 241 241 $name = translate_with_context($role_assoc['name']); 242 242 $selected = ( $role == $existing_role ) ? 'selected="selected"' : ''; 243 echo "<option {$selected} value=\" {$role}\">{$name}</option>";243 echo "<option {$selected} value=\"" . esc_attr($role) . "\">{$name}</option>"; 244 244 } 245 245 ?> … … 257 257 } 258 258 echo "</table>"; 259 echo '<p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="' . __('Update Options »') . '" /></p>';259 echo '<p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="' . esc_attr__('Update Options »') . '" /></p>'; 260 260 echo "</div></div>"; 261 261 } … … 280 280 $name = translate_with_context($role_assoc['name']); 281 281 $selected = ( $role == $editblog_default_role ) ? 'selected="selected"' : ''; 282 echo "<option {$selected} value=\" {$role}\">{$name}</option>";282 echo "<option {$selected} value=\"" . esc_attr($role) . "\">{$name}</option>"; 283 283 } 284 284 ?> … … 287 287 </tr> 288 288 </table> 289 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>289 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options »') ?>" /></p> 290 290 </div></div> 291 291 … … 296 296 <?php do_action( 'wpmueditblogaction', $id ); ?> 297 297 </table> 298 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>298 <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options »') ?>" /></p> 299 299 </div></div> 300 300 … … 372 372 <form action="wpmu-blogs.php" method="get" id="wpmu-search"> 373 373 <input type="hidden" name="action" value="blogs" /> 374 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( wp_specialchars( $s, 1 ) ); ?>" size="17" />375 <input type="submit" class="button" name="blog_name" value="<?php _e('Search blogs by name') ?>" />376 <input type="submit" class="button" name="blog_id" value="<?php _e('by blog ID') ?>" />377 <input type="submit" class="button" name="blog_ip" value="<?php _e('by IP address') ?>" />374 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( esc_attr( $s, 1 ) ); ?>" size="17" /> 375 <input type="submit" class="button" name="blog_name" value="<?php esc_attr_e('Search blogs by name') ?>" /> 376 <input type="submit" class="button" name="blog_id" value="<?php esc_attr_e('by blog ID') ?>" /> 377 <input type="submit" class="button" name="blog_ip" value="<?php esc_attr_e('by IP address') ?>" /> 378 378 </form> 379 379 … … 384 384 385 385 <div class="alignleft"> 386 <input type="submit" value="<?php _e('Delete') ?>" name="allblog_delete" class="button-secondary delete" />387 <input type="submit" value="<?php _e('Mark as Spam') ?>" name="allblog_spam" class="button-secondary" />388 <input type="submit" value="<?php _e('Not Spam') ?>" name="allblog_notspam" class="button-secondary" />386 <input type="submit" value="<?php esc_attr_e('Delete') ?>" name="allblog_delete" class="button-secondary delete" /> 387 <input type="submit" value="<?php esc_attr_e('Mark as Spam') ?>" name="allblog_spam" class="button-secondary" /> 388 <input type="submit" value="<?php esc_attr_e('Not Spam') ?>" name="allblog_notspam" class="button-secondary" /> 389 389 <?php wp_nonce_field( 'allblogs' ); ?> 390 390 <br class="clear" /> … … 461 461 case 'id': ?> 462 462 <th scope="row" class="check-column"> 463 <input type='checkbox' id='blog_<?php echo $blog['blog_id'] ?>' name='allblogs[]' value='<?php echo $blog['blog_id']?>' />463 <input type='checkbox' id='blog_<?php echo $blog['blog_id'] ?>' name='allblogs[]' value='<?php echo esc_attr($blog['blog_id']) ?>' /> 464 464 </th> 465 465 <th scope="row"> … … 607 607 </table> 608 608 <p class="submit"> 609 <input class="button" type="submit" name="go" value="<?php _e('Add Blog') ?>" /></p>609 <input class="button" type="submit" name="go" value="<?php esc_attr_e('Add Blog') ?>" /></p> 610 610 </form> 611 611 </div>
Note: See TracChangeset
for help on using the changeset viewer.