Changeset 21871
- Timestamp:
- 09/16/2012 06:31:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r21597 r21871 8 8 9 9 /** 10 * {@internal Missing Short Description}}11 * 12 * @since 2.5.0 13 * 14 * @return unknown10 * Defines the default media upload tabs 11 * 12 * @since 2.5.0 13 * 14 * @return array default tabs 15 15 */ 16 16 function media_upload_tabs() { … … 26 26 27 27 /** 28 * {@internal Missing Short Description}}29 * 30 * @since 2.5.0 31 * 32 * @param unknown_type$tabs33 * @return unknown28 * Adds the gallery tab back to the tabs array if post has image attachments 29 * 30 * @since 2.5.0 31 * 32 * @param array $tabs 33 * @return array $tabs with gallery if post has image attachment 34 34 */ 35 35 function update_gallery_tab($tabs) { … … 95 95 * @since 2.5.0 96 96 * 97 * @param unknown_type $id 98 * @param unknown_type $alt 99 * @param unknown_type $title 100 * @param unknown_type $align 101 * @param unknown_type $url 102 * @param unknown_type $rel 103 * @param unknown_type $size 104 * @return unknown 97 * @param integer $id image attachment id 98 * @param string $caption image caption 99 * @param string $alt image alt attribute 100 * @param string $title image title attribute 101 * @param string $align image css alignment property 102 * @param string $url image src url 103 * @param string|bool $rel image rel attribute 104 * @param string $size image size (thumbnail, medium, large, full or added with add_image_size() ) 105 * @return string the html to insert into editor 105 106 */ 106 107 function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') { … … 119 120 120 121 /** 121 * {@internal Missing Short Description}}122 * Adds image shortcode with caption to editor 122 123 * 123 124 * @since 2.6.0 124 125 * 125 * @param unknown_type $html 126 * @param unknown_type $id 127 * @param unknown_type $alt 128 * @param unknown_type $title 129 * @param unknown_type $align 130 * @param unknown_type $url 131 * @param unknown_type $size 132 * @return unknown 126 * @param string $html 127 * @param integer $id 128 * @param string $caption image caption 129 * @param string $alt image alt attribute 130 * @param string $title image title attribute 131 * @param string $align image css alignment property 132 * @param string $url image src url 133 * @param string $size image size (thumbnail, medium, large, full or added with add_image_size() ) 134 * @return string 133 135 */ 134 136 function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) { … … 171 173 172 174 /** 173 * {@internal Missing Short Description}}174 * 175 * @since 2.5.0 176 * 177 * @param unknown_type$html175 * Adds image html to editor 176 * 177 * @since 2.5.0 178 * 179 * @param string $html 178 180 */ 179 181 function media_send_to_editor($html) { … … 190 192 191 193 /** 192 * {@internal Missing Short Description}}193 *194 194 * This handles the file upload POST itself, creating the attachment post. 195 195 * … … 313 313 314 314 /** 315 * {@internal Missing Short Description}} 316 * 317 * Wrap iframe content (produced by $content_func) in a doctype, html head/body 318 * etc any additional function args will be passed to content_func. 319 * 320 * @since 2.5.0 321 * 322 * @param unknown_type $content_func 315 * Adds the iframe to display content for the media upload page 316 * 317 * @since 2.5.0 318 * 319 * @param array $content_func 323 320 */ 324 321 function wp_iframe($content_func /* ... */) { … … 374 371 375 372 /** 376 * {@internal Missing Short Description}} 377 * 378 * @since 2.5.0 373 * Adds the media button to the editor 374 * 375 * @since 2.5.0 376 * 377 * @param string $editor_id 379 378 */ 380 379 function media_buttons($editor_id = 'content') { … … 411 410 * @since 2.5.0 412 411 * 413 * @return unknown412 * @return mixed void|object WP_Error on failure 414 413 */ 415 414 function media_upload_form_handler() { … … 503 502 * @since 2.5.0 504 503 * 505 * @return unknown504 * @return mixed 506 505 */ 507 506 function wp_media_upload_handler() { … … 674 673 * @since 2.7.0 675 674 * 676 * @param unknown_type$post677 * @param unknown_type$checked678 * @return unknown675 * @param object $post 676 * @param string $checked 677 * @return string 679 678 */ 680 679 function image_align_input_fields( $post, $checked = '' ) { … … 702 701 * @since 2.7.0 703 702 * 704 * @param unknown_type$post705 * @param unknown_type$check706 * @return unknown703 * @param object $post 704 * @param bool|string $check 705 * @return array 707 706 */ 708 707 function image_size_input_fields( $post, $check = '' ) { … … 757 756 * @since 2.7.0 758 757 * 759 * @param unknown_type$post760 * @param unknown_type$url_type761 * @return unknown758 * @param object $post 759 * @param string $url_type 760 * @return string 762 761 */ 763 762 function image_link_input_fields($post, $url_type = '') { … … 795 794 * @since 2.5.0 796 795 * 797 * @param unknown_type$form_fields798 * @param unknown_type$post799 * @return unknown796 * @param array $form_fields 797 * @param object $post 798 * @return array 800 799 */ 801 800 function image_attachment_fields_to_edit($form_fields, $post) { … … 834 833 * @since 2.5.0 835 834 * 836 * @param unknown_type$form_fields837 * @param unknown_type $post838 * @return unknown835 * @param array $form_fields 836 * @param object $post {@internal $post not used}} 837 * @return array 839 838 */ 840 839 function media_single_attachment_fields_to_edit( $form_fields, $post ) { … … 848 847 * @since 2.8.0 849 848 * 850 * @param unknown_type$form_fields851 * @param unknown_type $post852 * @return unknown849 * @param array $form_fields 850 * @param object $post {@internal $post not used}} 851 * @return array 853 852 */ 854 853 function media_post_single_attachment_fields_to_edit( $form_fields, $post ) { … … 866 865 * @since 2.5.0 867 866 * 868 * @param array$post869 * @param array $attachment 867 * @param object $post 868 * @param array $attachment {@internal $attachment not used}} 870 869 * @return array 871 870 */ … … 888 887 * @since 2.5.0 889 888 * 890 * @param unknown_type$html891 * @param unknown_type$attachment_id892 * @param unknown_type$attachment893 * @return unknown889 * @param string $html 890 * @param integer $attachment_id 891 * @param array $attachment 892 * @return array 894 893 */ 895 894 function image_media_send_to_editor($html, $attachment_id, $attachment) { … … 915 914 * @since 2.5.0 916 915 * 917 * @param unknown_type$post918 * @param unknown_type$errors919 * @return unknown916 * @param object $post 917 * @param array $errors 918 * @return array 920 919 */ 921 920 function get_attachment_fields_to_edit($post, $errors = null) { … … 1413 1412 * @since 2.5.0 1414 1413 * 1415 * @param unknown_type$type1416 * @param unknown_type$errors1417 * @param unknown_type$id1414 * @param string $type 1415 * @param object $errors 1416 * @param integer $id 1418 1417 */ 1419 1418 function media_upload_type_form($type = 'file', $errors = null, $id = null) { … … 1476 1475 * @since 2.7.0 1477 1476 * 1478 * @param unknown_type$type1479 * @param unknown_type$errors1480 * @param unknown_type$id1477 * @param string $type 1478 * @param object $errors 1479 * @param integer $id 1481 1480 */ 1482 1481 function media_upload_type_url_form($type = null, $errors = null, $id = null) { … … 1609 1608 1610 1609 /** 1611 * {@internal Missing Short Description}}1612 * 1613 * @since 2.5.0 1614 * 1615 * @param unknown_type$errors1610 * Adds gallery form to upload iframe 1611 * 1612 * @since 2.5.0 1613 * 1614 * @param array $errors 1616 1615 */ 1617 1616 function media_upload_gallery_form($errors) { … … 1759 1758 * @since 2.5.0 1760 1759 * 1761 * @param unknown_type$errors1760 * @param array $errors 1762 1761 */ 1763 1762 function media_upload_library_form($errors) { … … 1922 1921 1923 1922 /** 1924 * {@internal Missing Short Description}}1923 * Creates the form for external url 1925 1924 * 1926 1925 * @since 2.7.0 1927 1926 * 1928 * @return unknown 1927 * @param string $default_view 1928 * @return string the form html 1929 1929 */ 1930 1930 function wp_media_insert_url_form( $default_view = 'image' ) {
Note: See TracChangeset
for help on using the changeset viewer.