Changeset 26918
- Timestamp:
- 01/08/2014 04:06:01 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/meta-boxes.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r26834 r26918 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' ); … … 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> … … 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 … … 283 304 </div><!-- .misc-pub-section --> 284 305 285 <?php do_action('attachment_submitbox_misc_actions'); ?> 306 <?php 307 /** 308 * Fires after the 'Uploaded on' section of the Save meta box 309 * in the attachment 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> … … 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 on the post editing screen. 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 … … 589 627 */ 590 628 function post_slug_meta_box($post) { 591 ?> 592 <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) ); ?>" /> 629 /** This filter is documented in wp-admin/edit-tag-form.php */ 630 ?> 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 594 633 } … … 647 686 ); 648 687 688 /** 689 * Filter the arguments used to generate a Pages drop-down element. 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 ); … … 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 … … 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>
Note: See TracChangeset
for help on using the changeset viewer.