Fixed socialpost

parent 455fd32e
...@@ -367,7 +367,7 @@ function save_sexhack_video_forms( $post_id) ...@@ -367,7 +367,7 @@ function save_sexhack_video_forms( $post_id)
$duration=$_POST['video_createDuration_gif']; $duration=$_POST['video_createDuration_gif'];
$start=$_POST['video_createStart_gif']; $start=$_POST['video_createStart_gif'];
$fps=$_POST['video_createFPS_gif']; $fps=$_POST['video_createFPS_gif'];
sh_add_video_job($video->id, 'create_gif', json_encode(array('start' => $start, 'fps' => $fps, 'duration' => $duration ))); sh_add_video_job($video->id, 'create_gif', json_encode(array('start' => $start, 'fps' => $fps, 'duration' => $duration, 'file' => $selectedv )));
$video->gif = false; $video->gif = false;
} }
else else
...@@ -394,7 +394,7 @@ function save_sexhack_video_forms( $post_id) ...@@ -394,7 +394,7 @@ function save_sexhack_video_forms( $post_id)
$duration=$_POST['video_createDuration_gif_small']; $duration=$_POST['video_createDuration_gif_small'];
$start=$_POST['video_createStart_gif_small']; $start=$_POST['video_createStart_gif_small'];
$fps=$_POST['video_createFPS_gif_small']; $fps=$_POST['video_createFPS_gif_small'];
sh_add_video_job($video->id, 'create_gif_small', json_encode(array('start' => $start, 'fps' => $fps, 'duration' => $duration ))); sh_add_video_job($video->id, 'create_gif_small', json_encode(array('start' => $start, 'fps' => $fps, 'duration' => $duration, 'file' => $selectedv )));
$video->gif_small = false; $video->gif_small = false;
} }
else else
...@@ -412,7 +412,13 @@ function save_sexhack_video_forms( $post_id) ...@@ -412,7 +412,13 @@ function save_sexhack_video_forms( $post_id)
else else
$video->preview = false; $video->preview = false;
// Socialpost
if(!$admin)
{
//sh_add_video_job($video->id, 'socialpost_text'); // Not needed. shmproc will give you the text to do if it doesn't exists already
sh_add_video_job($video->id, 'socialpost_media', $selectedv);
}
// Save the video data in the database. // Save the video data in the database.
......
...@@ -25,7 +25,7 @@ $plans = wp_SexHackMe\sh_get_subscription_plans(); ...@@ -25,7 +25,7 @@ $plans = wp_SexHackMe\sh_get_subscription_plans();
?> ?>
<style> <style>
.cozmolabs-banner { display:none; } .cozmoslabs-banner { display:none; }
</style> </style>
<div class="wrap"> <div class="wrap">
<?php do_settings_sections( 'sexhackme-wcpms-settings' ); ?> <?php do_settings_sections( 'sexhackme-wcpms-settings' ); ?>
......
...@@ -26,10 +26,6 @@ namespace wp_SexHackMe; ...@@ -26,10 +26,6 @@ namespace wp_SexHackMe;
if ( ! defined( 'ABSPATH' ) ) exit; if ( ! defined( 'ABSPATH' ) ) exit;
sexhack_log("PORCALAPUPAZZA");
sexhack_log(get_query_var('sh_video', 'NONEEEEEEEEEEEEEE!!!'));
$sh_video = get_query_var('sh_video', false); $sh_video = get_query_var('sh_video', false);
if(!$sh_video) { if(!$sh_video) {
wp_redirect(get_permalink(get_option('sexhack_video404_page', '0'))); wp_redirect(get_permalink(get_option('sexhack_video404_page', '0')));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment