Changeset 28500
- Timestamp:
- 05/19/2014 05:03:44 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-activate.php
r28373 r28500 129 129 key_input && key_input.focus(); 130 130 </script> 131 <?php get_footer(); ?>131 <?php get_footer(); -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r28486 r28500 249 249 250 250 foreach ( $comment_types as $type => $label ) 251 echo "\t <option value='" . esc_attr( $type ) . "'". selected( $comment_type, $type, false ) . ">$label</option>\n";251 echo "\t" . '<option value="' . esc_attr( $type ) . '"' . selected( $comment_type, $type, false ) . ">$label</option>\n"; 252 252 ?> 253 253 </select> -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r28490 r28500 25 25 26 26 // Check if possible to use ftp functions. 27 if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) 28 return false; 27 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 28 return false; 29 } 29 30 $this->ftp = new ftp(); 30 31 -
trunk/src/wp-admin/includes/class-wp-list-table.php
r28497 r28500 422 422 ?> 423 423 <select name="m"> 424 <option<?php selected( $m, 0 ); ?> value= '0'><?php _e( 'All dates' ); ?></option>424 <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option> 425 425 <?php 426 426 foreach ( $months as $arc_row ) { -
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r28495 r28500 228 228 229 229 if ( is_wp_error($error) ) { 230 $messages = array(); 230 231 foreach ( $error->get_error_messages() as $emessage ) { 231 232 if ( $error->get_error_data() && is_string( $error->get_error_data() ) ) -
trunk/src/wp-admin/includes/export.php
r27048 r28500 442 442 <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> 443 443 </wp:postmeta> 444 <?php endforeach; ?> 445 <?php $comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); 444 <?php endforeach; 445 446 $comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); 446 447 foreach ( $comments as $c ) : ?> 447 448 <wp:comment> -
trunk/src/wp-admin/includes/list-table.php
r25254 r28500 85 85 */ 86 86 class _WP_List_Table_Compat extends WP_List_Table { 87 var$_screen;88 var$_columns;87 public $_screen; 88 public $_columns; 89 89 90 function _WP_List_Table_Compat( $screen, $columns = array() ) {90 public function _WP_List_Table_Compat( $screen, $columns = array() ) { 91 91 if ( is_string( $screen ) ) 92 92 $screen = convert_to_screen( $screen ); … … 100 100 } 101 101 102 function get_column_info() {102 public function get_column_info() { 103 103 $columns = get_column_headers( $this->_screen ); 104 104 $hidden = get_hidden_columns( $this->_screen ); … … 108 108 } 109 109 110 function get_columns() {110 public function get_columns() { 111 111 return $this->_columns; 112 112 } -
trunk/src/wp-admin/includes/menu.php
r27671 r28500 72 72 $_wp_menu_nopriv = array(); 73 73 // Loop over submenus and remove pages for which the user does not have privs. 74 foreach ( array( 'submenu' ) as $sub_loop ) { 75 foreach ($$sub_loop as $parent => $sub) { 76 foreach ($sub as $index => $data) { 77 if ( ! current_user_can($data[1]) ) { 78 unset(${$sub_loop}[$parent][$index]); 79 $_wp_submenu_nopriv[$parent][$data[2]] = true; 80 } 81 } 82 unset($index, $data); 83 84 if ( empty(${$sub_loop}[$parent]) ) 85 unset(${$sub_loop}[$parent]); 86 } 87 unset($sub, $parent); 88 } 89 unset($sub_loop); 74 foreach ($submenu as $parent => $sub) { 75 foreach ($sub as $index => $data) { 76 if ( ! current_user_can($data[1]) ) { 77 unset($submenu[$parent][$index]); 78 $_wp_submenu_nopriv[$parent][$data[2]] = true; 79 } 80 } 81 unset($index, $data); 82 83 if ( empty($submenu[$parent]) ) 84 unset($submenu[$parent]); 85 } 86 unset($sub, $parent); 90 87 91 88 /* -
trunk/src/wp-admin/includes/nav-menu.php
r28300 r28500 20 20 * @param array $args Not used. 21 21 */ 22 function start_lvl( &$output, $depth = 0, $args = array() ) {}22 public function start_lvl( &$output, $depth = 0, $args = array() ) {} 23 23 24 24 /** … … 33 33 * @param array $args Not used. 34 34 */ 35 function end_lvl( &$output, $depth = 0, $args = array() ) {}35 public function end_lvl( &$output, $depth = 0, $args = array() ) {} 36 36 37 37 /** … … 47 47 * @param int $id Not used. 48 48 */ 49 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {49 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 50 50 global $_wp_nav_menu_max_depth; 51 51 $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; … … 236 236 */ 237 237 class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { 238 function __construct( $fields = false ) {238 public function __construct( $fields = false ) { 239 239 if ( $fields ) { 240 240 $this->db_fields = $fields; … … 253 253 * @param array $args Not used. 254 254 */ 255 function start_lvl( &$output, $depth = 0, $args = array() ) {255 public function start_lvl( &$output, $depth = 0, $args = array() ) { 256 256 $indent = str_repeat( "\t", $depth ); 257 257 $output .= "\n$indent<ul class='children'>\n"; … … 269 269 * @param array $args Not used. 270 270 */ 271 function end_lvl( &$output, $depth = 0, $args = array() ) {271 public function end_lvl( &$output, $depth = 0, $args = array() ) { 272 272 $indent = str_repeat( "\t", $depth ); 273 273 $output .= "\n$indent</ul>"; … … 287 287 * @param int $id Not used. 288 288 */ 289 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {289 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 290 290 global $_nav_menu_placeholder; 291 291 -
trunk/src/wp-admin/includes/revision.php
r28264 r28500 127 127 128 128 $can_restore = current_user_can( 'edit_post', $post->ID ); 129 $current_id = false; 129 130 130 131 foreach ( $revisions as $revision ) { -
trunk/src/wp-admin/includes/screen.php
r28348 r28500 531 531 * @since 3.3.0 532 532 */ 533 function set_current_screen() {533 public function set_current_screen() { 534 534 global $current_screen, $taxnow, $typenow; 535 535 $current_screen = $this; … … 582 582 * @param string $help Help text. 583 583 */ 584 static function add_old_compat_help( $screen, $help ) {584 public static function add_old_compat_help( $screen, $help ) { 585 585 self::$_old_compat_help[ $screen->id ] = $help; 586 586 } … … 594 594 * @param string $parent_file The parent file of the screen. Typically the $parent_file global. 595 595 */ 596 function set_parentage( $parent_file ) {596 public function set_parentage( $parent_file ) { 597 597 $this->parent_file = $parent_file; 598 598 list( $this->parent_base ) = explode( '?', $parent_file ); … … 1090 1090 * @since 3.3.0 1091 1091 */ 1092 function render_screen_layout() {1092 public function render_screen_layout() { 1093 1093 if ( ! $this->get_option('layout_columns') ) 1094 1094 return; … … 1119 1119 * @since 3.3.0 1120 1120 */ 1121 function render_per_page_options() {1121 public function render_per_page_options() { 1122 1122 if ( ! $this->get_option( 'per_page' ) ) 1123 1123 return; -
trunk/src/wp-admin/includes/taxonomy.php
r28474 r28500 237 237 $tags = wp_get_post_terms($post_id, $taxonomy, array()); 238 238 239 if ( !$tags ) 239 if ( !$tags ) { 240 240 return false; 241 242 if ( is_wp_error($tags) ) 241 } 242 if ( is_wp_error($tags) ) { 243 243 return $tags; 244 245 foreach ( $tags as $tag ) 244 } 245 $tag_names = array(); 246 foreach ( $tags as $tag ) { 246 247 $tag_names[] = $tag->name; 247 $tags_to_edit = join( ',', $tag_names ); 248 $tags_to_edit = esc_attr( $tags_to_edit ); 248 } 249 250 $tags_to_edit = esc_attr( join( ',', $tag_names ) ); 249 251 250 252 /** -
trunk/src/wp-admin/includes/template.php
r28411 r28500 36 36 * @param array $args An array of arguments. @see wp_terms_checklist() 37 37 */ 38 function start_lvl( &$output, $depth = 0, $args = array() ) {38 public function start_lvl( &$output, $depth = 0, $args = array() ) { 39 39 $indent = str_repeat("\t", $depth); 40 40 $output .= "$indent<ul class='children'>\n"; … … 52 52 * @param array $args An array of arguments. @see wp_terms_checklist() 53 53 */ 54 function end_lvl( &$output, $depth = 0, $args = array() ) {54 public function end_lvl( &$output, $depth = 0, $args = array() ) { 55 55 $indent = str_repeat("\t", $depth); 56 56 $output .= "$indent</ul>\n"; … … 70 70 * @param int $id ID of the current term. 71 71 */ 72 function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {72 public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { 73 73 if ( empty( $args['taxonomy'] ) ) { 74 74 $taxonomy = 'category'; … … 107 107 * @param array $args An array of arguments. @see wp_terms_checklist() 108 108 */ 109 function end_el( &$output, $category, $depth = 0, $args = array() ) {109 public function end_el( &$output, $category, $depth = 0, $args = array() ) { 110 110 $output .= "</li>\n"; 111 111 } -
trunk/src/wp-admin/includes/update.php
r28479 r28500 75 75 return false; 76 76 77 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';77 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 78 78 79 79 $auto_update = false; -
trunk/src/wp-admin/includes/user.php
r27467 r28500 29 29 */ 30 30 function edit_user( $user_id = 0 ) { 31 global $wp_roles , $wpdb;31 global $wp_roles; 32 32 $user = new stdClass; 33 33 if ( $user_id ) { -
trunk/src/wp-admin/includes/widgets.php
r27324 r28500 13 13 */ 14 14 function wp_list_widgets() { 15 global $wp_registered_widgets, $ sidebars_widgets, $wp_registered_widget_controls;15 global $wp_registered_widgets, $wp_registered_widget_controls; 16 16 17 17 $sort = $wp_registered_widgets; -
trunk/src/wp-admin/media.php
r28497 r28500 15 15 wp_reset_vars(array('action')); 16 16 17 switch ( $action ) :17 switch ( $action ) { 18 18 case 'editattachment' : 19 19 $attachment_id = (int) $_POST['attachment_id']; … … 144 144 exit; 145 145 146 endswitch; 146 } -
trunk/src/wp-admin/network/upgrade.php
r27469 r28500 87 87 echo "</ul>"; 88 88 ?><p><?php _e( 'If your browser doesn’t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p> 89 <script type= 'text/javascript'>89 <script type="text/javascript"> 90 90 <!-- 91 91 function nextpage() { -
trunk/src/wp-admin/network/users.php
r28497 r28500 286 286 </form> 287 287 288 <form id="form-user-list" action= 'users.php?action=allusers' method='post'>288 <form id="form-user-list" action="users.php?action=allusers" method="post"> 289 289 <?php $wp_list_table->display(); ?> 290 290 </form> -
trunk/src/wp-admin/options.php
r28083 r28500 205 205 <?php wp_nonce_field('options-options') ?> 206 206 <input type="hidden" name="action" value="update" /> 207 <input type= 'hidden' name='option_page' value='options'/>207 <input type="hidden" name="option_page" value="options" /> 208 208 <table class="form-table"> 209 209 <?php -
trunk/src/wp-admin/revision.php
r27469 r28500 30 30 $redirect = 'edit.php'; 31 31 32 switch ( $action ) :32 switch ( $action ) { 33 33 case 'restore' : 34 34 if ( ! $revision = wp_get_post_revision( $revision_id ) ) … … 81 81 $redirect = false; 82 82 break; 83 endswitch; 83 } 84 84 85 85 // Empty post_type means either malformed object found, or no valid parent was found. -
trunk/src/wp-admin/theme-editor.php
r28313 r28500 122 122 } 123 123 124 ?> 125 <?php if ( isset( $_GET['updated'] ) ) : ?> 124 if ( isset( $_GET['updated'] ) ) : ?> 126 125 <div id="message" class="updated"><p><?php _e( 'File edited successfully.' ) ?></p></div> 127 126 <?php endif; -
trunk/src/wp-admin/themes.php
r27936 r28500 368 368 </script> 369 369 370 <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>370 <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); -
trunk/src/wp-admin/update-core.php
r28314 r28500 364 364 global $wp_filesystem; 365 365 366 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';366 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 367 367 368 368 if ( $reinstall ) … … 583 583 echo '<div class="wrap">'; 584 584 echo '<h2>' . esc_html__('Update Plugins') . '</h2>'; 585 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";585 echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>'; 586 586 echo '</div>'; 587 587 include(ABSPATH . 'wp-admin/admin-footer.php'); -
trunk/src/wp-admin/update.php
r28126 r28500 13 13 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 14 15 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 16 16 17 17 if ( isset($_GET['action']) ) { … … 96 96 wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) ); 97 97 98 include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api..98 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api.. 99 99 100 100 check_admin_referer('install-plugin_' . $plugin); … … 201 201 wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); 202 202 203 include_once ABSPATH . 'wp-admin/includes/theme-install.php'; //for themes_api..203 include_once( ABSPATH . 'wp-admin/includes/theme-install.php' ); //for themes_api.. 204 204 205 205 check_admin_referer( 'install-theme_' . $theme ); -
trunk/src/wp-admin/users.php
r28315 r28500 335 335 } 336 336 ?> 337 </ul> 337 338 <?php if ( $go_remove ) : ?> 338 339 <input type="hidden" name="action" value="doremove" /> -
trunk/src/wp-includes/update.php
r28479 r28500 460 460 */ 461 461 function wp_maybe_auto_update() { 462 include_once ABSPATH . '/wp-admin/includes/admin.php';463 include_once ABSPATH . '/wp-admin/includes/class-wp-upgrader.php';462 include_once( ABSPATH . '/wp-admin/includes/admin.php' ); 463 include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' ); 464 464 465 465 $upgrader = new WP_Automatic_Updater;
Note: See TracChangeset
for help on using the changeset viewer.