Plugin Directory

Changeset 2850891


Ignore:
Timestamp:
01/19/2023 07:46:59 AM (3 years ago)
Author:
kvsteam
Message:

v1.0.9

Location:
kernel-video-sharing/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel-video-sharing/trunk/README.txt

    r2712012 r2850891  
    44Tags: video, player, tube, videoplayer
    55Requires at least: 3.0.1
    6 Tested up to: 5.9.3
    7 Stable tag: 1.0.8
     6Tested up to: 6.1.1
     7Stable tag: 1.0.9
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    6161* Added support for post status (draft, published, pending).
    6262* Added support for up to 3 custom fields to be populated with KVS data.
     63
     64= 1.0.9 =
     65* Added support for post publishing date (either take from feed, or current date).
     66* Fixed bug with sending parameters in feed URL.
  • kernel-video-sharing/trunk/admin/class-kvs-admin.php

    r2712012 r2850891  
    378378
    379379        if( !empty( $val && $val !== $kernel_video_sharing->reader->get_feed_url() ) ) {
    380             if( substr($val, -1, 1) != '/' ) {
    381                 $val .= '/';
    382             }
    383 
    384380            $meta = $kernel_video_sharing->reader->update_feed_meta( $val );
    385381            if( empty($meta) ) {
     
    615611                        'post_title'    => $row['title'],
    616612                        'post_content'  => $row['description'],
    617                         'post_date'     => $row['post_date'],
    618                         'post_date_gmt' => get_gmt_from_date( $row['post_date'] ),
     613                        'post_date'     => get_option( 'kvs_post_date' ) == 'now' ? date('Y-m-d H:i:s') : $row['post_date'],
     614                        'post_date_gmt' => get_gmt_from_date( get_option( 'kvs_post_date' ) == 'now' ? date('Y-m-d H:i:s') : $row['post_date'] ),
    619615                        'meta_input'    => array(
    620616                            'kvs-video-id' => $row['id'],
     
    633629                        '{%title%}'          => $row['title'],
    634630                        '{%description%}'    => $row['description'],
    635                         '{%date%}'           => $row['post_date'],
     631                        '{%date%}'           => get_option( 'kvs_post_date' ) == 'now' ? date('Y-m-d H:i:s') : $row['post_date'],
    636632                        '{%popularity%}'     => $row['popularity'],
    637633                        '{%rating%}'         => $row['rating'],
  • kernel-video-sharing/trunk/admin/partials/settings/post.php

    r2712012 r2850891  
    7474            </select>
    7575            <p class="description">Status of the created posts</p>
     76        </td>
     77        </tr>
     78
     79        <tr valign="top">
     80        <th scope="row"><?php _e( 'Publishing date', 'kvs' ); ?></th>
     81        <td>
     82            <select name="kvs_post_date">
     83                <option value="feed" <?php if( get_option( 'kvs_post_date' ) == 'feed' ){echo ' selected';} ?>><?php _e( 'Take from feed', 'kvs' ); ?></option>
     84                <option value="now" <?php if( get_option( 'kvs_post_date' ) == 'now' ){echo ' selected';} ?>><?php _e( 'Current time', 'kvs' ); ?></option>
     85            </select>
     86            <p class="description">Publishing date of the created posts</p>
    7687        </td>
    7788        </tr>
  • kernel-video-sharing/trunk/includes/class-kvs-reader.php

    r2667866 r2850891  
    125125        }
    126126
     127        $feed_url .= (strpos($feed_url, '?') === false ? '?' : '&');
    127128        try {
    128             $feed_url .= '?action=get_meta';
     129            $feed_url .= 'action=get_meta';
    129130            $feed_url .= '&meta[]=categories';
    130131            $feed_url .= '&meta[]=tags';
     
    192193        $meta = $this->get_feed_meta();
    193194
    194         $feed_url .= '?feed_format=json&sorting=video_id+asc';
     195        $feed_url .= (strpos($feed_url, '?') === false ? '?' : '&');
     196        $feed_url .= 'feed_format=json&sorting=video_id+asc';
    195197        if( !empty($start) ) {
    196198            $feed_url .= '&start=' . (int)$start;
     
    245247        }
    246248       
    247         $feed_url .= '?action=get_deleted_ids';
     249        $feed_url .= (strpos($feed_url, '?') === false ? '?' : '&');
     250        $feed_url .= 'action=get_deleted_ids';
    248251        if( !empty($days) && is_numeric($days) ) {
    249252            $feed_url .= '&days=' . (int)$days;
  • kernel-video-sharing/trunk/includes/class-kvs.php

    r2712012 r2850891  
    315315        register_setting( 'kvs-settings-group-post', 'kvs_post_type' );
    316316        register_setting( 'kvs-settings-group-post', 'kvs_post_status' );
     317        register_setting( 'kvs-settings-group-post', 'kvs_post_date' );
    317318        register_setting( 'kvs-settings-group-post', 'kvs_post_import_featured_image' );
    318319        register_setting( 'kvs-settings-group-post', 'kvs_post_body_template' );
  • kernel-video-sharing/trunk/kvs.php

    r2712012 r2850891  
    1212 * Plugin URI:        https://www.kernel-video-sharing.com/en/wordpress/
    1313 * Description:       Kernel Video Sharing plugin for WordPress. Provides integration with KVS video content manager and automates video import from KVS into your Wordpress projects.
    14  * Version:           1.0.8
     14 * Version:           1.0.9
    1515 * Requires at least: 5.0
    1616 * Requires PHP:      5.6
     
    2929
    3030define( 'KVS_WEBSITE', 'https://www.kernel-video-sharing.com/' );
    31 define( 'KVS_VERSION', '1.0.8' );
     31define( 'KVS_VERSION', '1.0.9' );
    3232define( 'KVS_PREFIX', 'kvs' );
    3333define( 'KVS_DIRPATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.