Changeset 2714505
- Timestamp:
- 04/25/2022 06:50:55 PM (4 years ago)
- Location:
- wordable
- Files:
-
- 1 added
- 5 edited
- 9 copied
-
tags/8.0.6 (added)
-
tags/8.0.6/includes (copied) (copied from wordable/trunk/includes)
-
tags/8.0.6/includes/action_params.php (copied) (copied from wordable/trunk/includes/action_params.php)
-
tags/8.0.6/includes/actions.php (copied) (copied from wordable/trunk/includes/actions.php)
-
tags/8.0.6/includes/connector.php (copied) (copied from wordable/trunk/includes/connector.php) (1 diff)
-
tags/8.0.6/includes/wordable_plugin.php (copied) (copied from wordable/trunk/includes/wordable_plugin.php) (2 diffs)
-
tags/8.0.6/readme.txt (copied) (copied from wordable/trunk/readme.txt) (2 diffs)
-
tags/8.0.6/settings (copied) (copied from wordable/trunk/settings)
-
tags/8.0.6/settings/views/authors.php (copied) (copied from wordable/trunk/settings/views/authors.php) (1 diff)
-
tags/8.0.6/wordable.php (copied) (copied from wordable/trunk/wordable.php) (1 diff)
-
trunk/includes/connector.php (modified) (1 diff)
-
trunk/includes/wordable_plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/settings/views/authors.php (modified) (1 diff)
-
trunk/wordable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wordable/tags/8.0.6/includes/connector.php
r2713005 r2714505 37 37 38 38 foreach ($this->wordable_plugin->authors() as $author) { 39 if ($author-> author_login == "") {39 if ($author->user_login == "") { 40 40 continue; 41 41 } 42 42 43 array_push($serialized_authors, "$author->ID:$author->author_login"); 43 if($author->display_name) { 44 array_push($serialized_authors, "$author->ID:$author->display_name"); 45 } else { 46 array_push($serialized_authors, "$author->ID:$author->user_login"); 47 } 44 48 } 45 49 -
wordable/tags/8.0.6/includes/wordable_plugin.php
r2713005 r2714505 5 5 private $api_host_cache; 6 6 private $secret_cache; 7 private $authors_cache;8 7 private $categories_cache; 9 8 private $connector_instance; … … 62 61 63 62 function authors() { 64 if(!$this->authors_cache) { 65 $this->authors_cache = get_users(array( 66 'role__in' => array('author'), 67 'fields' => array('ID', 'user_login', 'user_email', 'display_name'), 68 'number' => 200 69 )); 70 } 71 72 return $this->authors_cache; 63 return get_users(array( 64 'role__in' => array('administrator', 'editor', 'author'), 65 'fields' => array('ID', 'user_login', 'user_email', 'display_name'), 66 'number' => 200 67 )); 73 68 } 74 69 -
wordable/tags/8.0.6/readme.txt
r2713005 r2714505 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 Stable Tag: 8.0. 59 Stable Tag: 8.0.6 10 10 11 11 This plugin allows you to instantly export Google Docs to WordPress posts or pages. … … 55 55 56 56 == Changelog == 57 58 = 8.0.6 = 59 * Fetching authors, editors and admins as authors 60 * Using author's "display name" when available 57 61 58 62 = 8.0.5 = -
wordable/tags/8.0.6/settings/views/authors.php
r2713005 r2714505 8 8 <div class='w-row'> 9 9 <div class='w-col w-col-4 w-col-medium-6 w-col-small-6 w-col-tiny-6'> 10 <div class='text-block-5'><?php echo esc_html($author->user_login) ?></div> 10 <div class='text-block-5'> 11 <?php 12 if($author->display_name) { 13 echo esc_html($author->display_name); 14 } else { 15 echo esc_html($author->user_email); 16 } 17 ?> 18 </div> 11 19 </div> 12 20 <div class='w-clearfix w-col w-col-8 w-col-medium-6 w-col-small-6 w-col-tiny-6'> -
wordable/tags/8.0.6/wordable.php
r2713005 r2714505 4 4 * Plugin URI: http://wordable.io 5 5 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages. 6 * Version: 8.0. 56 * Version: 8.0.6 7 7 * Author: Wordable 8 8 * Author URI: https://wordable.io 9 9 * Tested up to: 5.9.2 10 10 * Requires at least: 5.0 11 * Stable tag: 8.0. 511 * Stable tag: 8.0.6 12 12 * 13 13 * Wordpress 5.0+ 14 14 */ 15 15 16 define('WORDABLE_VERSION', '8.0. 5');16 define('WORDABLE_VERSION', '8.0.6'); 17 17 18 18 include 'includes/wordable_plugin.php'; -
wordable/trunk/includes/connector.php
r2713005 r2714505 37 37 38 38 foreach ($this->wordable_plugin->authors() as $author) { 39 if ($author-> author_login == "") {39 if ($author->user_login == "") { 40 40 continue; 41 41 } 42 42 43 array_push($serialized_authors, "$author->ID:$author->author_login"); 43 if($author->display_name) { 44 array_push($serialized_authors, "$author->ID:$author->display_name"); 45 } else { 46 array_push($serialized_authors, "$author->ID:$author->user_login"); 47 } 44 48 } 45 49 -
wordable/trunk/includes/wordable_plugin.php
r2713005 r2714505 5 5 private $api_host_cache; 6 6 private $secret_cache; 7 private $authors_cache;8 7 private $categories_cache; 9 8 private $connector_instance; … … 62 61 63 62 function authors() { 64 if(!$this->authors_cache) { 65 $this->authors_cache = get_users(array( 66 'role__in' => array('author'), 67 'fields' => array('ID', 'user_login', 'user_email', 'display_name'), 68 'number' => 200 69 )); 70 } 71 72 return $this->authors_cache; 63 return get_users(array( 64 'role__in' => array('administrator', 'editor', 'author'), 65 'fields' => array('ID', 'user_login', 'user_email', 'display_name'), 66 'number' => 200 67 )); 73 68 } 74 69 -
wordable/trunk/readme.txt
r2713005 r2714505 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 Stable Tag: 8.0. 59 Stable Tag: 8.0.6 10 10 11 11 This plugin allows you to instantly export Google Docs to WordPress posts or pages. … … 55 55 56 56 == Changelog == 57 58 = 8.0.6 = 59 * Fetching authors, editors and admins as authors 60 * Using author's "display name" when available 57 61 58 62 = 8.0.5 = -
wordable/trunk/settings/views/authors.php
r2713005 r2714505 8 8 <div class='w-row'> 9 9 <div class='w-col w-col-4 w-col-medium-6 w-col-small-6 w-col-tiny-6'> 10 <div class='text-block-5'><?php echo esc_html($author->user_login) ?></div> 10 <div class='text-block-5'> 11 <?php 12 if($author->display_name) { 13 echo esc_html($author->display_name); 14 } else { 15 echo esc_html($author->user_email); 16 } 17 ?> 18 </div> 11 19 </div> 12 20 <div class='w-clearfix w-col w-col-8 w-col-medium-6 w-col-small-6 w-col-tiny-6'> -
wordable/trunk/wordable.php
r2713005 r2714505 4 4 * Plugin URI: http://wordable.io 5 5 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages. 6 * Version: 8.0. 56 * Version: 8.0.6 7 7 * Author: Wordable 8 8 * Author URI: https://wordable.io 9 9 * Tested up to: 5.9.2 10 10 * Requires at least: 5.0 11 * Stable tag: 8.0. 511 * Stable tag: 8.0.6 12 12 * 13 13 * Wordpress 5.0+ 14 14 */ 15 15 16 define('WORDABLE_VERSION', '8.0. 5');16 define('WORDABLE_VERSION', '8.0.6'); 17 17 18 18 include 'includes/wordable_plugin.php';
Note: See TracChangeset
for help on using the changeset viewer.