Plugin Directory

Changeset 2424050


Ignore:
Timestamp:
11/24/2020 01:03:51 AM (5 years ago)
Author:
kevindees
Message:

update for WP 5.6

Location:
fitvids-for-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fitvids-for-wordpress/trunk/fitvids-for-wordpress.php

    r2398336 r2424050  
    44Plugin URI: http://wordpress.org/extend/plugins/fitvids-for-wordpress/
    55Description: This plugin makes videos responsive using the FitVids jQuery plugin on WordPress.
    6 Version: 3.0.7
     6Version: 3.0.8
    77Tags: videos, fitvids, responsive
    88Author: Kevin Dees
     
    1717class FitVidsWP
    1818{
    19 
    2019    public $path = null;
    2120    public $message = '';
     
    2625    public $id = 'fitvids-wp';
    2726
    28     function __construct()
     27    public function __construct()
    2928    {
    3029        $this->path = plugin_dir_path(__FILE__);
     
    3635    }
    3736
    38     function activation() {
     37    public function activation()
     38    {
    3939        $this->activating = true;
    4040        set_transient( $this->transient , true );
    4141    }
    4242
    43     function activation_notice() {
     43    public function activation_notice()
     44    {
    4445        if( get_transient( $this->transient ) && ! $this->activating ) {
    4546            ?>
     
    5859    }
    5960
    60     function settings_page()
     61    public function settings_page()
    6162    {
    6263        $post = $this->request['post'];
     
    7778    }
    7879
    79     function help_tab() {
     80    public function help_tab()
     81    {
    8082        $screen = get_current_screen();
    8183        $screen->add_help_tab( array(
     
    8789    }
    8890
    89     function help_content() {
     91    public function help_content() {
    9092        require( $this->path . '/help.php' );
    9193    }
    9294
    93     function scripts()
     95    public function scripts()
    9496    {
    9597        if ( get_option('fitvids_wp_jq') == 'true') {
     
    105107    }
    106108
    107     function generate_inline_js()
     109    public function generate_inline_js()
    108110    {
    109111        $selector = get_option('fitvids_wp_selector');
     
    133135    }
    134136
    135     function prepare_field( $value, $sanitize = true ) {
    136 
     137    public function prepare_field( $value, $sanitize = true )
     138    {
    137139        if($value) {
    138140            $value = trim( $value );
     
    147149    }
    148150
    149     function setup_request()
     151    public function setup_request()
    150152    {
    151153        $this->request['post'] = ! empty($_POST) ? array_map('wp_unslash', $_POST ) : array();
     
    154156    }
    155157
    156     function print_cdn_field_checked() {
     158    public function print_cdn_field_checked()
     159    {
    157160        if (get_option('fitvids_wp_jq') == 'true') {
    158161            echo 'checked="checked"';
     
    160163    }
    161164
    162     function save_option( $field ) {
     165    public function save_option( $field )
     166    {
    163167        if( !empty($this->request['post'][$field]) ) {
    164168            update_option($field, $this->prepare_field($this->request['post'][$field]) );
     
    167171        }
    168172    }
    169 
    170173}
    171174
  • fitvids-for-wordpress/trunk/readme.txt

    r2424044 r2424050  
    44Requires at least: 3.9
    55Tested up to: 5.6
    6 Stable Tag: 3.0.7
     6Stable Tag: 3.0.8
    77
    88This plugin makes videos responsive using the FitVids jQuery plugin on WordPress.
Note: See TracChangeset for help on using the changeset viewer.