PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
inc
/
upgrade-functions
<?php global $wpdb; $widget_strings = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}icl_strings WHERE context = 'Widgets' AND name LIKE 'widget body - %'" ); foreach ( $widget_strings as $string ) { $wpdb->update( $wpdb->prefix . 'icl_strings', array( 'name' => 'widget body - ' . md5( $string->value ) ), array( 'id' => $string->id ) ); } $widget_strings = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}icl_strings WHERE context = 'Widgets' AND name LIKE 'widget title - %'" ); foreach ( $widget_strings as $string ) { $wpdb->update( $wpdb->prefix . 'icl_strings', array( 'name' => 'widget title - ' . md5( $string->value ) ), array( 'id' => $string->id ) ); } // Add a new `language_context` index to icl_strings table $sql = "ALTER TABLE `{$wpdb->prefix}icl_strings` ADD INDEX `language_context` ( `context` , `language` )"; $wpdb->query( $sql );
[-] upgrade-2.7.php
[edit]
[-] upgrade-3.2.php
[edit]
[+]
3.2
[-] upgrade-2.4.0.php
[edit]
[-] upgrade-2.6.0.php
[edit]
[-] upgrade-2.3.1.php
[edit]
[-] upgrade-2.0.5.php
[edit]
[-] upgrade-2.3.3.php
[edit]
[-] upgrade-3.1.php
[edit]
[-] upgrade-2.9.3.php
[edit]
[-] upgrade-3.1.9.5.php
[edit]
[+]
2.0.0
[-] upgrade-2.5.0.php
[edit]
[-] upgrade-2.6.2.php
[edit]
[-] upgrade-3.3.php
[edit]
[-] upgrade-2.9.php
[edit]
[-] upgrade-3.1.5b3.php
[edit]
[-] upgrade-3.1.8.php
[edit]
[-] upgrade-3.5.1.php
[edit]
[-] upgrade-2.5.2.php
[edit]
[-] upgrade-3.5.0.php
[edit]
[-] upgrade-2.3.0.php
[edit]
[-] upgrade-3.1.5.php
[edit]
[-] upgrade-2.0.0.php
[edit]
[-] upgrade-3.2.3.php
[edit]
[+]
..
[-] upgrade-2.2.2.php
[edit]
[-] upgrade-3.3.7.php
[edit]