Plugin Directory

Changeset 2696724


Ignore:
Timestamp:
03/20/2022 10:23:37 PM (4 years ago)
Author:
centangle
Message:

compatibility check for 5.9.2

Location:
wp-custom-rest-api-generator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-custom-rest-api-generator/trunk/admin/wpcrag_settings_api_function.php

    r2273372 r2696724  
    1212    $user_info = get_user_meta(get_the_author_meta('ID'));
    1313
    14     $author_meta = (object) ['author_name' => implode($user_info['nickname']),
    15 
    16         'author_description' => implode($user_info['description']),
    17 
    18         'author_user_level' => (int) implode($user_info['wp_user_level']),
    19 
    20         'author_avatar' => get_avatar_url(get_the_author_meta('ID')),
    21 
    22     ];
    23 
    24     return $author_meta;
    25 
     14    if(! empty($user_info)) {
     15        $author_meta = (object) ['author_name' => implode($user_info['nickname']),
     16   
     17            'author_description' => implode($user_info['description']),
     18   
     19            'author_user_level' => (int) implode($user_info['wp_user_level']),
     20   
     21            'author_avatar' => get_avatar_url(get_the_author_meta('ID')),
     22   
     23        ];
     24   
     25        return $author_meta;
     26    }
    2627}
    2728
  • wp-custom-rest-api-generator/trunk/readme.txt

    r2581705 r2696724  
    44Tags: rest api, rest, api, wp api, admin, json, custom fields, taxonomy
    55Requires at least: 5.0
    6 Tested up to: 5.8
    7 Stable tag: 1.0.4
     6Tested up to: 5.9.2
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46= 1.0.5 =
     47* Tested with the latest build
     48
    4649= 1.0.4 =
    4750* Tested with the latest build
  • wp-custom-rest-api-generator/trunk/wp_custom_rest_api_generator.php

    r2581705 r2696724  
    99Description:  Admin panel for enabling Author Meta, Featured Image, Custom Fields and Taxonomies for all available Post Types in WordPress Rest API
    1010
    11 Version:      1.0.4
     11Version:      1.0.5
    1212
    1313Author:       Centangle Interactive
Note: See TracChangeset for help on using the changeset viewer.