Changeset 32965
- Timestamp:
- 06/27/2015 01:11:45 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r32778 r32965 435 435 if ( $parent ) // Do these all at once in a second 436 436 continue; 437 437 438 ob_start(); 438 wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $cat_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids )); 439 $data = ob_get_contents(); 440 ob_end_clean(); 439 440 wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $cat_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids )); 441 442 $data = ob_get_clean(); 443 441 444 $add = array( 442 445 'what' => $taxonomy->name, … … 459 462 460 463 ob_start(); 461 wp_terms_checklist( 0, array('taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids)); 462 $data = ob_get_contents(); 463 ob_end_clean(); 464 465 wp_terms_checklist( 0, array('taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids)); 466 467 $data = ob_get_clean(); 468 464 469 $add = array( 465 470 'what' => $taxonomy->name, … … 471 476 472 477 ob_start(); 473 wp_dropdown_categories( array( 474 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', 475 'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —' 476 ) ); 477 $sup = ob_get_contents(); 478 ob_end_clean(); 478 479 wp_dropdown_categories( array( 480 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', 481 'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —' 482 ) ); 483 484 $sup = ob_get_clean(); 485 479 486 $add['supplemental'] = array( 'newcat_parent' => $sup ); 480 487 … … 915 922 $wp_list_table->single_row( $comment ); 916 923 } 917 $comment_list_item = ob_get_contents(); 918 ob_end_clean(); 924 $comment_list_item = ob_get_clean(); 919 925 920 926 $x->add( array( -
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r32781 r32965 948 948 */ 949 949 public function footer() { 950 $output = ob_get_c ontents();950 $output = ob_get_clean(); 951 951 if ( ! empty( $output ) ) 952 952 $this->feedback( $output ); 953 ob_end_clean();954 953 } 955 954 } -
trunk/src/wp-admin/includes/plugin.php
r32927 r32965 772 772 $url = wp_nonce_url('plugins.php?action=delete-selected&verify-delete=1&' . implode('&', $checked), 'bulk-plugins'); 773 773 if ( false === ($credentials = request_filesystem_credentials($url)) ) { 774 $data = ob_get_c ontents();775 ob_end_clean(); 774 $data = ob_get_clean(); 775 776 776 if ( ! empty($data) ){ 777 777 include_once( ABSPATH . 'wp-admin/admin-header.php'); … … 785 785 if ( ! WP_Filesystem($credentials) ) { 786 786 request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again 787 $data = ob_get_c ontents();788 ob_end_clean(); 787 $data = ob_get_clean(); 788 789 789 if ( ! empty($data) ){ 790 790 include_once( ABSPATH . 'wp-admin/admin-header.php'); -
trunk/src/wp-admin/includes/theme.php
r32654 r32965 28 28 $redirect = wp_nonce_url('themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet); 29 29 if ( false === ($credentials = request_filesystem_credentials($redirect)) ) { 30 $data = ob_get_c ontents();31 ob_end_clean(); 30 $data = ob_get_clean(); 31 32 32 if ( ! empty($data) ){ 33 33 include_once( ABSPATH . 'wp-admin/admin-header.php'); … … 41 41 if ( ! WP_Filesystem($credentials) ) { 42 42 request_filesystem_credentials($redirect, '', true); // Failed to connect, Error and request again 43 $data = ob_get_c ontents();44 ob_end_clean(); 43 $data = ob_get_clean(); 44 45 45 if ( ! empty($data) ) { 46 46 include_once( ABSPATH . 'wp-admin/admin-header.php'); -
trunk/src/wp-includes/class-wp-customize-control.php
r32913 r32965 302 302 ob_start(); 303 303 $this->maybe_render(); 304 $template = trim( ob_get_contents() ); 305 ob_end_clean(); 306 return $template; 304 return trim( ob_get_clean() ); 307 305 } 308 306 -
trunk/src/wp-includes/class-wp-customize-panel.php
r32876 r32965 253 253 ob_start(); 254 254 $this->maybe_render(); 255 $template = trim( ob_get_contents() ); 256 ob_end_clean(); 257 return $template; 255 return trim( ob_get_clean() ); 258 256 } 259 257 -
trunk/src/wp-includes/class-wp-customize-section.php
r32877 r32965 270 270 ob_start(); 271 271 $this->maybe_render(); 272 $template = trim( ob_get_contents() ); 273 ob_end_clean(); 274 return $template; 272 return trim( ob_get_clean() ); 275 273 } 276 274
Note: See TracChangeset
for help on using the changeset viewer.