Plugin Directory

Changeset 2714505


Ignore:
Timestamp:
04/25/2022 06:50:55 PM (4 years ago)
Author:
wordable
Message:

8.0.6

Location:
wordable
Files:
1 added
5 edited
9 copied

Legend:

Unmodified
Added
Removed
  • wordable/tags/8.0.6/includes/connector.php

    r2713005 r2714505  
    3737
    3838    foreach ($this->wordable_plugin->authors() as $author) {
    39       if ($author->author_login == "") {
     39      if ($author->user_login == "") {
    4040        continue;
    4141      }
    4242
    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      }
    4448    }
    4549
  • wordable/tags/8.0.6/includes/wordable_plugin.php

    r2713005 r2714505  
    55  private $api_host_cache;
    66  private $secret_cache;
    7   private $authors_cache;
    87  private $categories_cache;
    98  private $connector_instance;
     
    6261
    6362  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    ));
    7368  }
    7469
  • wordable/tags/8.0.6/readme.txt

    r2713005 r2714505  
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 Stable Tag: 8.0.5
     9Stable Tag: 8.0.6
    1010
    1111This plugin allows you to instantly export Google Docs to WordPress posts or pages.
     
    5555
    5656== Changelog ==
     57
     58= 8.0.6 =
     59* Fetching authors, editors and admins as authors
     60* Using author's "display name" when available
    5761
    5862= 8.0.5 =
  • wordable/tags/8.0.6/settings/views/authors.php

    r2713005 r2714505  
    88        <div class='w-row'>
    99          <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>
    1119          </div>
    1220          <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  
    44 * Plugin URI: http://wordable.io
    55 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages.
    6  * Version: 8.0.5
     6 * Version: 8.0.6
    77 * Author: Wordable
    88 * Author URI: https://wordable.io
    99 * Tested up to: 5.9.2
    1010 * Requires at least: 5.0
    11  * Stable tag: 8.0.5
     11 * Stable tag: 8.0.6
    1212 *
    1313 * Wordpress 5.0+
    1414 */
    1515
    16 define('WORDABLE_VERSION', '8.0.5');
     16define('WORDABLE_VERSION', '8.0.6');
    1717
    1818include 'includes/wordable_plugin.php';
  • wordable/trunk/includes/connector.php

    r2713005 r2714505  
    3737
    3838    foreach ($this->wordable_plugin->authors() as $author) {
    39       if ($author->author_login == "") {
     39      if ($author->user_login == "") {
    4040        continue;
    4141      }
    4242
    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      }
    4448    }
    4549
  • wordable/trunk/includes/wordable_plugin.php

    r2713005 r2714505  
    55  private $api_host_cache;
    66  private $secret_cache;
    7   private $authors_cache;
    87  private $categories_cache;
    98  private $connector_instance;
     
    6261
    6362  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    ));
    7368  }
    7469
  • wordable/trunk/readme.txt

    r2713005 r2714505  
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 Stable Tag: 8.0.5
     9Stable Tag: 8.0.6
    1010
    1111This plugin allows you to instantly export Google Docs to WordPress posts or pages.
     
    5555
    5656== Changelog ==
     57
     58= 8.0.6 =
     59* Fetching authors, editors and admins as authors
     60* Using author's "display name" when available
    5761
    5862= 8.0.5 =
  • wordable/trunk/settings/views/authors.php

    r2713005 r2714505  
    88        <div class='w-row'>
    99          <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>
    1119          </div>
    1220          <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  
    44 * Plugin URI: http://wordable.io
    55 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages.
    6  * Version: 8.0.5
     6 * Version: 8.0.6
    77 * Author: Wordable
    88 * Author URI: https://wordable.io
    99 * Tested up to: 5.9.2
    1010 * Requires at least: 5.0
    11  * Stable tag: 8.0.5
     11 * Stable tag: 8.0.6
    1212 *
    1313 * Wordpress 5.0+
    1414 */
    1515
    16 define('WORDABLE_VERSION', '8.0.5');
     16define('WORDABLE_VERSION', '8.0.6');
    1717
    1818include 'includes/wordable_plugin.php';
Note: See TracChangeset for help on using the changeset viewer.