WordPress.org

Plugin Directory

Changeset 1106974


Ignore:
Timestamp:
03/06/15 16:19:06 (2 years ago)
Author:
cmstactics
Message:

Fixed a bug on debug option

Location:
wp-video-posts/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-video-posts/trunk/classes/wpvp-core-class.php

    r1106397 r1106974  
    4040        $ffmpeg_path = $options['ffmpeg_path']; 
    4141        $mp4box_path = $options['mp4box_path']; 
    42         $debug_mode = ($options['debug_mode']=='yes') ? true : false; 
     42        $debug_mode = $options['debug_mode']; 
    4343        $allowed_ext = array('mp4','flv'); 
    4444 
     
    224224        $helper = new WPVP_Helper(); 
    225225        $options = $helper->wpvp_get_full_options(); 
    226         $debug_mode = ($options['debug_mode']=='yes') ? true : false; 
     226        $debug_mode = $options['debug_mode']; 
    227227        $width = $this->options['thumb_width']; 
    228228        $height = $this->options['thumb_height']; 
     
    250250        $helper = new WPVP_Helper(); 
    251251        $options = $helper->wpvp_get_full_options(); 
    252         $debug_mode = ($options['debug_mode']=='yes') ? true : false; 
    253         $helper->wpvp_dump($this->options); 
     252        $debug_mode = $options['debug_mode']; 
     253        if($debug_mode) 
     254            $helper->wpvp_dump($this->options); 
    254255        $width = $this->options['video_width']; 
    255256        $height = $this->options['video_height']; 
  • wp-video-posts/trunk/classes/wpvp-helper-class.php

    r1106397 r1106974  
    8484        $ffmpeg_path = get_option('wpvp_ffmpeg_path',''); 
    8585        $mp4box_path = get_option('wpvp_mp4box_path',''); 
    86         $debug_mode = get_option('wpvp_debug_mode'); 
     86        $debug_mode = (bool)get_option('wpvp_debug_mode',0); 
    8787        $allowed_extensions = get_option('wpvp_allowed_extensions',$default_ext); 
    8888        $encode_formats = get_option('wpvp_encode_format',false) ? get_option('wpvp_encode_format') : array(); 
  • wp-video-posts/trunk/options/wpvp-options.php

    r1106397 r1106974  
    7070    $wpvp_mp4box_path = get_option('wpvp_mp4box_path'); 
    7171    $wpvp_main_loop_alter = get_option('wpvp_main_loop_alter','yes') ? true : false; 
    72     $wpvp_debug_mode = get_option('wpvp_debug_mode') ? 1 : 0; 
     72    $wpvp_debug_mode = get_option('wpvp_debug_mode',0) ? 1 : 0; 
    7373    $wpvp_player = get_option('wpvp_player','videojs') ? get_option('wpvp_player','videojs') : 'videojs'; 
    7474    $wpvp_autoplay = get_option('wpvp_autoplay',false) ? get_option('wpvp_autoplay',false) : false; 
  • wp-video-posts/trunk/readme.txt

    r1106397 r1106974  
    55Requires at least: 3.2.2 
    66Tested up to: 4.0 
    7 Stable tag: 3.4 
     7Stable tag: 3.4.1 
    88 
    99Upload videos to create custom video posts. With FFMPEG installed, it encodes 
     
    134134 
    135135== Changelog == 
     136= 3.4.1 =  
     137- Fixed a bug on a debug option. 
     138 
    136139= 3.4 =  
    137140- Updated the way FFMPEG detection is handled: encoding test is performed only instead of a combined detection. 
  • wp-video-posts/trunk/wpvp.php

    r1106397 r1106974  
    44Plugin URI: http://cmstactics.com 
    55Description: WP Video Posts creates a custom post for uploaded videos. You can upload videos of different formats (FLV, F4V, MP4, AVI, MOV, 3GP and WMV) and the plugin will convert it to MP4 and play it using Flowplayer.   
    6 Version: 3.4 
     6Version: 3.4.1 
    77Author: Alex Rayan, cmstactics 
    88Author URI: http://cmstactics.com 
     
    2424    * @var string WPVPMediaEncoder version 
    2525    */ 
    26     public $version = '3.4'; 
     26    public $version = '3.4.1'; 
    2727    public static function init(){ 
    2828        $class = __CLASS__; 
Note: See TracChangeset for help on using the changeset viewer.