Changeset 728613
- Timestamp:
- 06/20/2013 12:08:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
readymade-wordpress-importer-061/trunk/wordpress-importer.php
r684622 r728613 6 6 Author: wordpressdotorg, snyderp@gmail.com 7 7 Author URI: http://readymadeweb.com 8 Version: 0.6. 58 Version: 0.6.6 9 9 Text Domain: wordpress-importer 10 10 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 1025 1025 foreach ( $this->url_remap as $from_url => $to_url ) { 1026 1026 // remap urls in post_content 1027 $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)", $from_url, $to_url) ); 1027 $wpdb->query( $wpdb->prepare( " 1028 UPDATE 1029 {$wpdb->posts} 1030 SET 1031 post_content = REPLACE(post_content, %s, %s), 1032 post_excerpt = REPLACE(post_excerpt, %s, %s)", 1033 $from_url, 1034 $to_url 1035 ) ); 1028 1036 // remap enclosure urls 1029 1037 $result = $wpdb->query( $wpdb->prepare("UPDATE {$wpdb->postmeta} SET meta_value = REPLACE(meta_value, %s, %s) WHERE meta_key='enclosure'", $from_url, $to_url) );
Note: See TracChangeset
for help on using the changeset viewer.