Changeset 6969
- Timestamp:
- 02/22/08 03:45:19 (9 months ago)
- Files:
-
- trunk/wp-admin/edit-form-advanced.php (modified) (3 diffs)
- trunk/wp-admin/edit-link-form.php (modified) (1 diff)
- trunk/wp-admin/edit-page-form.php (modified) (2 diffs)
- trunk/wp-admin/wp-admin.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-form-advanced.php
r6966 r6969 138 138 139 139 if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) ) 140 echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . 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 post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>";140 echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . 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 post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>"; 141 141 ?> 142 142 <?php if ($post_ID): ?> … … 146 146 </p> 147 147 148 <div class=" inside">149 < p><strong><?php _e('Related') ?></strong></p>148 <div class="side-info"> 149 <h5><?php _e('Related') ?></h5> 150 150 151 151 <ul> … … 159 159 </ul> 160 160 </div> 161 161 162 <?php do_action('submitpost_box'); ?> 162 163 </div> trunk/wp-admin/edit-link-form.php
r6966 r6969 56 56 </p> 57 57 58 <div class=" inside">59 < p><strong><?php _e('Related') ?></strong></p>58 <div class="side-info"> 59 <h5><?php _e('Related') ?></h5> 60 60 61 61 <ul> trunk/wp-admin/edit-page-form.php
r6966 r6969 119 119 120 120 if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) ) 121 echo "<a href='" . wp_nonce_url("page.php?action=delete&post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . 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;\">" . __('Delete page') . "</a>";121 echo "<a href='" . wp_nonce_url("page.php?action=delete&post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . 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;\">" . __('Delete page') . "</a>"; 122 122 ?> 123 123 <?php if ($post_ID): ?> … … 127 127 </p> 128 128 129 <div class=" inside">130 < p><strong><?php _e('Related') ?></strong></p>129 <div class="side-info"> 130 <h5><?php _e('Related') ?></h5> 131 131 132 132 <ul> trunk/wp-admin/wp-admin.css
r6967 r6969 123 123 124 124 .submit { 125 margin: 1.5em 0; 125 margin: 1.5em 0 0 0; 126 -moz-border-radius-bottomleft: 3px; 127 -khtml-border-bottom-left-radius: 3px; 128 -webkit-border-bottom-left-radius: 3px; 129 border-bottom-left-radius: 3px; 130 -moz-border-radius-bottomright: 3px; 131 -khtml-border-bottom-right-radius: 3px; 132 -webkit-border-bottom-right-radius: 3px; 133 border-bottom-right-radius: 3px; 134 } 135 136 .side-info { 137 background: #fff; 138 margin: 0; 139 padding: 4px; 140 font-size: 11px; 141 } 142 143 .side-info h5 { 144 padding-bottom: 8px; 145 border-bottom: 1px solid #dadada; 146 font-size: 14px; 147 margin-bottom: 6px; 148 } 149 150 .side-info ul { 151 margin: 0; 152 padding-left: 18px; 153 color: #666; 154 list-style: square; 126 155 } 127 156
