- 460D8CC71819108BCD5B7C75F9B98FFA739CBD9E88C167E1BDDF4327084370F6B1FC00CA497454B3C61C7118B478B11ED22ED531AF867AA92B51325F1333DADF
+ 6AC0C7A8618197BA57E6DBFB4407064D62CC35B8157320C08284D6DC583A7FB38FCC4D6595AD0800D83C2DD214BC5A2114C1C152B1CEA5B4FAF22E7F05C8D230
mp-wp/wp-admin/edit-page-form.php
(114 . 9)(114 . 7)
9269 ?>
9270 </span></b>
9271 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
9272 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
9273
9274 <div id="post-status-select" class="hide-if-js">
9275 <div id="post-status-select">
9276 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo $post->post_status; ?>" />
9277 <select name='post_status' id='post_status' tabindex='4'>
9278 <?php if ( 'publish' == $post->post_status ) : ?>
(129 . 9)(127 . 6)
9280 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
9281 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option>
9282 </select>
9283
9284 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
9285 <a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
9286 </div>
9287
9288 <?php } ?>
(152 . 9)(147 . 8)
9290 $visibility_trans = __('Public');
9291 }
9292
9293 ?><?php echo wp_specialchars( $visibility_trans ); ?></span></b> <?php if ( $can_publish ) { ?> <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
9294
9295 <div id="post-visibility-select" class="hide-if-js">
9296 ?><?php echo wp_specialchars( $visibility_trans ); ?></span></b> <?php if ( $can_publish ) { ?>
9297 <div id="post-visibility-select">
9298 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attribute_escape($post->post_password); ?>" />
9299 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attribute_escape( $visibility ); ?>" />
9300
(163 . 11)(157 . 6)
9302 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br />
9303 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo attribute_escape($post->post_password); ?>" /><br /></span>
9304 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br />
9305
9306 <p>
9307 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
9308 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a>
9309 </p>
9310 </div>
9311 <?php } ?>
9312
(195 . 10)(184 . 8)
9314 ?>
9315 <?php if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
9316 <div class="misc-pub-section curtime misc-pub-section-last">
9317 <span id="timestamp">
9318 <?php printf($stamp, $date); ?></span>
9319 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
9320 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
9321 <span id="timestamp"><?php printf($stamp, $date); ?></span>
9322 <div id="timestampdiv"><?php touch_time(($action == 'edit'),1,4); ?></div>
9323 </div><?php // /misc-pub-section ?>
9324 <?php endif; ?>
9325
(211 . 7)(198 . 7)
9327 <div id="delete-action">
9328 <?php
9329 if ( ( 'edit' == $action ) && current_user_can('delete_page', $post->ID) ) { ?>
9330 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID); ?>" onclick="if ( confirm('<?php echo js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
9331 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID); ?>"><?php _e('Delete'); ?></a>
9332 <?php } ?>
9333 </div>
9334
(306 . 7)(293 . 6)
9336 list_meta($metadata);
9337 meta_form();
9338 ?>
9339 <div id="ajax-response"></div>
9340 </div>
9341 <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
9342 <?php
(332 . 20)(318 . 6)
9344 }
9345 add_meta_box('pagecommentstatusdiv', __('Discussion'), 'page_comments_status_meta_box', 'page', 'normal', 'core');
9346
9347 /**
9348 * Display page slug form fields.
9349 *
9350 * @since 2.6.0
9351 *
9352 * @param object $post
9353 */
9354 function page_slug_meta_box($post){
9355 ?>
9356 <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 ); ?>" />
9357 <?php
9358 }
9359 add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core');
9360
9361 $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
9362 if ( $post->post_author && !in_array($post->post_author, $authors) )
9363 $authors[] = $post->post_author;
(490 . 7)(462 . 3)
9365
9366 </form>
9367 </div>
9368
9369 <script type="text/javascript">
9370 try{document.post.title.focus();}catch(e){}
9371 </script>