Changes from branches/2.7/wp-admin/includes/post.php at r10257 to trunk/wp-admin/includes/post.php at r10150
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r10257 r10150 229 229 $post_data = &$_POST; 230 230 231 if ( isset($post_data['post_type']) &&'page' == $post_data['post_type'] ) {231 if ( 'page' == $post_data['post_type'] ) { 232 232 if ( ! current_user_can( 'edit_pages' ) ) 233 233 wp_die( __('You are not allowed to edit pages.') ); … … 237 237 } 238 238 239 $post_IDs = array_map( 'intval', (array) $post_data['post'] );239 $post_IDs = array_map( intval, (array) $post_data['post'] ); 240 240 241 241 $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category', 'sticky' ); … … 910 910 } 911 911 912 $post->filter = 'sample';913 914 912 $permalink = get_permalink($post, true); 915 913 … … 929 927 $post->post_date = $original_date; 930 928 $post->post_name = $original_name; 931 unset($post->filter);932 933 929 return $permalink; 934 930 } … … 1166 1162 if ( ! empty($mce_external_languages) ) { 1167 1163 foreach ( $mce_external_languages as $name => $path ) { 1168 if ( @is_file($path) && @is_readable($path) ) {1164 if ( is_file($path) && is_readable($path) ) { 1169 1165 include_once($path); 1170 $ext_plugins .= $strings . "\n";1166 $ext_plugins .= $strings; 1171 1167 $loaded_langs[] = $name; 1172 1168 } … … 1189 1185 $path = trailingslashit( realpath($path) ); 1190 1186 1191 if ( @is_file($path . $mce_locale . '.js') )1192 $strings .= @file_get_contents($path . $mce_locale . '.js') . "\n";1193 1194 if ( @is_file($path . $mce_locale . '_dlg.js') )1195 $strings .= @file_get_contents($path . $mce_locale . '_dlg.js') . "\n";1187 if ( is_file($path . $mce_locale . '.js') ) 1188 $strings .= @file_get_contents($path . $mce_locale . '.js'); 1189 1190 if ( is_file($path . $mce_locale . '_dlg.js') ) 1191 $strings .= @file_get_contents($path . $mce_locale . '_dlg.js'); 1196 1192 1197 1193 if ( 'en' != $mce_locale && empty($strings) ) { 1198 if ( @is_file($path . 'en.js') ) {1194 if ( is_file($path . 'en.js') ) { 1199 1195 $str1 = @file_get_contents($path . 'en.js'); 1200 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str1, 1 ) . "\n";1196 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str1, 1 ); 1201 1197 } 1202 1198 1203 if ( @is_file($path . 'en_dlg.js') ) {1199 if ( is_file($path . 'en_dlg.js') ) { 1204 1200 $str2 = @file_get_contents($path . 'en_dlg.js'); 1205 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str2, 1 ) . "\n";1201 $strings .= preg_replace( '/([\'"])en\./', '$1' . $mce_locale . '.', $str2, 1 ); 1206 1202 } 1207 1203 }
Note: See TracChangeset
for help on using the changeset viewer.