This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( ! function_exists ("bp_latest_update_fix" )){ | |
function bp_latest_update_fix () { | |
global $wpdb; | |
$sql = "select * from $wpdb->usermeta where meta_key like 'bp_latest_update'"; | |
$results = $wpdb->get_results ( $sql ); | |
foreach ( $results as $row ) { | |
if ( $meta_value = maybe_unserialize ( $row->meta_value ) ) { | |
if ( is_array ( $meta_value ) ) { | |
if ( isset ( $meta_value[ "content" ] ) && strpos ( $meta_value[ "content" ], "update_txt" ) !== false ) { | |
$data_up = json_decode ( $meta_value[ "content" ] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_broken_media () { | |
global $wpdb; | |
$media_model = new RTMediaModel(); | |
$ob_migration = new RTMediaMigration(); | |
$sql = "select * from wp_postmeta m join wp_posts p on p.ID = m.post_id where meta_value like '%rtMedia%'"; | |
$results = $wpdb->get_results ( $sql ); | |
$upload_path = trim ( get_option ( 'upload_path' ) ); | |
if ( empty ( $upload_path ) || 'wp-content/uploads' == $upload_path ) { | |
$dir = WP_CONTENT_DIR . '/uploads'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$._data( $("#foo")[0], "events" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
$repos= array(); |
NewerOlder