@ 2014-02-02T21:20:20Z <?php
class Ems_Dhv_Jugend {
public function post_submit_meta_box_fum( WP_Post $post ) {
global $action;
exit();
$post_type = $post->post_type;
$post_type_object = get_post_type_object( $post_type );
$can_publish = current_user_can( $post_type_object->cap->publish_posts );
$args = null;
if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' != $post->post_status ) {
$revisions = wp_get_post_revisions( $post->ID );
// We should aim to show the revisions metabox only when there are revisions.
if ( count( $revisions ) > 1 ) {
reset( $revisions ); // Reset pointer for key()
$args = array( 'revisions_count' => count( $revisions ), 'revision_id' => key( $revisions ) );
add_meta_box( 'revisionsdiv', __( 'Revisions' ), 'post_revisions_meta_box', null, 'normal', 'core' );
}
}
?>
<div class="submitbox" id="submitpost">
<div id="minor-publishing">
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
<div style="display:none;">
<?php submit_button( __( 'Save' ), 'button', 'save' ); ?>
</div>
<div id="minor-publishing-actions">
<div id="save-action">
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
<input <?php if ('private' == $post->post_status) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button" />
<?php
}
elseif ( 'pending' == $post->post_status && $can_publish ) {
?>
<input type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save as Pending' ); ?>" class="button" />
<?php } ?>
<span class="spinner"></span>
</div>
<?php if ( $post_type_object->public ) : ?>
<div id="preview-action">
<?php
if ( 'publish' == $post->post_status ) {
$preview_link = esc_url( get_permalink( $post->ID ) );
$preview_button = __( 'Preview Changes' );
}
else {
$preview_link = set_url_scheme( get_permalink( $post->ID ) );
$preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) );
$preview_button = __( 'Preview' );
}
?>
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a>
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
</div>
<?php endif; // public post type ?>
<div class="clear"></div>
</div>
<!-- #minor-publishing-actions -->
<div id="misc-publishing-actions">
<div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status:' ) ?></label>
<span id="post-status-display">
<?php
switch ( $post->post_status ) {
case 'private':
_e( 'Privately Published' );
break;
case 'publish':
_e( 'Published' );
break;
case 'future':
_e( 'Scheduled' );
break;
case 'pending':
_e( 'Pending Review' );
break;
case 'draft':
case 'auto-draft':
_e( 'Draft' );
break;
}
}
Ems_Dhv_Jugend::post_submit_meta_box_fum(NULL);
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.24 0.003 0.037 19.08 5.4.23 0.017 0.050 19.22 5.4.22 0.060 0.037 19.26 5.4.21 0.210 0.033 19.09 5.4.20 0.223 0.043 19.05 5.4.19 0.233 0.043 19.23 5.4.18 0.240 0.033 18.86 5.4.17 0.213 0.030 18.86 5.4.16 0.230 0.037 19.14 5.4.15 0.230 0.047 19.29 5.4.14 0.230 0.040 16.37 5.4.13 0.240 0.037 16.66 5.4.12 0.227 0.037 16.45 5.4.11 0.237 0.040 16.29 5.4.10 0.210 0.033 16.38 5.4.9 0.190 0.037 16.47 5.4.8 0.223 0.043 16.59 5.4.7 0.233 0.043 16.46 5.4.6 0.240 0.040 16.55 5.4.5 0.230 0.037 16.35 5.4.4 0.237 0.037 16.35 5.4.3 0.263 0.033 16.18 5.4.2 0.220 0.040 16.44 5.4.1 0.213 0.033 16.50 5.4.0 0.213 0.037 15.79 5.3.28 0.223 0.040 14.59 5.3.27 0.227 0.033 14.62 5.3.26 0.217 0.037 14.61 5.3.25 0.260 0.043 14.71 5.3.24 0.267 0.040 14.55 5.3.23 0.263 0.043 14.60 5.3.22 0.217 0.047 14.50 5.3.21 0.207 0.037 14.71 5.3.20 0.227 0.037 14.60 5.3.19 0.030 0.037 14.50 5.3.18 0.000 0.050 14.71 5.3.17 0.003 0.037 14.74 5.3.16 0.057 0.033 14.50 5.3.15 0.207 0.030 14.50 5.3.14 0.213 0.040 14.52 5.3.13 0.220 0.033 14.65 5.3.12 0.213 0.040 14.50 5.3.11 0.220 0.033 14.55 5.3.10 0.260 0.040 14.05 5.3.9 0.187 0.037 14.10 5.3.8 0.207 0.030 13.97 5.3.7 0.220 0.033 14.19 5.3.6 0.230 0.033 14.08 5.3.5 0.230 0.033 13.90 5.3.4 0.253 0.043 13.89 5.3.3 0.207 0.037 14.02 5.3.2 0.220 0.047 13.94 5.3.1 0.223 0.030 13.83 5.3.0 0.230 0.030 13.68
preferences:dark mode live preview
152.63 ms | 1394 KiB | 7 Q