Upgrade of option values for link images after directory move
git-svn-id: http://svn.automattic.com/wordpress/trunk@632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e95716f9f1
commit
2e42c2329f
|
@ -234,14 +234,14 @@ if ($continue) {
|
||||||
$wpdb->show_errors();
|
$wpdb->show_errors();
|
||||||
?>
|
?>
|
||||||
<p>Comment spammers should now watch out for you.</p>
|
<p>Comment spammers should now watch out for you.</p>
|
||||||
<p>See, that didn’t hurt a bit (again). Now on to the <a href="upgrade-072-to-080.php?step=3">final step</a>.</p>
|
<p>See, that didn’t hurt a bit (again). Now on to the <a href="upgrade-072-to-080.php?step=3">next step</a>.</p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>Step 3</h1>
|
<h1>Step 3</h1>
|
||||||
<p>This is the final step, and the most exciting. We’re going to make it so each post can now have multiple categories. Hold on tight.</p>
|
<p>This is a most exciting step. We’re going to make it so each post can now have multiple categories. Hold on tight.</p>
|
||||||
<?php
|
<?php
|
||||||
// Create post2cat table
|
// Create post2cat table
|
||||||
if ( maybe_create_table($tablepost2cat, "
|
if ( maybe_create_table($tablepost2cat, "
|
||||||
|
@ -280,6 +280,21 @@ foreach ($allposts as $post) {
|
||||||
// Going to leave the post table category field in for now. We can remove it in a future version.
|
// Going to leave the post table category field in for now. We can remove it in a future version.
|
||||||
?>
|
?>
|
||||||
All done!</p>
|
All done!</p>
|
||||||
|
<p>You are ready to rock ’n roll. <a href="upgrade-072-to-080.php?step=4">Next step</a>.</p>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
?>
|
||||||
|
|
||||||
|
<h1>Step 4</h1>
|
||||||
|
<p>This is the final step. We’re going to update the paths for the default links images that have moved.</p>
|
||||||
|
<p>If you do not still have the default settings it will <strong>not</strong> make any changes.</p>
|
||||||
|
<?php
|
||||||
|
$wpdb->query("UPDATE $tableoptions SET option_value = REPLACE(option_value, 'wp-links/links-images/', 'wp-images/links/')
|
||||||
|
WHERE option_name LIKE 'links_rating_image%'
|
||||||
|
AND option_value LIKE 'wp-links/links-images/%'");
|
||||||
|
?>
|
||||||
|
<p>All done!</p>
|
||||||
<p>You are ready to rock ’n roll. <a href="../wp-login.php">Go crazy</a>.</p>
|
<p>You are ready to rock ’n roll. <a href="../wp-login.php">Go crazy</a>.</p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue