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 | |
if(get_current_user_id() == 1) { | |
$ids = get_all_page_ids(); | |
foreach($ids as $id) { | |
$data = get_post_meta($id, 'panels_data'); | |
if(!$data) { continue; } | |
$data = $data[0]; | |
foreach($data['widgets'] as $key => $widget) { | |
if($widget['panels_info']['class'] == 'old_class') { | |
$data['widgets'][$key]['panels_info']['class'] = 'new_class'; |
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 | |
class SiteOrigin_Widget_InlineCSS extends SiteOrigin_Widget { | |
function generate_and_enqueue_instance_styles($instance) { | |
if(empty($this->form_options)) $this->form_options = $this->initialize_form(); | |
if(empty($instance)) return; | |
$instance = $this->add_defaults($this->form_options, $instance); | |
$css_name = $this->id_base . '-' . $this->get_style_name($instance) . '-' . $this->get_style_hash($instance); | |
$css = wp_cache_get($css_name, 'siteorigin_widgets'); |
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
<? | |
header('Content-Type: text/plain'); | |
function chmod_r($dir) | |
{ | |
$dp = opendir($dir); | |
while($file = readdir($dp)) | |
{ | |
if (($file == ".") || ($file == "..")) continue; |
NewerOlder