Ticket #26092: 26092.2.patch
File 26092.2.patch, 4.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
42 42 $preview_button = __( 'Preview Changes' ); 43 43 } else { 44 44 $preview_link = set_url_scheme( get_permalink( $post->ID ) ); 45 /** 46 * Filter the URI of a post preview in the post submit box. 47 * 48 * @since 2.0.5 49 * 50 * @param string $preview_link URI the user will be directed to for a post preview. 51 */ 45 52 $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) ); 46 53 $preview_button = __( 'Preview' ); 47 54 } … … 198 205 </div><?php // /misc-pub-section ?> 199 206 <?php endif; ?> 200 207 201 <?php do_action('post_submitbox_misc_actions'); ?> 208 <?php 209 /** 210 * Fires after the post time/date setting in the Publish meta box. 211 * 212 * @since 2.9.0 213 */ 214 do_action( 'post_submitbox_misc_actions' ); 215 ?> 202 216 </div> 203 217 <div class="clear"></div> 204 218 </div> 205 219 206 220 <div id="major-publishing-actions"> 207 <?php do_action('post_submitbox_start'); ?> 221 <?php 222 /** 223 * Fires at the beginning of the publishing actions section of the Publish meta box. 224 * 225 * @since 2.7.0 226 */ 227 do_action( 'post_submitbox_start' ); 228 ?> 208 229 <div id="delete-action"> 209 230 <?php 210 231 if ( current_user_can( "delete_post", $post->ID ) ) { … … 282 303 <span id="timestamp"><?php printf($stamp, $date); ?></span> 283 304 </div><!-- .misc-pub-section --> 284 305 285 <?php do_action('attachment_submitbox_misc_actions'); ?> 306 <?php 307 /** 308 * Fires after 'Uploaded on' section of the Save meta box in the attachment 309 * editing screen. 310 * 311 * @since 3.5.0 312 */ 313 do_action( 'attachment_submitbox_misc_actions' ); 314 ?> 286 315 </div><!-- #misc-publishing-actions --> 287 316 <div class="clear"></div> 288 317 </div><!-- #minor-publishing --> … … 525 554 <p class="meta-options"> 526 555 <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br /> 527 556 <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label> 528 <?php do_action('post_comment_status_meta_box-options', $post); ?> 557 <?php 558 /** 559 * Fires at the end of the Discussion meta box. 560 * 561 * @since 3.1.0 562 * 563 * @param WP_Post $post WP_Post object of the current post. 564 */ 565 do_action( 'post_comment_status_meta_box-options', $post ); 566 ?> 529 567 </p> 530 568 <?php 531 569 } … … 588 626 * @param object $post 589 627 */ 590 628 function post_slug_meta_box($post) { 629 /** This filter is documented in wp-admin/edit-tag-form.php */ 591 630 ?> 592 631 <label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( apply_filters('editable_slug', $post->post_name) ); ?>" /> 593 632 <?php … … 646 685 'echo' => 0, 647 686 ); 648 687 688 /** 689 * Filter the arguments used to generate a Pages drop-down. 690 * 691 * @since 3.3.0 692 * 693 * @see wp_dropdown_pages() 694 * 695 * @param array $dropdown_args Array of arguments used to generate the pages drop-down. 696 * @param WP_Post $post The current WP_Post object. 697 */ 649 698 $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); 650 699 $pages = wp_dropdown_pages( $dropdown_args ); 651 700 if ( ! empty($pages) ) { … … 710 759 </div> 711 760 712 761 <div id="major-publishing-actions"> 713 <?php do_action('post_submitbox_start'); ?> 762 <?php 763 /** This action is documented in wp-admin/includes/meta-boxes.php */ 764 do_action('post_submitbox_start'); 765 ?> 714 766 <div id="delete-action"> 715 767 <?php 716 768 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?> … … 727 779 </div> 728 780 <div class="clear"></div> 729 781 </div> 730 <?php do_action('submitlink_box'); ?> 782 <?php 783 /** 784 * Fires at the end of the Publish box in the Link editing screen. 785 * 786 * @since 2.5.0 787 */ 788 do_action( 'submitlink_box' ); 789 ?> 731 790 <div class="clear"></div> 732 791 </div> 733 792 <?php