~canonical-sysadmins/wordpress/4.8.3

« back to all changes in this revision

Viewing changes to wp-admin/includes/meta-boxes.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *
8
8
 * @since 2.7.0
9
9
 *
 
10
 * @global string $action
 
11
 *
10
12
 * @param object $post
11
13
 */
12
14
function post_submit_meta_box($post, $args = array() ) {
204
206
        <span id="timestamp">
205
207
        <?php printf($stamp, $date); ?></span>
206
208
        <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
207
 
        <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1); ?></div>
 
209
        <fieldset id="timestampdiv" class="hide-if-js">
 
210
        <legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
 
211
        <?php touch_time( ( $action === 'edit' ), 1 ); ?>
 
212
        </fieldset>
208
213
</div><?php // /misc-pub-section ?>
209
214
<?php endif; ?>
210
215
 
368
373
                        $post_formats[0][] = $post_format;
369
374
        ?>
370
375
        <div id="post-formats-select">
371
 
                <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
372
 
                <?php foreach ( $post_formats[0] as $format ) : ?>
373
 
                <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
374
 
                <?php endforeach; ?><br />
 
376
                <fieldset>
 
377
                        <legend class="screen-reader-text"><?php _e( 'Post Formats' ); ?></legend>
 
378
                        <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
 
379
                        <?php foreach ( $post_formats[0] as $format ) : ?>
 
380
                        <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
 
381
                        <?php endforeach; ?>
 
382
                </fieldset>
375
383
        </div>
376
384
        <?php endif; endif;
377
385
}
670
678
 *
671
679
 * @since 2.6.0
672
680
 *
 
681
 * @global int $user_ID
 
682
 *
673
683
 * @param object $post
674
684
 */
675
685
function post_author_meta_box($post) {
813
823
<div id="delete-action">
814
824
<?php
815
825
if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
816
 
        <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
 
826
        <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n  'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
817
827
<?php } ?>
818
828
</div>
819
829
 
913
923
 *
914
924
 * @since 1.0.1
915
925
 *
 
926
 * @global object $link
 
927
 *
916
928
 * @param string $class
917
929
 * @param string $value
918
930
 * @param mixed $deprecated Never used.