Plugin Directory

Changeset 3079812


Ignore:
Timestamp:
05/01/2024 10:55:22 AM (23 months ago)
Author:
knowhalim
Message:

Some server behave differently when calling the API key. This version fix it so that WP GPT Poster can work if user is using such a server.

Location:
easily-post-gpt
Files:
33 added
3 edited

Legend:

Unmodified
Added
Removed
  • easily-post-gpt/trunk/README.txt

    r3078109 r3079812  
    33Tags: chatgpt, ai, gpt4, post from gpt, SEO, WP GPT Poster
    44Requires at least: 5.7
    5 Tested up to: 6.5
    6 Stable tag: 1.0.4
     5Tested up to: 6.5.2
     6Stable tag: 1.0.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • easily-post-gpt/trunk/admin/class-gpt2wp-admin.php

    r3078109 r3079812  
    129129function gpt2wp_check_api_key($request) {
    130130    $headers = apache_request_headers();
    131     $h=print_r($headers,true);
     131    $headers = array_change_key_case($headers, CASE_LOWER);
    132132    $api_key = isset($headers['apikey']) ? $headers['apikey'] : '';
    133 
     133    if ($api_key==""){
     134        $api_key = isset($headers['Apikey']) ? $headers['Apikey'] : '';
     135    }
    134136
    135137    if ($api_key !=  gpt2wp_get_gptwp_api()) {
  • easily-post-gpt/trunk/gpt2wp.php

    r3078110 r3079812  
    1717 * Plugin URI:        https://gpttowp.com
    1818 * Description:       Easily post from ChatGPT to your WP without writing any codes.
    19  * Version:           1.0.4
     19 * Version:           1.0.5
    2020 * Author:            Knowhalim
    2121 * Author URI:        https://knowhalim.com/
     
    3232
    3333
    34 define( 'GPT2WP_VERSION', '1.0.4' );
     34define( 'GPT2WP_VERSION', '1.0.5' );
    3535
    3636
Note: See TracChangeset for help on using the changeset viewer.