Ticket #7527: 7527.phpdoc.diff
File 7527.phpdoc.diff, 29.9 KB (added by , 16 years ago) |
---|
-
edit-form-advanced.php
55 55 } 56 56 57 57 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 58 59 /** 60 * Display post submit form fields. 61 * 62 * @since 2.7.0 63 * 64 * @param object $post 65 */ 58 66 function post_submit_meta_box($post) { 59 67 global $action; 60 68 … … 186 194 } 187 195 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'post', 'side', 'core'); 188 196 197 /** 198 * Display post tags form fields. 199 * 200 * @since 2.6.0 201 * 202 * @param object $post 203 */ 189 204 function post_tags_meta_box($post) { 190 205 ?> 191 206 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> … … 195 210 } 196 211 add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core'); 197 212 213 /** 214 * Display add post media and current post media form fields and images. 215 * 216 * @todo Complete. 217 * @since 2.7.0 218 * 219 * @param object $post 220 */ 198 221 function post_media_meta_box($post) { 199 222 echo "<p><small><em>This feature isn't fully functional in this prototype.</em></small></p>"; 200 223 … … 231 254 } 232 255 add_meta_box( 'mediadiv', __('Media' ), 'post_media_meta_box', 'post', 'side', 'core' ); 233 256 257 /** 258 * Display post categories form fields. 259 * 260 * @since 2.6.0 261 * 262 * @param object $post 263 */ 234 264 function post_categories_meta_box($post) { 235 265 ?> 236 266 <ul id="category-tabs"> … … 265 295 } 266 296 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); 267 297 298 /** 299 * Display post excerpt form fields. 300 * 301 * @since 2.6.0 302 * 303 * @param object $post 304 */ 268 305 function post_excerpt_meta_box($post) { 269 306 ?> 270 307 <label class="hidden" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> … … 273 310 } 274 311 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'normal', 'core'); 275 312 313 /** 314 * Display trackback links form fields. 315 * 316 * @since 2.6.0 317 * 318 * @param object $post 319 */ 276 320 function post_trackback_meta_box($post) { 277 321 $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />'; 278 322 if ('' != $post->pinged) { … … 296 340 } 297 341 add_meta_box('trackbacksdiv', __('Trackbacks and Pings'), 'post_trackback_meta_box', 'post', 'normal', 'core'); 298 342 343 /** 344 * Display custom fields for the post form fields. 345 * 346 * @since 2.6.0 347 * 348 * @param object $post 349 */ 299 350 function post_custom_meta_box($post) { 300 351 ?> 301 352 <div id="postcustomstuff"> … … 318 369 319 370 do_action('dbx_post_advanced'); 320 371 372 /** 373 * Display comment status for post form fields. 374 * 375 * @since 2.6.0 376 * 377 * @param object $post 378 */ 321 379 function post_comment_status_meta_box($post) { 322 380 global $wpdb, $post_ID; 323 381 ?> … … 357 415 } 358 416 add_meta_box('commentstatusdiv', __('Comments on this Post'), 'post_comment_status_meta_box', 'post', 'normal', 'core'); 359 417 418 /** 419 * Display post password form fields. 420 * 421 * @since 2.6.0 422 * 423 * @param object $post 424 */ 360 425 function post_password_meta_box($post) { 361 426 ?> 362 427 <p> … … 369 434 } 370 435 add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'normal', 'core'); 371 436 437 /** 438 * Display post slug form fields. 439 * 440 * @since 2.6.0 441 * 442 * @param object $post 443 */ 372 444 function post_slug_meta_box($post) { 373 445 ?> 374 446 <label class="hidden" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /> … … 381 453 if ( $post->post_author && !in_array($post->post_author, $authors) ) 382 454 $authors[] = $post->post_author; 383 455 if ( $authors && count( $authors ) > 1 ) : 456 /** 457 * Display form field with list of authors. 458 * 459 * @since 2.6.0 460 * 461 * @param object $post 462 */ 384 463 function post_author_meta_box($post) { 385 464 global $current_user, $user_ID; 386 465 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM … … 394 473 endif; 395 474 396 475 if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : 476 /** 477 * Display list of post revisions. 478 * 479 * @since 2.6.0 480 * 481 * @param object $post 482 */ 397 483 function post_revisions_meta_box($post) { 398 484 wp_list_post_revisions(); 399 485 } -
edit-form-comment.php
25 25 <?php 26 26 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 27 27 28 function comment_submit_meta_box($comment) { // not used, but keeping for a bit longer in case it's needed 28 /** 29 * Display comment edit meta box. 30 * 31 * Not used, but keeping for a bit longer in case it's needed. 32 * 33 * @since 2.7.0 34 * 35 * @param object $comment Comment data. 36 */ 37 function comment_submit_meta_box($comment) { 29 38 ?> 30 39 <div class="submitbox" id="submitcomment"> 31 40 <div class="inside-submitbox"> -
edit-link-form.php
18 18 $nonce_action = 'add-bookmark'; 19 19 } 20 20 21 /** 22 * Display checked checkboxes attribute for xfn microformat options. 23 * 24 * @since 1.0.1 25 * 26 * @param string $class 27 * @param string $value 28 * @param mixed $deprecated Not used. 29 */ 21 30 function xfn_check($class, $value = '', $deprecated = '') { 22 31 global $link; 23 32 … … 37 46 } 38 47 ?> 39 48 40 <?php function link_submit_meta_box($link) { ?> 49 <?php 50 /** 51 * Display link create form fields. 52 * 53 * @since 2.7.0 54 * 55 * @param object $link 56 */ 57 function link_submit_meta_box($link) { 58 ?> 41 59 <div class="submitbox" id="submitlink"> 42 60 43 61 <div class="inside-submitbox"> … … 63 81 } 64 82 add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core'); 65 83 84 /** 85 * Display link categories form fields. 86 * 87 * @since 2.6.0 88 * 89 * @param object $link 90 */ 66 91 function link_categories_meta_box($link) { ?> 67 92 <div id="category-adder" class="wp-hidden-children"> 68 93 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> … … 100 125 } 101 126 add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core'); 102 127 128 /** 129 * Display form fields for changing link target. 130 * 131 * @since 2.6.0 132 * 133 * @param object $link 134 */ 103 135 function link_target_meta_box($link) { ?> 104 136 <fieldset><legend class="hidden"><?php _e('Target') ?></legend> 105 137 <label for="link_target_blank" class="selectit"> … … 117 149 } 118 150 add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', 'normal', 'core'); 119 151 152 /** 153 * Display xfn form fields. 154 * 155 * @since 2.6.0 156 * 157 * @param object $link 158 */ 120 159 function link_xfn_meta_box($link) { 121 160 ?> 122 161 <table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> … … 230 269 } 231 270 add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', 'normal', 'core'); 232 271 272 /** 273 * Display advanced link options form fields. 274 * 275 * @since 2.6.0 276 * 277 * @param object $link 278 */ 233 279 function link_advanced_meta_box($link) { 234 280 ?> 235 281 <table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5"> -
edit-page-form.php
7 7 */ 8 8 9 9 /** 10 * Post ID global 10 * Post ID global. 11 11 * @name $post_ID 12 12 * @var int 13 13 */ … … 47 47 ?> 48 48 49 49 <?php 50 /** 51 * Display submit form fields. 52 * 53 * @since 2.7.0 54 * 55 * @param object $post 56 */ 50 57 function page_submit_meta_box($post) { 51 58 global $action; 52 59 … … 172 179 } 173 180 add_meta_box('pagesubmitdiv', __('Publish'), 'page_submit_meta_box', 'page', 'side', 'core'); 174 181 182 /** 183 * Display custom field for page form fields. 184 * 185 * @since 2.6.0 186 * 187 * @param object $post 188 */ 175 189 function page_custom_meta_box($post){ 176 190 ?> 177 191 <div id="postcustomstuff"> … … 192 206 } 193 207 add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', 'normal', 'core'); 194 208 209 /** 210 * Display comments status form fields. 211 * 212 * @since 2.6.0 213 * 214 * @param object $post 215 */ 195 216 function page_comments_status_meta_box($post){ 196 217 ?> 197 218 <input name="advanced_view" type="hidden" value="1" /> … … 204 225 } 205 226 add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', 'normal', 'core'); 206 227 228 /** 229 * Display page password form fields. 230 * 231 * @since 2.6.0 232 * 233 * @param object $post 234 */ 207 235 function page_password_meta_box($post){ 208 236 ?> 209 237 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p> … … 214 242 } 215 243 add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'normal', 'core'); 216 244 245 /** 246 * Display page slug form fields. 247 * 248 * @since 2.6.0 249 * 250 * @param object $post 251 */ 217 252 function page_slug_meta_box($post){ 218 253 ?> 219 254 <label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /> … … 221 256 } 222 257 add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core'); 223 258 259 /** 260 * Display page parent form fields. 261 * 262 * @since 2.6.0 263 * 264 * @param object $post 265 */ 224 266 function page_parent_meta_box($post){ 225 267 ?> 226 268 <label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label> … … 231 273 add_meta_box('pageparentdiv', __('Page Parent'), 'page_parent_meta_box', 'page', 'normal', 'core'); 232 274 233 275 if ( 0 != count( get_page_templates() ) ) { 276 /** 277 * Display page template form fields. 278 * 279 * @since 2.6.0 280 * 281 * @param object $post 282 */ 234 283 function page_template_meta_box($post){ 235 284 ?> 236 285 <label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> … … 243 292 add_meta_box('pagetemplatediv', __('Page Template'), 'page_template_meta_box', 'page', 'normal', 'core'); 244 293 } 245 294 295 /** 296 * Display page order form fields. 297 * 298 * @since 2.6.0 299 * 300 * @param object $post 301 */ 246 302 function page_order_meta_box($post){ 247 303 ?> 248 304 <p><label class="hidden" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p> … … 256 312 if ( $post->post_author && !in_array($post->post_author, $authors) ) 257 313 $authors[] = $post->post_author; 258 314 if ( $authors && count( $authors ) > 1 ) { 315 /** 316 * Display page author form fields, when more than one author exists. 317 * 318 * @since 2.6.0 319 * 320 * @param object $post 321 */ 259 322 function page_author_meta_box($post){ 260 323 global $current_user, $user_ID; 261 324 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM … … 270 333 271 334 272 335 if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : 336 /** 337 * Display list of page revisions. 338 * 339 * @since 2.6.0 340 * 341 * @param object $post 342 */ 273 343 function page_revisions_meta_box($post) { 274 344 wp_list_post_revisions(); 275 345 } -
includes/comment.php
1 1 <?php 2 2 /** 3 * WordPress Comment Administration API 3 * WordPress Comment Administration API. 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Administration -
includes/image.php
13 13 * does not have the functionality to save in a file of the same format, the 14 14 * thumbnail will be created as a jpeg. 15 15 * 16 * @since unknown16 * @since 1.2.0 17 17 * 18 18 * @param mixed $file Filename of the original image, Or attachment id. 19 19 * @param int $max_side Maximum length of a single side for the thumbnail. … … 27 27 /** 28 28 * Crop an Image to a given size. 29 29 * 30 * @ internal Missing Long Description30 * @since 2.1.0 31 31 * 32 * @since unknown 33 * 34 * @param string|int $src_file The source file or Attachment ID 32 * @param string|int $src_file The source file or Attachment ID. 35 33 * @param int $src_x The start x position to crop from. 36 34 * @param int $src_y The start y position to crop from. 37 35 * @param int $src_w The width to crop. … … 77 75 } 78 76 79 77 /** 80 * Generate post Image attachment Metadata.78 * Generate post image attachment meta data. 81 79 * 82 * @ internal Missing Long Description80 * @since 2.1.0 83 81 * 84 * @since unknown 85 * 86 * @param int $attachment_id Attachment Id to process 87 * @param string $file Filepath of the Attached image 88 * @return mixed Metadata for attachment 82 * @param int $attachment_id Attachment Id to process. 83 * @param string $file Filepath of the Attached image. 84 * @return mixed Metadata for attachment. 89 85 */ 90 86 function wp_generate_attachment_metadata( $attachment_id, $file ) { 91 87 $attachment = get_post( $attachment_id ); … … 129 125 } 130 126 131 127 /** 132 * Load an image which PHP Supports.128 * Load an image from a string, if PHP supports it. 133 129 * 134 * @ internal Missing Long Description130 * @since 2.1.0 135 131 * 136 * @since unknown137 *138 132 * @param string $file Filename of the image to load. 139 133 * @return resource The resulting image resource on success, Error string on failure. 140 134 */ … … 159 153 } 160 154 161 155 /** 162 * Calculated the new dimentions for downsampled images.156 * Calculated the new dimentions for a downsampled image. 163 157 * 164 * @since unknown158 * @since 2.0.0 165 159 * @see wp_shrink_dimensions() 166 160 * 167 161 * @param int $width Current width of the image 168 162 * @param int $height Current height of the image 169 163 * @return mixed Array(height,width) of shrunk dimensions. 170 *171 164 */ 172 165 function get_udims( $width, $height) { 173 166 return wp_shrink_dimensions( $width, $height ); … … 176 169 /** 177 170 * Calculates the new dimentions for a downsampled image. 178 171 * 179 * @since unknown172 * @since 2.0.0 180 173 * @see wp_constrain_dimensions() 181 174 * 182 175 * @param int $width Current width of the image … … 184 177 * @param int $wmax Maximum wanted width 185 178 * @param int $hmax Maximum wanted height 186 179 * @return mixed Array(height,width) of shrunk dimensions. 187 *188 180 */ 189 181 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) { 190 182 return wp_constrain_dimensions( $width, $height, $wmax, $hmax ); … … 193 185 /** 194 186 * Convert a fraction string to a decimal. 195 187 * 196 * @since unknown188 * @since 2.5.0 197 189 * 198 190 * @param string $str 199 191 * @return int|float … … 208 200 /** 209 201 * Convert the exif date format to a unix timestamp. 210 202 * 211 * @since unknown203 * @since 2.5.0 212 204 * 213 205 * @param string $str 214 206 * @return int … … 223 215 /** 224 216 * Get extended image metadata, exif or iptc as available. 225 217 * 226 * @since unknown 218 * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso 219 * created_timestamp, focal_length, shutter_speed, and title. 227 220 * 221 * The IPTC metadata that is retrieved is APP13, credit, byline, created date 222 * and time, caption, copyright, and title. Also includes FNumber, Model, 223 * DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime. 224 * 225 * @todo Try other exif libraries if available. 226 * @since 2.5.0 227 * 228 228 * @param string $file 229 229 * @return bool|array False on failure. Image metadata array on success. 230 230 */ … … 288 288 if (!empty($exif['ExposureTime'])) 289 289 $meta['shutter_speed'] = wp_exif_frac2dec( $exif['ExposureTime'] ); 290 290 } 291 /** @todo FIXME: try other exif libraries if available */292 291 293 292 return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType ); 294 293 … … 297 296 /** 298 297 * Validate that file is an image. 299 298 * 300 * @since unknown299 * @since 2.5.0 301 300 * 302 301 * @param string $path File path to test if valid image. 303 302 * @return bool True if valid image, false if not valid image. … … 310 309 /** 311 310 * Validate that file is suitable for displaying within a web page. 312 311 * 313 * @since unknown312 * @since 2.5.0 314 313 * @uses apply_filters() Calls 'file_is_displayable_image' on $result and $path. 315 314 * 316 315 * @param string $path File path to test. -
includes/import.php
7 7 */ 8 8 9 9 /** 10 * {@internal Missing Short Description}}10 * Retrieve list of importers. 11 11 * 12 * @since unknown12 * @since 2.0.0 13 13 * 14 * @return unknown14 * @return array 15 15 */ 16 16 function get_importers() { 17 17 global $wp_importers; … … 21 21 } 22 22 23 23 /** 24 * {@internal Missing Short Description}}24 * Register importer for WordPress. 25 25 * 26 * @since unknown26 * @since 2.0.0 27 27 * 28 * @param unknown_type $id29 * @param unknown_type $name30 * @param unknown_type $description31 * @param unknown_type $callback32 * @return unknown28 * @param string $id Importer tag. Used to uniquely identify importer. 29 * @param string $name Importer name and title. 30 * @param string $description Importer description. 31 * @param callback $callback Callback to run. 32 * @return WP_Error Returns WP_Error when $callback is WP_Error. 33 33 */ 34 34 function register_importer( $id, $name, $description, $callback ) { 35 35 global $wp_importers; … … 39 39 } 40 40 41 41 /** 42 * {@internal Missing Short Description}}42 * Cleanup importer. 43 43 * 44 * @since unknown44 * Removes attachment based on ID. 45 45 * 46 * @param unknown_type $id 46 * @since 2.0.0 47 * 48 * @param string $id Importer ID. 47 49 */ 48 50 function wp_import_cleanup( $id ) { 49 51 wp_delete_attachment( $id ); 50 52 } 51 53 52 54 /** 53 * {@internal Missing Short Description}}55 * Handle importer uploading and add attachment. 54 56 * 55 * @since unknown57 * @since 2.0.0 56 58 * 57 * @return unknown59 * @return array 58 60 */ 59 61 function wp_import_handle_upload() { 60 62 $overrides = array( 'test_form' => false, 'test_type' => false ); -
includes/plugin-install.php
20 20 * 21 21 * The second filter, 'plugins_api', is the result that would be returned. 22 22 * 23 * @since 2.7.0 24 * 23 25 * @param string $action 24 26 * @param array|object $args Optional. Arguments to serialize for the Plugin Info API. 25 27 * @return mixed … … 44 46 } 45 47 46 48 /** 47 * 49 * Retrieve popular WordPress plugin tags. 48 50 * 49 * @param unknown_type $args 50 * @return unknown 51 * @since 2.7.0 52 * 53 * @param array $args 54 * @return array 51 55 */ 52 56 function install_popular_tags( $args = array() ) { 53 57 if ( ! ($cache = wp_cache_get('popular_tags', 'api')) && ! ($cache = get_option('wporg_popular_tags')) ) … … 67 71 } 68 72 69 73 add_action('install_plugins_search', 'install_search', 10, 1); 74 75 /** 76 * Display search results and display as tag cloud. 77 * 78 * @since 2.7.0 79 * 80 * @param string $page 81 */ 70 82 function install_search($page) { 71 83 $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : ''; 72 84 $term = isset($_REQUEST['s']) ? $_REQUEST['s'] : ''; … … 111 123 <p><?php _e('You may also search based on these popular tags, These are tags which are most popular on WordPress.org') ?></p> 112 124 <?php 113 125 114 126 $api_tags = install_popular_tags(); 115 127 116 117 118 119 120 121 122 123 128 //Set up the tags in a way which can be interprated by wp_generate_tag_cloud() 129 $tags = array(); 130 foreach ( (array)$api_tags as $tag ) 131 $tags[ $tag['name'] ] = (object) array( 132 'link' => clean_url( admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ), 133 'name' => $tag['name'], 134 'count' => $tag['count'] ); 135 echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%d plugin'), 'multiple_text' => __('%d plugins') ) ); 124 136 } 125 137 138 /** 139 * Display search form for searching plugins. 140 * 141 * @since 2.7.0 142 */ 126 143 function install_search_form(){ 127 144 $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : ''; 128 145 $term = isset($_REQUEST['s']) ? $_REQUEST['s'] : ''; … … 139 156 } 140 157 141 158 add_action('install_plugins_featured', 'install_featured', 10, 1); 159 160 /** 161 * Display featured plugins. 162 * 163 * @since 2.7.0 164 * 165 * @param string $page 166 */ 142 167 function install_featured($page){ 143 168 $args = array('browse' => 'featured', 'page' => $page); 144 169 $api = plugins_api('query_plugins', $args); 145 170 display_plugins_table($api->plugins, $api->info['page'], $api->info['pages']); 146 171 } 147 172 add_action('install_plugins_popular', 'install_popular', 10, 1); 173 174 /** 175 * Display popular plugins. 176 * 177 * @since 2.7.0 178 * 179 * @param string $page 180 */ 148 181 function install_popular($page){ 149 182 $args = array('browse' => 'popular', 'page' => $page); 150 183 $api = plugins_api('query_plugins', $args); 151 184 display_plugins_table($api->plugins, $api->info['page'], $api->info['pages']); 152 185 } 153 186 add_action('install_plugins_new', 'install_new', 10, 1); 187 188 /** 189 * Display new plugins. 190 * 191 * @since 2.7.0 192 * 193 * @param string $page 194 */ 154 195 function install_new($page){ 155 196 $args = array('browse' => 'new', 'page' => $page); 156 197 $api = plugins_api('query_plugins', $args); 157 198 display_plugins_table($api->plugins, $api->info['page'], $api->info['pages']); 158 199 } 159 200 add_action('install_plugins_updated', 'install_updated', 10, 1); 201 202 /** 203 * Display recently updated plugins. 204 * 205 * @since 2.7.0 206 * 207 * @param string $page 208 */ 160 209 function install_updated($page){ 161 210 $args = array('browse' => 'updated', 'page' => $page); 162 211 $api = plugins_api('query_plugins', $args); 163 212 display_plugins_table($api->plugins, $api->info['page'], $api->info['pages']); 164 213 } 165 214 add_action('install_plugins_upload', 'install_upload_custom', 10, 1); 215 216 /** 217 * Display upload plugin form for adding plugins by uploading them manually. 218 * 219 * @since 2.7.0 220 * 221 * @param string $page 222 */ 166 223 function install_upload_custom($page){ 167 224 //$args = array('browse' => 'updated', 'page' => $page); 168 225 //$api = plugins_api('query_plugins', $args); … … 170 227 echo '<h1>Not Implemented</h1> <p>Will utilise SwfUpload(if available) & unzip .zip plugin packages</p>'; 171 228 } 172 229 230 /** 231 * Display plugin content based on plugin list. 232 * 233 * @since 2.7.0 234 * 235 * @param array $plugins List of plugins. 236 * @param string $page 237 * @param int $totalpages Number of pages. 238 */ 173 239 function display_plugins_table($plugins, $page = 1, $totalpages = 1){ 174 240 global $tab; 175 241 … … 285 351 <?php 286 352 } 287 353 354 /** 355 * Display iframe header. 356 * 357 * @since 2.7.0 358 * 359 * @param string $title Title for iframe. 360 */ 288 361 function install_iframe_header($title = '') { 289 362 if( empty($title) ) 290 363 $title = __('Plugin Install — WordPress'); … … 317 390 <?php 318 391 } 319 392 393 /** 394 * Display iframe footer. 395 * 396 * @since 2.7.0 397 */ 320 398 function install_iframe_footer() { 321 399 echo ' 322 400 </body> … … 324 402 } 325 403 326 404 add_action('install_plugins_pre_plugin-information', 'install_plugin_information'); 405 406 /** 407 * Display plugin information in dialog box form. 408 * 409 * @since 2.7.0 410 */ 327 411 function install_plugin_information() { 328 412 global $tab; 329 413 … … 447 531 } 448 532 449 533 add_action('install_plugins_pre_install', 'install_plugin'); 534 535 /** 536 * Display plugin link and execute install. 537 * 538 * @since 2.7.0 539 */ 450 540 function install_plugin() { 451 541 452 542 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; … … 465 555 466 556 exit; 467 557 } 468 function do_plugin_install($download_url = '', $plugin_information = NULL) { 558 559 /** 560 * Retrieve plugin and install. 561 * 562 * @since 2.7.0 563 * 564 * @param string $download_url Optional. Download URL. 565 * @param object $plugin_information Optional. Plugin information 566 */ 567 function do_plugin_install($download_url = '', $plugin_information = null) { 469 568 global $wp_filesystem; 470 569 471 570 if ( empty($download_url) ) { … … 512 611 } 513 612 } 514 613 614 /** 615 * Install plugin. 616 * 617 * @since 2.7.0 618 * 619 * @param string $package 620 * @param string $feedback Optional. 621 * @return mixed. 622 */ 515 623 function wp_install_plugin($package, $feedback = '') { 516 624 global $wp_filesystem; 517 625 -
includes/post.php
463 463 } 464 464 465 465 /** 466 * {@internal Missing Short Description}}466 * Calls wp_write_post() and handles the errors. 467 467 * 468 468 * @since unknown 469 469 * -
includes/schema.php
1 1 <?php 2 2 /** 3 * WordPress Schema for installation and upgrading.3 * WordPress Administration Scheme API 4 4 * 5 5 * Here we keep the DB structure and option values. 6 6 * … … 8 8 * @subpackage Administration 9 9 */ 10 10 11 /** WordPress Database collate charset */ 11 /** 12 * The database character collate. 13 * @var string 14 * @global string 15 * @name $charset_collate 16 */ 12 17 $charset_collate = ''; 13 18 14 19 // Declare these as global in case schema.php is included from a function. … … 164 169 /** 165 170 * Create WordPress options and set the default values. 166 171 * 167 * @since unknown172 * @since 1.5.0 168 173 * @uses $wpdb 169 174 * @uses $wp_db_version 170 175 */ … … 299 304 /** 300 305 * Execute WordPress role creation for the various WordPress versions. 301 306 * 302 * @since unknown (2.0.0)307 * @since 2.0.0 303 308 */ 304 309 function populate_roles() { 305 310 populate_roles_160(); -
includes/update.php
1 1 <?php 2 /** 3 * WordPress Administration Update API 4 * 5 * @package WordPress 6 * @subpackage Admin 7 */ 2 8 3 9 // The admin side of our 1.1 update system 4 10 -
menu-header.php
20 20 21 21 get_admin_page_parent(); 22 22 23 /** 24 * Display menu. 25 * 26 * @access private 27 * @since 2.7.0 28 * 29 * @param array $menu 30 * @param array $submenu 31 * @param bool $submenu_as_parent 32 */ 23 33 function _wp_menu_output( &$menu, &$submenu, $submenu_as_parent = true ) { 24 34 global $self, $parent_file, $submenu_file, $plugin_page, $pagenow; 25 35 -
plugins.php
266 266 ?> 267 267 268 268 <?php 269 /** 270 * @ignore 271 * 272 * @param array $plugins 273 * @param string $context 274 */ 269 275 function print_plugins_table($plugins, $context = '') { 270 276 ?> 271 277 <table class="widefat" id="<?php echo $context ?>-plugins-table"> -
press-this.php
16 16 * 17 17 * @package WordPress 18 18 * @subpackage Press_This 19 * @since unknown19 * @since 2.6.0 20 20 * 21 21 * @param string $string 22 22 * @return string … … 30 30 * 31 31 * @package WordPress 32 32 * @subpackage Press_This 33 * @since unknown33 * @since 2.6.0 34 34 * 35 35 * @param string $text 36 36 * @return string … … 47 47 * 48 48 * @package WordPress 49 49 * @subpackage Press_This 50 * @since unknown50 * @since 2.6.0 51 51 * 52 52 * @return int Post ID 53 53 */ … … 176 176 <p id="options"><a href="#" class="select"><?php _e('Insert Image'); ?></a> | <a href="#" class="cancel"><?php _e('Cancel'); ?></a></p> 177 177 <?php break; 178 178 case 'photo_images': 179 /** 180 * Retrieve all image URLs from given URI. 181 * 182 * @package WordPress 183 * @subpackage Press_This 184 * @since 2.6.0 185 * 186 * @param string $uri 187 * @return string 188 */ 179 189 function get_images_from_uri($uri) { 180 190 if( preg_match('/\.(jpg|jpe|jpeg|png|gif)$/', $uri) && !strpos($uri,'blogger.com') ) 181 191 return "'".$uri."'"; -
setup-config.php
12 12 /** 13 13 * We are installing. 14 14 * 15 * @since unknown16 15 * @package WordPress 17 16 */ 18 17 define('WP_INSTALLING', true); … … 49 48 /** 50 49 * Display setup wp-config.php file header. 51 50 * 52 * @since unknown 51 * @ignore 52 * @since 2.3.0 53 53 * @package WordPress 54 54 * @subpackage Installer_WP_Config 55 55 */ -
themes.php
59 59 60 60 $themes = array_slice( $themes, $start, $per_page ); 61 61 62 /** 63 * Check if there is an update for a theme available. 64 * 65 * Will display link, if there is an update available. 66 * 67 * @since 2.7.0 68 * 69 * @param object $theme Theme data object. 70 * @return bool False if no valid info was passed. 71 */ 62 72 function theme_update_available( $theme ) { 63 73 static $themes_update; 64 74 if ( !isset($themes_update) ) -
user-edit.php
17 17 /** 18 18 * Display JavaScript for profile page. 19 19 * 20 * @package WordPress 21 * @subpackage Administration 20 * @since 2.5.0 22 21 */ 23 22 function profile_js ( ) { 24 23 ?> … … 101 100 } 102 101 } 103 102 104 // Optional SSL preference that can be turned on by hooking to the 'personal_options' action 103 /** 104 * Optional SSL preference that can be turned on by hooking to the 'personal_options' action. 105 * 106 * @since 2.7.0 107 * 108 * @param object $user User data object 109 */ 105 110 function use_ssl_preference($user) { 106 111 ?> 107 112 <tr>