WordPress.org

Plugin Directory

Changeset 1323981


Ignore:
Timestamp:
01/08/16 13:15:16 (2 years ago)
Author:
WilltheWebMechanic
Message:

v2.1.4

Location:
automatic-post-publishing-scheduler
Files:
58 added
3 edited

Legend:

Unmodified
Added
Removed
  • automatic-post-publishing-scheduler/trunk/automatic-post-publishing-scheduler.php

    r1296337 r1323981  
    44Plugin URI: http://www.willthewebmechanic.com 
    55Description: Replaces default publishing with queued publishing. 
    6 Version: 2.1.3 
     6Version: 2.1.4 
    77Author: Will Brubaker 
    88Author URI: http://www.willthewebmechanic.com 
     
    3535    static private $wwm_plugin_values = array( 
    3636        'name' => 'PublishScheduler', 
    37         'version' => '2.1.3', 
     37        'version' => '2.1.4', 
    3838        'slug' => 'PublishScheduler', 
    3939        'dbversion' => '1.5',//db version 1.1 was introduced in version 2.0, 1.2 in 2.1, 1.3 in 2.2, 1.4 in 2.3 
     
    393393        } 
    394394 
    395         if ( ! $this->is_nonce_valid() || ! current_user_can( 'publish_posts' ) ) { 
     395        if ( ( ! 'XMLRPC_REQUEST' ) && ( ! $this->is_nonce_valid() || ! current_user_can( 'publish_posts' ) ) ) { 
    396396            return $data; 
    397397        } 
     
    440440        $now_timestamp = strtotime( date_i18n( 'Y-m-d H:i', $current_time ) );//the seconds have been stripped from $post_date_timestamp, so they need to be stripped here too. 
    441441 
    442         if ( $post_date_timestamp < $now_timestamp && current_user_can( 'edit_others_posts' ) ) { 
     442        if ( ! 'XMLRPC_REQUEST' &&  $post_date_timestamp < $now_timestamp && current_user_can( 'edit_others_posts' ) ) { 
    443443            $data['post_status'] = 'publish'; 
    444444            return $data; 
     
    452452        //now to check if the author is trying to alter their own time slot. 
    453453        //todo do something to either add a custom capability or otherwise allow plugin users greater granular control over who can alter time slots. 
    454         if ( 'future' == $_POST['original_post_status'] ) { 
     454        if ( isset( $_POST['original_post_status'] ) && 'future' == $_POST['original_post_status'] ) { 
    455455            $asked_for_time = strtotime( $_POST['aa'] . '-' . $_POST['mm'] . '-' . $_POST['jj'] . ' ' . $_POST['hh'] . ':' . $_POST['mn'] ); 
    456456            $original_time_slot = strtotime( $_POST['hidden_aa'] . '-' . $_POST['hidden_mm'] . '-' . $_POST['hidden_jj'] . ' ' . $_POST['hidden_hh'] . ':' . $_POST['hidden_mn'] ); 
  • automatic-post-publishing-scheduler/trunk/readme.md

    r1296337 r1323981  
    44**License:** GPLv3.0+ 
    55**Requires at least:** 3.6 
    6 **Tested up to:** 4.4 
    7 **Stable tag:** 2.1.3 
     6**Tested up to:** 4.4.1 
     7**Stable tag:** 2.1.4 
    88**Tags:** posts, publishing, scheduling, admin, author, automatic, blog, free, plugin 
    99**Donate Link:** http://www.willthewebmechanic.com/automatic-post-publishing-scheduler/ 
     
    8383## Changelog ## 
    8484 
     85### v2.1.4 ### 
     861. Add handling for XML-RPC requests 
     87 
    8588### v2.1.3 ### 
    86891. Tested against WordPress 4.4 
  • automatic-post-publishing-scheduler/trunk/readme.txt

    r1296337 r1323981  
    33License: GPLv3.0+ 
    44Requires at least: 3.6 
    5 Tested up to: 4.4 
    6 Stable tag: 2.1.3 
     5Tested up to: 4.4.1 
     6Stable tag: 2.1.4 
    77Tags: posts, publishing, scheduling, admin, author, automatic, blog, free, plugin 
    88Donate Link: http://www.willthewebmechanic.com/automatic-post-publishing-scheduler/ 
     
    6969 
    7070== Changelog == 
     71 
     72= v2.1.4 = 
     731. Add handling for XML-RPC requests 
    7174 
    7275= v2.1.3 = 
Note: See TracChangeset for help on using the changeset viewer.