Changeset 1400276
- Timestamp:
- 04/20/2016 12:07:38 PM (10 years ago)
- Location:
- copify/trunk
- Files:
-
- 5 edited
-
Lib/CopifyWordpress.php (modified) (2 diffs)
-
Test/Lib/CopifyWordpressTest.php (modified) (1 diff)
-
basics.php (modified) (1 diff)
-
copify.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copify/trunk/Lib/CopifyWordpress.php
r1400273 r1400276 12 12 * Plugin version 13 13 */ 14 protected $version = '1. 1.3';14 protected $version = '1.2.0'; 15 15 16 16 /** … … 934 934 'post_type' => 'post' // [ 'post' | 'page' | 'link' | 'nav_menu_item' | 'custom_post_type' ] 935 935 ); 936 // Do we have an a dmin ID we can set as post author?936 // Do we have an a selected user to post under? OR an admin ID we can set as post author? 937 937 $admins = $this->wordpress('get_users', 'role=administrator'); 938 if (isset($admins[0]) && is_object($admins[0]) && property_exists($admins[0], 'data') && property_exists($admins[0]->data, 'ID')) { 938 // Get API credentials 939 $CopifyLoginDetails = $this->wordpress('get_option', 'CopifyLoginDetails' , false); 940 if (isset($CopifyLoginDetails['CopifyWPUser']) && is_numeric($CopifyLoginDetails['CopifyWPUser'])) { 941 $newPost['post_author'] = $CopifyLoginDetails['CopifyWPUser']; 942 } else if (isset($admins[0]) && is_object($admins[0]) && property_exists($admins[0], 'data') && property_exists($admins[0]->data, 'ID')) { 939 943 $newPost['post_author'] = $admins[0]->data->ID; 940 944 } -
copify/trunk/Test/Lib/CopifyWordpressTest.php
r1400273 r1400276 236 236 $this->CopifyWordpress = $this->getMock('CopifyWordpress', array('wordpress', 'outputJson', 'setheader')); 237 237 $version = $this->CopifyWordpress->getVersion(); 238 $this->assertEquals('1. 1.3', $version);238 $this->assertEquals('1.2.0', $version); 239 239 $mockVal = array( 240 240 'CopifyEmail' => 'foo@bar.com', -
copify/trunk/basics.php
r1400273 r1400276 10 10 // Dev mode 11 11 if (!defined('COPIFY_DEVMODE')) { 12 define('COPIFY_DEVMODE', true);12 define('COPIFY_DEVMODE', false); 13 13 } 14 14 -
copify/trunk/copify.php
r1400273 r1400276 4 4 Plugin URI: https://github.com/copify/copify-wordpress 5 5 Description: Automatically publish unique, relevant content every week from Copify's team of professional writers. 6 Version: 1. 1.36 Version: 1.2.0 7 7 Author: Rob McVey 8 8 Author URI: http://uk.copify.com/ -
copify/trunk/readme.txt
r1400273 r1400276 1 1 === Copify === 2 Version: 1. 1.32 Version: 1.2.0 3 3 Contributors: robmcvey 4 4 Tags: blog writers, automatic blogging, post writers, auto blogging, content, copywriting, copywriters, blogging, writers, writing, seo … … 39 39 == Changelog == 40 40 41 = 1.2.0 = 42 * Allows posts that are auto-published to be assigned to a custom user 43 41 44 = 1.1.3 = 42 45 * Tested up to WP 4.5
Note: See TracChangeset
for help on using the changeset viewer.