Changeset 10810 for trunk/wp-admin/includes/post.php
- Timestamp:
- 03/18/2009 02:43:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r10791 r10810 412 412 413 413 $post_title = stripslashes( sanitize_post_field( 'post_title', $title, 0, 'db' ) ); 414 $post_content = stripslashes( sanitize_post_field( 'post_content', $content, 0, 'db' ) ); 414 $post_content = stripslashes( sanitize_post_field( 'post_content', $content, 0, 'db' ) ); 415 415 $post_date = stripslashes( sanitize_post_field( 'post_date', $date, 0, 'db' ) ); 416 416 … … 432 432 $args[] = $post_content; 433 433 } 434 434 435 435 if ( !empty ( $args ) ) 436 436 return $wpdb->get_var( $wpdb->prepare($query, $args) ); … … 925 925 } 926 926 927 $post->filter = 'sample'; 927 $post->filter = 'sample'; 928 928 929 929 $permalink = get_permalink($post, true); … … 964 964 if ( 'publish' == $post->post_status ) 965 965 $view_post = 'post' == $post->post_type ? __('View Post') : __('View Page'); 966 966 967 967 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 968 968 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $permalink . "</span>\n"; … … 1145 1145 function wp_tiny_mce( $teeny = false ) { 1146 1146 global $concatenate_scripts, $compress_scripts; 1147 1147 1148 1148 if ( ! user_can_richedit() ) 1149 1149 return;
Note: See TracChangeset
for help on using the changeset viewer.