Changeset 9053
- Timestamp:
- 10/02/08 01:03:26 (2 months ago)
- Files:
-
- trunk/wp-admin/includes/bookmark.php (modified) (7 diffs)
- trunk/wp-admin/includes/file.php (modified) (16 diffs)
- trunk/wp-admin/includes/image.php (modified) (1 diff)
- trunk/wp-admin/includes/import.php (modified) (3 diffs)
- trunk/wp-admin/includes/media.php (modified) (41 diffs)
- trunk/wp-admin/includes/misc.php (modified) (14 diffs)
- trunk/wp-admin/includes/post.php (modified) (29 diffs)
- trunk/wp-admin/includes/schema.php (modified) (10 diffs)
- trunk/wp-admin/includes/taxonomy.php (modified) (10 diffs)
- trunk/wp-admin/includes/template.php (modified) (60 diffs)
- trunk/wp-admin/includes/theme.php (modified) (3 diffs)
- trunk/wp-admin/includes/update-core.php (modified) (3 diffs)
- trunk/wp-admin/includes/upgrade.php (modified) (38 diffs)
- trunk/wp-admin/includes/user.php (modified) (17 diffs)
- trunk/wp-admin/includes/widgets.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/bookmark.php
r8758 r9053 1 1 <?php 2 2 /** 3 * WordPress Bookmark Administration API 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** 10 * {@internal Missing Short Description}} 11 * 12 * @since unknown 13 * 14 * @return unknown 15 */ 3 16 function add_link() { 4 17 return edit_link(); 5 18 } 6 19 20 /** 21 * {@internal Missing Short Description}} 22 * 23 * @since unknown 24 * 25 * @param unknown_type $link_id 26 * @return unknown 27 */ 7 28 function edit_link( $link_id = '' ) { 8 29 if (!current_user_can( 'manage_links' )) … … 25 46 } 26 47 48 /** 49 * {@internal Missing Short Description}} 50 * 51 * @since unknown 52 * 53 * @return unknown 54 */ 27 55 function get_default_link_to_edit() { 28 56 if ( isset( $_GET['linkurl'] ) ) … … 41 69 } 42 70 71 /** 72 * {@internal Missing Short Description}} 73 * 74 * @since unknown 75 * 76 * @param unknown_type $link_id 77 * @return unknown 78 */ 43 79 function wp_delete_link($link_id) { 44 80 global $wpdb; … … 57 93 } 58 94 95 /** 96 * {@internal Missing Short Description}} 97 * 98 * @since unknown 99 * 100 * @param unknown_type $link_id 101 * @return unknown 102 */ 59 103 function wp_get_link_cats($link_id = 0) { 60 104 … … 64 108 } 65 109 110 /** 111 * {@internal Missing Short Description}} 112 * 113 * @since unknown 114 * 115 * @param unknown_type $link_id 116 * @return unknown 117 */ 66 118 function get_link_to_edit( $link_id ) { 67 119 return get_bookmark( $link_id, OBJECT, 'edit' ); 68 120 } 69 121 122 /** 123 * {@internal Missing Short Description}} 124 * 125 * @since unknown 126 * 127 * @param unknown_type $linkdata 128 * @return unknown 129 */ 70 130 function wp_insert_link($linkdata, $wp_error = false) { 71 131 global $wpdb, $current_user; … … 155 215 } 156 216 217 /** 218 * {@internal Missing Short Description}} 219 * 220 * @since unknown 221 * 222 * @param unknown_type $link_id 223 * @param unknown_type $link_categories 224 */ 157 225 function wp_set_link_cats($link_id = 0, $link_categories = array()) { 158 226 // If $link_categories isn't already an array, make it one: … … 168 236 } // wp_set_link_cats() 169 237 238 /** 239 * {@internal Missing Short Description}} 240 * 241 * @since unknown 242 * 243 * @param unknown_type $linkdata 244 * @return unknown 245 */ 170 246 function wp_update_link($linkdata) { 171 247 $link_id = (int) $linkdata['link_id']; trunk/wp-admin/includes/file.php
r8880 r9053 1 1 <?php 2 2 /** 3 * File contains all the administration image manipulation functions. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** The descriptions for theme files. */ 3 10 $wp_file_descriptions = array ( 4 11 'index.php' => __( 'Main Index Template' ), 5 12 'style.css' => __( 'Stylesheet' ), 6 'rtl.css' => __( 'RTL Stylesheet' ), 7 'comments.php' => __( 'Comments' ), 8 'comments-popup.php' => __( 'Popup Comments' ), 9 'footer.php' => __( 'Footer' ), 10 'header.php' => __( 'Header' ), 13 'rtl.css' => __( 'RTL Stylesheet' ), 14 'comments.php' => __( 'Comments' ), 15 'comments-popup.php' => __( 'Popup Comments' ), 16 'footer.php' => __( 'Footer' ), 17 'header.php' => __( 'Header' ), 11 18 'sidebar.php' => __( 'Sidebar' ), 12 19 'archive.php' => __( 'Archives' ), … … 28 35 // Deprecated files 29 36 'wp-layout.css' => __( 'Stylesheet' ), 'wp-comments.php' => __( 'Comments Template' ), 'wp-comments-popup.php' => __( 'Popup Comments Template' )); 37 38 /** 39 * {@internal Missing Short Description}} 40 * 41 * @since unknown 42 * 43 * @param unknown_type $file 44 * @return unknown 45 */ 30 46 function get_file_description( $file ) { 31 47 global $wp_file_descriptions; … … 43 59 } 44 60 61 /** 62 * {@internal Missing Short Description}} 63 * 64 * @since unknown 65 * 66 * @return unknown 67 */ 45 68 function get_home_path() { 46 69 $home = get_option( 'home' ); … … 57 80 } 58 81 82 /** 83 * {@internal Missing Short Description}} 84 * 85 * @since unknown 86 * 87 * @param unknown_type $file 88 * @return unknown 89 */ 59 90 function get_real_file_to_edit( $file ) { 60 91 if ('index.php' == $file || '.htaccess' == $file ) { … … 66 97 return $real_file; 67 98 } 68 //$folder = Full path to folder 69 //$levels = Levels of folders to follow, Default: 100 (PHP Loop limit) 99 100 /** 101 * {@internal Missing Short Description}} 102 * 103 * @since unknown 104 * 105 * @param string $folder Optional. Full path to folder 106 * @param int $levels Optional. Levels of folders to follow, Default: 100 (PHP Loop limit). 107 * @return bool|array 108 */ 70 109 function list_files( $folder = '', $levels = 100 ) { 71 110 if( empty($folder) ) … … 95 134 } 96 135 136 /** 137 * {@internal Missing Short Description}} 138 * 139 * @since unknown 140 * 141 * @return unknown 142 */ 97 143 function get_temp_dir() { 98 144 if ( defined('WP_TEMP_DIR') ) … … 109 155 } 110 156 157 /** 158 * {@internal Missing Short Description}} 159 * 160 * @since unknown 161 * 162 * @param unknown_type $filename 163 * @param unknown_type $dir 164 * @return unknown 165 */ 111 166 function wp_tempnam($filename = '', $dir = ''){ 112 167 if ( empty($dir) ) … … 121 176 } 122 177 178 /** 179 * {@internal Missing Short Description}} 180 * 181 * @since unknown 182 * 183 * @param unknown_type $file 184 * @param unknown_type $allowed_files 185 * @return unknown 186 */ 123 187 function validate_file_to_edit( $file, $allowed_files = '' ) { 124 188 $file = stripslashes( $file ); … … 141 205 } 142 206 143 // array wp_handle_upload ( array &file [, array overrides] ) 144 // file: reference to a single element of $_FILES. Call the function once for each uploaded file. 145 // overrides: an associative array of names=>values to override default variables with extract( $overrides, EXTR_OVERWRITE ). 146 // On success, returns an associative array of file attributes. 147 // On failure, returns $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). 207 /** 208 * {@internal Missing Short Description}} 209 * 210 * @since unknown 211 * 212 * @param array $file Reference to a single element of $_FILES. Call the function once for each uploaded file. 213 * @param array $overrides Optional. An associative array of names=>values to override default variables with extract( $overrides, EXTR_OVERWRITE ). 214 * @return array On success, returns an associative array of file attributes. On failure, returns $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). 215 */ 148 216 function wp_handle_upload( &$file, $overrides = false ) { 149 217 // The default error handler. … … 237 305 return $return; 238 306 } 239 // Pass this function an array similar to that of a $_FILES POST array. 307 308 /** 309 * {@internal Missing Short Description}} 310 * 311 * Pass this function an array similar to that of a $_FILES POST array. 312 * 313 * @since unknown 314 * 315 * @param unknown_type $file 316 * @param unknown_type $overrides 317 * @return unknown 318 */ 240 319 function wp_handle_sideload( &$file, $overrides = false ) { 241 320 // The default error handler. … … 335 414 336 415 /** 337 * Downloads a url to a local file using the Snoopy HTTP Class 338 * 339 * @param string $url the URL of the file to download 340 * @return mixed WP_Error on failure, string Filename on success. 341 */ 416 * Downloads a url to a local file using the Snoopy HTTP Class. 417 * 418 * @since unknown 419 * @todo Transition over to using the new HTTP Request API (jacob). 420 * 421 * @param string $url the URL of the file to download 422 * @return mixed WP_Error on failure, string Filename on success. 423 */ 342 424 function download_url( $url ) { 343 425 //WARNING: The file is not automatically deleted, The script must unlink() the file. … … 368 450 } 369 451 452 /** 453 * {@internal Missing Short Description}} 454 * 455 * @since unknown 456 * 457 * @param unknown_type $file 458 * @param unknown_type $to 459 * @return unknown 460 */ 370 461 function unzip_file($file, $to) { 371 462 global $wp_filesystem; … … 428 519 } 429 520 521 /** 522 * {@internal Missing Short Description}} 523 * 524 * @since unknown 525 * 526 * @param unknown_type $from 527 * @param unknown_type $to 528 * @return unknown 529 */ 430 530 function copy_dir($from, $to) { 431 531 global $wp_filesystem; … … 453 553 } 454 554 555 /** 556 * {@internal Missing Short Description}} 557 * 558 * @since unknown 559 * 560 * @param unknown_type $args 561 * @return unknown 562 */ 455 563 function WP_Filesystem( $args = false ) { 456 564 global $wp_filesystem; … … 481 589 } 482 590 591 /** 592 * {@internal Missing Short Description}} 593 * 594 * @since unknown 595 * 596 * @param unknown_type $args 597 * @return unknown 598 */ 483 599 function get_filesystem_method($args = array()) { 484 600 $method = false; … … 496 612 } 497 613 614 /** 615 * {@internal Missing Short Description}} 616 * 617 * @since unknown 618 * 619 * @param unknown_type $form_post 620 * @param unknown_type $type 621 * @param unknown_type $error 622 * @return unknown 623 */ 498 624 function request_filesystem_credentials($form_post, $type = '', $error = false) { 499 625 $req_cred = apply_filters('request_filesystem_credentials', '', $form_post, $type, $error); trunk/wp-admin/includes/image.php
r8912 r9053 222 222 223 223 /** 224 * Get extended image metadata, exif or iptc as available 224 * Get extended image metadata, exif or iptc as available. 225 225 * 226 226 * @since unknown trunk/wp-admin/includes/import.php
r6477 r9053 1 1 <?php 2 /** 3 * WordPress Administration Importer API. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 2 8 9 /** 10 * {@internal Missing Short Description}} 11 * 12 * @since unknown 13 * 14 * @return unknown 15 */ 3 16 function get_importers() { 4 17 global $wp_importers; … … 8 21 } 9 22 23 /** 24 * {@internal Missing Short Description}} 25 * 26 * @since unknown 27 * 28 * @param unknown_type $id 29 * @param unknown_type $name 30 * @param unknown_type $description 31 * @param unknown_type $callback 32 * @return unknown 33 */ 10 34 function register_importer( $id, $name, $description, $callback ) { 11 35 global $wp_importers; … … 15 39 } 16 40 41 /** 42 * {@internal Missing Short Description}} 43 * 44 * @since unknown 45 * 46 * @param unknown_type $id 47 */ 17 48 function wp_import_cleanup( $id ) { 18 49 wp_delete_attachment( $id ); 19 50 } 20 51 52 /** 53 * {@internal Missing Short Description}} 54 * 55 * @since unknown 56 * 57 * @return unknown 58 */ 21 59 function wp_import_handle_upload() { 22 60 $overrides = array( 'test_form' => false, 'test_type' => false ); trunk/wp-admin/includes/media.php
r9014 r9053 1 1 <?php 2 2 /** 3 * WordPress Administration Media API. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** 10 * {@internal Missing Short Description}} 11 * 12 * @since unknown 13 * 14 * @return unknown 15 */ 3 16 function media_upload_tabs() { 4 17 $_default_tabs = array( … … 11 24 } 12 25 26 /** 27 * {@internal Missing Short Description}} 28 * 29 * @since unknown 30 * 31 * @param unknown_type $tabs 32 * @return unknown 33 */ 13 34 function update_gallery_tab($tabs) { 14 35 global $wpdb; … … 26 47 add_filter('media_upload_tabs', 'update_gallery_tab'); 27 48 49 /** 50 * {@internal Missing Short Description}} 51 * 52 * @since unknown 53 */ 28 54 function the_media_upload_tabs() { 29 55 global $redir_tab; … … 52 78 } 53 79 80 /** 81 * {@internal Missing Short Description}} 82 * 83 * @since unknown 84 * 85 * @param unknown_type $id 86 * @param unknown_type $alt 87 * @param unknown_type $title 88 * @param unknown_type $align 89 * @param unknown_type $url 90 * @param unknown_type $rel 91 * @param unknown_type $size 92 * @return unknown 93 */ 54 94 function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = false, $size='medium') { 55 95 … … 66 106 } 67 107 108 /** 109 * {@internal Missing Short Description}} 110 * 111 * @since unknown 112 * 113 * @param unknown_type $html 114 * @param unknown_type $id 115 * @param unknown_type $alt 116 * @param unknown_type $title 117 * @param unknown_type $align 118 * @param unknown_type $url 119 * @param unknown_type $size 120 * @return unknown 121 */ 68 122 function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) { 69 123 … … 85 139 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 7 ); 86 140 141 /** 142 * {@internal Missing Short Description}} 143 * 144 * @since unknown 145 * 146 * @param unknown_type $html 147 */ 87 148 function media_send_to_editor($html) { 88 ?>149 ?> 89 150 <script type="text/javascript"> 90 151 /* <![CDATA[ */ … … 97 158 } 98 159 99 // this handles the file upload POST itself, creating the attachment post 160 /** 161 * {@internal Missing Short Description}} 162 * 163 * This handles the file upload POST itself, creating the attachment post. 164 * 165 * @since unknown 166 * 167 * @param unknown_type $file_id 168 * @param unknown_type $post_id 169 * @param unknown_type $post_data 170 * @return unknown 171 */ 100 172 function media_handle_upload($file_id, $post_id, $post_data = array()) { 101 173 $overrides = array('test_form'=>false); … … 138 210 } 139 211 212 /** 213 * {@internal Missing Short Description}} 214 * 215 * @since unknown 216 * 217 * @param unknown_type $file_array 218 * @param unknown_type $post_id 219 * @param unknown_type $desc 220 * @param unknown_type $post_data 221 * @return unknown 222 */ 140 223 function media_handle_sideload($file_array, $post_id, $desc = null, $post_data = array()) { 141 224 $overrides = array('test_form'=>false); … … 179 262 } 180 263 181 182 // wrap iframe content (produced by $content_func) in a doctype, html head/body etc 183 // any additional function args will be passed to content_func 264 /** 265 * {@internal Missing Short Description}} 266 * 267 * Wrap iframe content (produced by $content_func) in a doctype, html head/body 268 * etc any additional function args will be passed to content_func. 269 * 270 * @since unknown 271 * 272 * @param unknown_type $content_func 273 */ 184 274 function wp_iframe($content_func /* ... */) { 185 275 ?> … … 221 311 } 222 312 313 /** 314 * {@internal Missing Short Description}} 315 * 316 * @since unknown 317 */ 223 318 function media_buttons() { 224 319 global $post_ID, $temp_ID; … … 246 341 add_action('media_upload_media', 'media_upload_handler'); 247 342 343 /** 344 * {@internal Missing Short Description}} 345 * 346 * @since unknown 347 * 348 * @return unknown 349 */ 248 350 function media_upload_form_handler() { 249 351 check_admin_referer('media-form'); … … 295 397 } 296 398 399 /** 400 * {@internal Missing Short Description}} 401 * 402 * @since unknown 403 * 404 * @return unknown 405 */ 297 406 function media_upload_image() { 298 407 $errors = array(); … … 340 449 } 341 450 451 /** 452 * {@internal Missing Short Description}} 453 * 454 * @since unknown 455 * 456 * @param unknown_type $file 457 * @param unknown_type $post_id 458 * @param unknown_type $desc 459 * @return unknown 460 */ 342 461 function media_sideload_image($file, $post_id, $desc = null) { 343 462 if (!empty($file) ) { … … 368 487 } 369 488 489 /** 490 * {@internal Missing Short Description}} 491 * 492 * @since unknown 493 * 494 * @return unknown 495 */ 370 496 function media_upload_audio() { 371 497 $errors = array(); … … 411 537 } 412 538 539 /** 540 * {@internal Missing Short Description}} 541 * 542 * @since unknown 543 * 544 * @return unknown 545 */ 413 546 function media_upload_video() { 414 547 $errors = array(); … … 454 587 } 455 588 589 /** 590 * {@internal Missing Short Description}} 591 * 592 * @since unknown 593 * 594 * @return unknown 595 */ 456 596 function media_upload_file() { 457 597 $errors = array(); … … 497 637 } 498 638 639 /** 640 * {@internal Missing Short Description}} 641 * 642 * @since unknown 643 * 644 * @return unknown 645 */ 499 646 function media_upload_gallery() { 500 647 $errors = array(); … … 513 660 } 514 661 662 /** 663 * {@internal Missing Short Description}} 664 * 665 * @since unknown 666 * 667 * @return unknown 668 */ 515 669 function media_upload_library() { 516 670 $errors = array(); … … 528 682 529 683 // produce HTML for the image alignment radio buttons with the specified one checked 684 /** 685 * {@internal Missing Short Description}} 686 * 687 * @since unknown 688 * 689 * @param unknown_type $post 690 * @param unknown_type $checked 691 * @return unknown 692 */ 530 693 function image_align_input_fields($post, $checked='') { 531 694 … … 545 708 546 709 // produce HTML for the size radio buttons with the specified one checked 710 /** 711 * {@internal Missing Short Description}} 712 * 713 * @since unknown 714 * 715 * @param unknown_type $post 716 * @param unknown_type $checked 717 * @return unknown 718 */ 547 719 function image_size_input_fields($post, $checked='') { 548 720 … … 583 755 584 756 // produce HTML for the Link URL buttons with the default link type as specified 757 /** 758 * {@internal Missing Short Description}} 759 * 760 * @since unknown 761 * 762 * @param unknown_type $post 763 * @param unknown_type $url_type 764 * @return unknown 765 */ 585 766 function image_link_input_fields($post, $url_type='') { 586 767 … … 603 784 } 604 785 786 /** 787 * {@internal Missing Short Description}} 788 * 789 * @since unknown 790 * 791 * @param unknown_type $form_fields 792 * @param unknown_type $post 793 * @return unknown 794 */ 605 795 function image_attachment_fields_to_edit($form_fields, $post) { 606 796 if ( substr($post->post_mime_type, 0, 5) == 'image' ) { … … 625 815 add_filter('attachment_fields_to_edit', 'image_attachment_fields_to_edit', 10, 2); 626 816 817 /** 818 * {@internal Missing Short Description}} 819 * 820 * @since unknown 821 * 822 * @param unknown_type $form_fields 823 * @param unknown_type $post 824 * @return unknown 825 */ 627 826 function media_single_attachment_fields_to_edit( $form_fields, $post ) { 628 827 unset($form_fields['url'], $form_fields['align'], $form_fields['image-size']); … … 630 829 } 631 830 831 /** 832 * {@internal Missing Short Description}} 833 * 834 * @since unknown 835 * 836 * @param unknown_type $post 837 * @param unknown_type $attachment 838 * @return unknown 839 */ 632 840 function image_attachment_fields_to_save($post, $attachment) { 633 841 if ( substr($post['post_mime_type'], 0, 5) == 'image' ) { … … 643 851 add_filter('attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2); 644 852 853 /** 854 * {@internal Missing Short Description}} 855 * 856 * @since unknown 857 * 858 * @param unknown_type $html 859 * @param unknown_type $attachment_id 860 * @param unknown_type $attachment 861 * @return unknown 862 */ 645 863 function image_media_send_to_editor($html, $attachment_id, $attachment) { 646 864 $post =& get_post($attachment_id); … … 668 886 add_filter('media_send_to_editor', 'image_media_send_to_editor', 10, 3); 669 887 888 /** 889 * {@internal Missing Short Description}} 890 * 891 * @since unknown 892 * 893 * @param unknown_type $post 894 * @param unknown_type $errors 895 * @return unknown 896 */ 670 897 function get_attachment_fields_to_edit($post, $errors = null) { 671 898 if ( is_int($post) ) … … 733 960 } 734 961 962 /** 963 * {@internal Missing Short Description}} 964 * 965 * @since unknown 966 * 967 * @param unknown_type $post_id 968 * @param unknown_type $errors 969 * @return unknown 970 */ 735 971 function get_media_items( $post_id, $errors ) { 736 972 if ( $post_id ) { … … 756 992 } 757 993 994 /** 995 * {@internal Missing Short Description}} 996 * 997 * @since unknown 998 * 999 * @param unknown_type $attachment_id 1000 * @param unknown_type $args 1001 * @return unknown 1002 */ 758 1003 function get_media_item( $attachment_id, $args = null ) { 759 1004 global $redir_tab; … … 920 1165 } 921 1166 1167 /** 1168 * {@internal Missing Short Description}} 1169 * 1170 * @since unknown 1171 */ 922 1172 function media_upload_header() { 923 1173 ?> … … 929 1179 } 930 1180 1181 /** 1182 * {@internal Missing Short Description}} 1183 * 1184 * @since unknown 1185 * 1186 * @param unknown_type $errors 1187 */ 931 1188 function media_upload_form( $errors = null ) { 932 1189 global $type, $tab; … … 1018 1275 } 1019 1276 1277 /** 1278 * {@internal Missing Short Description}} 1279 * 1280 * @since unknown 1281 * 1282 * @param unknown_type $type 1283 * @param unknown_type $errors 1284 * @param unknown_type $id 1285 */ 1020 1286 function media_upload_type_form($type = 'file', $errors = null, $id = null) { 1021 1287 media_upload_header(); … … 1145 1411 } 1146 1412 1413 /** 1414 * {@internal Missing Short Description}} 1415 * 1416 * @since unknown 1417 * 1418 * @param unknown_type $errors 1419 */ 1147 1420 function media_upload_gallery_form($errors) { 1148 1421 global $redir_tab; … … 1190 1463 } 1191 1464 1465 /** 1466 * {@internal Missing Short Description}} 1467 * 1468 * @since unknown 1469 * 1470 * @param unknown_type $errors 1471 */ 1192 1472 function media_upload_library_form($errors) { 1193 1473 global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types; … … 1336 1616 } 1337 1617 1618 /** 1619 * {@internal Missing Short Description}} 1620 * 1621 * @since unknown 1622 * 1623 * @return unknown 1624 */ 1338 1625 function type_form_image() { 1339 1626 … … 1412 1699 } 1413 1700 1701 /** 1702 * {@internal Missing Short Description}} 1703 * 1704 * @since unknown 1705 * 1706 * @return unknown 1707 */ 1414 1708 function type_form_audio() { 1415 1709 return ' … … 1440 1734 } 1441 1735 1736 /** 1737 * {@internal Missing Short Description}} 1738 * 1739 * @since unknown 1740 * 1741 * @return unknown 1742 */ 1442 1743 function type_form_video() { 1443 1744 return ' … … 1468 1769 } 1469 1770 1771 /** 1772 * {@internal Missing Short Description}} 1773 * 1774 * @since unknown 1775 * 1776 * @return unknown 1777 */ 1470 1778 function type_form_file() { 1471 1779 return ' … … 1497 1805 1498 1806 // support a GET parameter for disabling the flash uploader 1807 /** 1808 * {@internal Missing Short Description}} 1809 * 1810 * @since unknown 1811 * 1812 * @param unknown_type $flash 1813 * @return unknown 1814 */ 1499 1815 function media_upload_use_flash($flash) { 1500 1816 if ( array_key_exists('flash', $_REQUEST) ) … … 1505 1821 add_filter('flash_uploader', 'media_upload_use_flash'); 1506 1822 1823 /** 1824 * {@internal Missing Short Description}} 1825 * 1826 * @since unknown 1827 */ 1507 1828 function media_upload_flash_bypass() { 1508 1829 echo '<p class="upload-flash-bypass">'; … … 1513 1834 add_action('post-flash-upload-ui', 'media_upload_flash_bypass'); 1514 1835 1836 /** 1837 * {@internal Missing Short Description}} 1838 * 1839 * @since unknown 1840 */ 1515 1841 function media_upload_html_bypass() { 1516 1842 echo '<p class="upload-html-bypass">'; … … 1529 1855 1530 1856 // make sure the GET parameter sticks when we submit a form 1857 /** 1858 * {@internal Missing Short Description}} 1859 * 1860 * @since unknown 1861 * 1862 * @param unknown_type $url 1863 * @return unknown 1864 */ 1531 1865 function media_upload_bypass_url($url) { 1532 1866 if ( array_key_exists('flash', $_REQUEST) ) trunk/wp-admin/includes/misc.php
r8802 r9053 1 1 <?php 2 2 /** 3 * Misc WordPress Administration API. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** 10 * {@internal Missing Short Description}} 11 * 12 * @since unknown 13 * 14 * @return unknown 15 */ 3 16 function got_mod_rewrite() { 4 17 $got_rewrite = apache_mod_loaded('mod_rewrite', true); … … 6 19 } 7 20 8 // Returns an array of strings from a file (.htaccess ) from between BEGIN 9 // and END markers. 21 /** 22 * {@internal Missing Short Description}} 23 * 24 * @since unknown 25 * 26 * @param unknown_type $filename 27 * @param unknown_type $marker 28 * @return array An array of strings from a file (.htaccess ) from between BEGIN and END markers. 29 */ 10 30 function extract_from_markers( $filename, $marker ) { 11 31 $result = array (); … … 31 51 } 32 52 33 // Inserts an array of strings into a file (.htaccess ), placing it between 34 // BEGIN and END markers. Replaces existing marked info. Retains surrounding 35 // data. Creates file if none exists. 36 // Returns true on write success, false on failure. 53 /** 54 * {@internal Missing Short Description}} 55 * 56 * Inserts an array of strings into a file (.htaccess ), placing it between 57 * BEGIN and END markers. Replaces existing marked info. Retains surrounding 58 * data. Creates file if none exists. 59 * 60 * @since unknown 61 * 62 * @param unknown_type $filename 63 * @param unknown_type $marker 64 * @param unknown_type $insertion 65 * @return bool True on write success, false on failure. 66 */ 37 67 function insert_with_markers( $filename, $marker, $insertion ) { 38 68 if (!file_exists( $filename ) || is_writeable( $filename ) ) { … … 83 113 * Updates the htaccess file with the current rules if it is writable. 84 114 * 85 * Always writes to the file if it exists and is writable to ensure that we blank out old rules. 86 */ 87 115 * Always writes to the file if it exists and is writable to ensure that we 116 * blank out old rules. 117 * 118 * @since unknown 119 */ 88 120 function save_mod_rewrite_rules() { 89 121 global $wp_rewrite; … … 104 136 } 105 137 138 /** 139 * {@internal Missing Short Description}} 140 * 141 * @since unknown 142 * 143 * @param unknown_type $file 144 */ 106 145 function update_recently_edited( $file ) { 107 146 $oldfiles = (array ) get_option( 'recently_edited' ); … … 119 158 } 120 159 121 // If siteurl or home changed, flush rewrite rules. 160 /** 161 * If siteurl or home changed, flush rewrite rules. 162 * 163 * @since unknown 164 * 165 * @param unknown_type $old_value 166 * @param unknown_type $value 167 */ 122 168 function update_home_siteurl( $old_value, $value ) { 123 169 global $wp_rewrite; … … 133 179 add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 ); 134 180 181 /** 182 * {@internal Missing Short Description}} 183 * 184 * @since unknown 185 * 186 * @param unknown_type $url 187 * @return unknown 188 */ 135 189 function url_shorten( $url ) { 136 190 $short_url = str_replace( 'http://', '', stripslashes( $url )); … … 143 197 } 144 198 199 /** 200 * {@internal Missing Short Description}} 201 * 202 * @since unknown 203 * 204 * @param unknown_type $vars 205 */ 145 206 function wp_reset_vars( $vars ) { 146 207 for ( $i=0; $i<count( $vars ); $i += 1 ) { … … 161 222 } 162 223 224 /** 225 * {@internal Missing Short Description}} 226 * 227 * @since unknown 228 * 229 * @param unknown_type $message 230 */ 163 231 function show_message($message) { 164 232 if( is_wp_error($message) ){ … … 172 240 173 241 /* Whitelist functions */ 242 243 /** 244 * {@internal Missing Short Description}} 245 * 246 * @since unknown 247 * 248 * @param unknown_type $option_group 249 * @param unknown_type $option_name 250 * @param unknown_type $sanitize_callback 251 * @return unknown 252 */ 174 253 function register_setting($option_group, $option_name, $sanitize_callback = '') { 175 254 return add_option_update_handler($option_group, $option_name, $sanitize_callback); 176 255 } 177 256 257 /** 258 * {@internal Missing Short Description}} 259 * 260 * @since unknown 261 * 262 * @param unknown_type $option_group 263 * @param unknown_type $option_name 264 * @param unknown_type $sanitize_callback 265 * @return unknown 266 */ 178 267 function unregister_setting($option_group, $option_name, $sanitize_callback = '') { 179 268 return remove_option_update_handler($option_group, $option_name, $sanitize_callback); 180 269 } 181 270 271 /** 272 * {@internal Missing Short Description}} 273 * 274 * @since unknown 275 * 276 * @param unknown_type $option_group 277 * @param unknown_type $option_name 278 * @param unknown_type $sanitize_callback 279 */ 182 280 function add_option_update_handler($option_group, $option_name, $sanitize_callback = '') { 183 281 global $new_whitelist_options; … … 187 285 } 188 286
