Plugin Directory

Changeset 2683660


Ignore:
Timestamp:
02/23/2022 11:06:12 AM (4 years ago)
Author:
kafkai
Message:

Update to version 1.5.5 from GitHub

Location:
kafkai/trunk
Files:
2 added
2 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • kafkai/trunk/i18n/kafkai.pot

    r2682292 r2683660  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Kafkai - AI Writer Plugin 1.5.4\n"
     5"Project-Id-Version: Kafkai - AI Writer Plugin 1.5.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kafkai\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    9191msgstr ""
    9292
    93 #: inc/Admin/Api.php:173
     93#: inc/Admin/API.php:173
    9494msgid "Authorization token is not available. Please go to %1$splugin settings%2$s and provide credentials or re-generate token."
    9595msgstr ""
     
    154154msgstr ""
    155155
    156 #: inc/Admin/Updater.php:169
     156#: inc/Admin/Niches.php:169
    157157msgid "New niches are available for the plugin. Please go to %1$sSettings page%2$s to update."
    158158msgstr ""
    159159
    160 #: inc/Admin/Updater.php:179
     160#: inc/Admin/Niches.php:179
    161161msgid "New languages are available for the plugin. Please go to %1$sSettings page%2$s to update."
    162162msgstr ""
    163163
    164 #: inc/Admin/Updater.php:205
     164#: inc/Admin/Niches.php:205
    165165msgid "Update Niches & Languages"
    166166msgstr ""
  • kafkai/trunk/inc/Admin.php

    r2525142 r2683660  
    77
    88use Niteo\Kafkai\Plugin\Admin\Articles;
    9 use Niteo\Kafkai\Plugin\Admin\Updater;
     9use Niteo\Kafkai\Plugin\Admin\Niches;
    1010
    1111/**
     
    2727     */
    2828    public function __construct() {
    29         new Updater();
     29        new Niches();
    3030
    3131        add_action( 'admin_menu', array( $this, 'add_menu' ), PHP_INT_MAX );
  • kafkai/trunk/inc/Admin/Articles.php

    r2525142 r2683660  
    9494
    9595        // Make connection to API
    96         $api      = new Api();
     96        $api      = new API();
    9797        $response = $api->call(
    9898            sprintf(
     
    295295
    296296        // Make connection to API
    297         $api      = new Api();
     297        $api      = new API();
    298298        $response = $api->call(
    299299            '/articles/generate',
     
    577577        try {
    578578            // Make connection to API
    579             $api  = new Api();
     579            $api  = new API();
    580580            $call = $api->call(
    581581                '/articles/' . $article_id,
  • kafkai/trunk/inc/Admin/Helper.php

    r2525142 r2683660  
    88use Niteo\Kafkai\Plugin\Config;
    99use Niteo\Kafkai\Plugin\Helper as MainHelper;
    10 use Niteo\Kafkai\Plugin\Admin\Api;
     10use Niteo\Kafkai\Plugin\Admin\API;
    1111
    1212trait Helper {
     
    9191
    9292        // API call for authentication
    93         $api      = new Api();
     93        $api      = new API();
    9494        $response = $api->authenticate();
    9595
     
    290290     */
    291291    public function add_notice( $code, $response ) : void {
    292         echo '<div class="notice notice-' . $code . ' is-dismissible"><p>' . $response . '</p></div>';
     292        echo esc_html('<div class="notice notice-' . $code . ' is-dismissible"><p>' . $response . '</p></div>');
    293293    }
    294294
  • kafkai/trunk/inc/Admin/views/generate.php

    r2525142 r2683660  
    2525
    2626    <form method="post">
    27         <input type="hidden" name="_<?php echo Config::PLUGIN_PREFIX; ?>nonce" id="_<?php echo Config::PLUGIN_PREFIX; ?>nonce" value="<?php echo esc_attr( wp_create_nonce( Config::PLUGIN_SLUG . '-nonce' ) ); ?>">
     27        <input type="hidden" name="_<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>nonce" id="_<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>nonce" value="<?php echo esc_attr( wp_create_nonce( Config::PLUGIN_SLUG . '-nonce' ) ); ?>">
    2828
    2929        <table class="form-table">
     
    3131                <tr>
    3232                    <th scope="row">
    33                         <label for="<?php echo Config::PLUGIN_PREFIX; ?>niche">
     33                        <label for="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>niche">
    3434                            <?php esc_html_e( 'Niche', 'kafkai' ); ?>
    3535                        </label>
    3636                    </th>
    3737                    <td>
    38                         <select name="<?php echo Config::PLUGIN_PREFIX; ?>niche" id="<?php echo Config::PLUGIN_PREFIX; ?>niche" class="regular-text">
     38                        <select name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>niche" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>niche" class="regular-text">
    3939                            <?php
    4040
     
    5050                <tr>
    5151                    <th scope="row">
    52                         <label for="<?php echo Config::PLUGIN_PREFIX; ?>language">
     52                        <label for="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>language">
    5353                            <?php esc_html_e( 'Language', 'kafkai' ); ?>
    5454                        </label>
    5555                    </th>
    5656                    <td>
    57                         <select name="<?php echo Config::PLUGIN_PREFIX; ?>language" id="<?php echo Config::PLUGIN_PREFIX; ?>language" class="regular-text">
     57                        <select name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>language" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>language" class="regular-text">
    5858                            <?php
    5959
     
    8484                <tr>
    8585                    <td class="no-margin-left">
    86                         <textarea name="<?php echo Config::PLUGIN_PREFIX; ?>seed" id="<?php echo Config::PLUGIN_PREFIX; ?>seed" class="large-text" rows="4" placeholder="<?php esc_attr_e( 'Optional', 'kafkai' ); ?>"></textarea>
     86                        <textarea name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>seed" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>seed" class="large-text" rows="4" placeholder="<?php esc_attr_e( 'Optional', 'kafkai' ); ?>"></textarea>
    8787                        <p class="help-text"><?php esc_html_e( 'Please note that advanced articles take longer to finish.', 'kafkai' ); ?></p>
    8888                    </td>
     
    9292
    9393        <p class="submit">
    94             <input type="submit" name="<?php echo Config::PLUGIN_PREFIX; ?>generate" value="<?php esc_attr_e( 'Generate Article', 'kafkai' ); ?>" class="button button-primary">
     94            <input type="submit" name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>generate" value="<?php esc_attr_e( 'Generate Article', 'kafkai' ); ?>" class="button button-primary">
    9595        </p>
    9696    </form>
  • kafkai/trunk/inc/Admin/views/import.php

    r2516263 r2683660  
    1313    </h1>
    1414
    15     <a href="<?php echo add_query_arg( array( 'action' => 'refresh_list' ) ); ?>" class="page-title-action">
     15    <a href="<?php echo esc_attr( add_query_arg( array( 'action' => 'refresh_list' ) ) ); ?>" class="page-title-action">
    1616        <?php esc_html_e( 'Refresh List', 'kafkai' ); ?>
    1717    </a>
     
    4949                    <?php if ( (int) $this->articles->response['pageCount'] > 1 && (int) $this->articles->response['pageNum'] !== 1 ) : ?>
    5050                        <?php if ( (int) $this->articles->response['pageNum'] > 2 ) : ?>
    51                         <a class="prev-page button" href="<?php echo add_query_arg( 'paged', 1 ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">«</span></a>
     51                        <a class="prev-page button" href="<?php echo esc_attr( add_query_arg( 'paged', 1 ) ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">«</span></a>
    5252                    <?php endif; ?>
    53                         <a class="prev-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageNum'] - 1 ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">‹</span></a>&nbsp;
     53                        <a class="prev-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageNum'] - 1 ) ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">‹</span></a>&nbsp;
    5454                    <?php endif; ?>&nbsp;
    5555
    56                     <span class="displaying-num">Page <?php echo $this->articles->response['pageNum']; ?> of <?php echo $this->articles->response['pageCount']; ?></span>
     56                    <span class="displaying-num">Page <?php echo esc_html($this->articles->response['pageNum']); ?> of <?php echo esc_html($this->articles->response['pageCount']); ?></span>
    5757
    5858                    <?php if ( (int) $this->articles->response['pageCount'] > $this->articles->response['pageNum'] ) : ?>
    59                         <a class="next-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageNum'] + 1 ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">›</span></a>&nbsp;
     59                        <a class="next-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageNum'] + 1 ) ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">›</span></a>&nbsp;
    6060                        <?php if ( (int) $this->articles->response['pageCount'] > 2 && ( $this->articles->response['pageCount'] - $this->articles->response['pageNum'] ) > 1 ) : ?>
    61                         <a class="next-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageCount'] ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">»</span></a>
     61                        <a class="next-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageCount'] ) ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">»</span></a>
    6262                    <?php endif; ?>
    6363                    <?php endif; ?>
     
    101101                        foreach ( $this->articles->response['articles'] as $key => $data ) :
    102102                            $key         = esc_attr( $key );
    103                             $title       = trim( esc_html( $data['title'] ) );
     103                            $article_title       = trim( esc_html( $data['title'] ) );
    104104                            $niche       = esc_html( $data['niche'] );
    105105                            $state       = esc_attr( $data['state'] );
    106                             $status      = esc_attr__( 'raw', 'kafkai' );
     106                            $article_status      = esc_attr__( 'raw', 'kafkai' );
    107107                            $niche_image = strtolower( str_replace( ' ', '_', $this->articles->niche_name( $niche ) ) );
    108108
     
    113113                            // Check for import status
    114114                            if ( in_array( $key, $this->articles->imported_article_ids ) ) {
    115                                 $status = esc_attr__( 'imported', 'kafkai' );
     115                                $article_status = esc_attr__( 'imported', 'kafkai' );
    116116                            }
    117117
    118118                            ?>
    119                                 <tr id="article-<?php echo $key; ?>" class="niche-<?php echo $niche; ?> state-<?php echo $state; ?> status-<?php echo $status; ?>">
     119                                <tr id="article-<?php echo esc_attr($key); ?>" class="niche-<?php echo esc_attr($niche); ?> state-<?php echo esc_attr($state); ?> status-<?php echo esc_attr($article_status); ?>">
    120120                                    <td class="image column-image">
    121                                         <img src="<?php echo Config::$plugin_url . 'assets/admin/images/' . $niche_image . '.svg'; ?>" alt="<?php echo $niche; ?>" onerror="javascript:this.style.display='none'">
     121                                        <img src="<?php echo esc_attr(Config::$plugin_url . 'assets/admin/images/' . $niche_image . '.svg'); ?>" alt="<?php echo esc_attr($niche); ?>" onerror="javascript:this.style.display='none'">
    122122                                    </td>
    123123
     
    125125                                <?php
    126126
    127                                 if ( strlen( $title ) > 120 ) {
    128                                     echo '<a href="javascript:;" class="fetch-article" data-id="' . $key . '">' . substr( $title, 0, 120 ) . '</a>...';
     127                                if ( strlen( $article_title ) > 120 ) {
     128                                    echo esc_html( '<a href="javascript:;" class="fetch-article" data-id="' . $key . '">' . substr( $title, 0, 120 ) . '</a>...' );
    129129                                } else {
    130                                     echo '<a href="javascript:;" class="fetch-article" data-id="' . $key . '">' . $title . '</a>';
     130                                    echo esc_html( '<a href="javascript:;" class="fetch-article" data-id="' . $key . '">' . $article_title . '</a>' );
    131131                                }
    132132
     
    135135
    136136                                    <td class="niche column-niche" data-colname="<?php esc_html_e( 'Niche', 'kafkai' ); ?>">
    137                                     <?php echo $this->articles->niche_name( $niche ); ?>
     137                                    <?php echo esc_html( $this->articles->niche_name( $niche ) ); ?>
    138138                                    </td>
    139139
    140140                                    <td class="date column-date" data-colname="<?php esc_html_e( 'Date', 'kafkai' ); ?>">
    141                                     <?php echo $formatted_date; ?>
     141                                    <?php echo esc_html( $formatted_date ); ?>
    142142                                    </td>
    143143                                </tr>
     
    151151                                        <?php
    152152
    153                                             echo sprintf(
    154                                                 esc_html__( 'There are no articles under your account. You can %1$sclick here%2$s to generate one.', 'kafkai' ),
    155                                                 '<a href="' . self_admin_url( 'admin.php?page=' . Config::PLUGIN_PREFIX . 'generate' ) . '">',
    156                                                 '</a>'
    157                                             );
     153                                            echo esc_html(
     154                                                sprintf(
     155                                                    esc_html__( 'There are no articles under your account. You can %1$sclick here%2$s to generate one.', 'kafkai' ),
     156                                                    '<a href="' . self_admin_url( 'admin.php?page=' . esc_attr(Config::PLUGIN_PREFIX) . 'generate' ) . '">',
     157                                                    '</a>'
     158                                                )
     159                                            );
    158160
    159161                                        ?>
     
    212214                        <?php if ( (int) $this->articles->response['pageCount'] > 1 && (int) $this->articles->response['pageNum'] !== 1 ) : ?>
    213215                                <?php if ( (int) $this->articles->response['pageNum'] > 2 ) : ?>
    214                                     <a class="prev-page button" href="<?php echo add_query_arg( 'paged', 1 ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">«</span></a>
     216                                    <a class="prev-page button" href="<?php echo esc_attr( add_query_arg( 'paged', 1 ) ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">«</span></a>
    215217                                <?php endif; ?>
    216                                     <a class="prev-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageNum'] - 1 ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">‹</span></a>&nbsp;
     218                                    <a class="prev-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageNum'] - 1 ) ); ?>"><span class="screen-reader-text">Previous page</span><span aria-hidden="true">‹</span></a>&nbsp;
    217219                                <?php endif; ?>&nbsp;
    218220
    219                                 <span class="displaying-num">Page <?php echo $this->articles->response['pageNum']; ?> of <?php echo $this->articles->response['pageCount']; ?></span>
     221                                <span class="displaying-num">Page <?php echo esc_html($this->articles->response['pageNum']); ?> of <?php echo esc_html($this->articles->response['pageCount']); ?></span>
    220222
    221223                            <?php if ( (int) $this->articles->response['pageCount'] > $this->articles->response['pageNum'] ) : ?>
    222                                     <a class="next-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageNum'] + 1 ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">›</span></a>&nbsp;
     224                                    <a class="next-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageNum'] + 1 ) ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">›</span></a>&nbsp;
    223225                                    <?php if ( (int) $this->articles->response['pageCount'] > 2 && ( $this->articles->response['pageCount'] - $this->articles->response['pageNum'] ) > 1 ) : ?>
    224                                     <a class="next-page button" href="<?php echo add_query_arg( 'paged', $this->articles->response['pageCount'] ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">»</span></a>
     226                                    <a class="next-page button" href="<?php echo esc_attr( add_query_arg( 'paged', $this->articles->response['pageCount'] ) ); ?>"><span class="screen-reader-text">Next page</span><span aria-hidden="true">»</span></a>
    225227                                <?php endif; ?>
    226228                            <?php endif; ?>
     
    235237    </form>
    236238
    237     <div id="<?php echo Config::PLUGIN_PREFIX; ?>inline-article-container" class="single-article-container">
    238         <form method="post" id="<?php echo Config::PLUGIN_PREFIX; ?>import_form">
     239    <div id="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>inline-article-container" class="single-article-container">
     240        <form method="post" id="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>import_form">
    239241            <div class="single-article-scrollable">
    240242                <div class="article-actions top">
     
    259261            <div class="article-actions bottom">
    260262                <p>
    261                     <label for="<?php echo Config::PLUGIN_PREFIX; ?>article-import-status">
     263                    <label for="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article-import-status">
    262264                        <strong><?php esc_html_e( 'Status', 'kafkai' ); ?></strong>
    263265                    </label>&nbsp;
     
    270272                        // Make sure the array is not empty
    271273                    if ( ! empty( $statuses ) ) {
    272                         echo '<select name="' . Config::PLUGIN_PREFIX . 'article-import-status" id="' . Config::PLUGIN_PREFIX . 'article-import-status">';
     274                        echo '<select name="' . esc_attr(Config::PLUGIN_PREFIX) . 'article-import-status" id="' . esc_attr(Config::PLUGIN_PREFIX) . 'article-import-status">';
    273275
    274276                        // Loop over array
    275277                        foreach ( $statuses as $status_key => $status_name ) {
    276                             echo sprintf(
    277                                 '<option value="%s">%s</option>',
    278                                 $status_key,
    279                                 $status_name
    280                             );
     278                            echo esc_html(
     279                                sprintf(
     280                                    '<option value="%s">%s</option>',
     281                                    $status_key,
     282                                    $status_name
     283                                )
     284                            );
    281285                        }
    282286
     
    290294
    291295                <p>
    292                     <label for="<?php echo Config::PLUGIN_PREFIX; ?>article-import-author">
     296                    <label for="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article-import-author">
    293297                        <strong><?php esc_html_e( 'Author', 'kafkai' ); ?></strong>
    294298                    </label>&nbsp;
     
    306310                        // Make sure the array is not empty
    307311                        if ( ! empty( $users ) ) {
    308                             echo '<select name="' . Config::PLUGIN_PREFIX . 'article-import-author" id="' . Config::PLUGIN_PREFIX . 'article-import-author">';
     312                            echo '<select name="' . esc_attr(Config::PLUGIN_PREFIX) . 'article-import-author" id="' . esc_attr(Config::PLUGIN_PREFIX) . 'article-import-author">';
    309313
    310314                            // Loop over array
    311315                            foreach ( $users as $user ) {
    312                                 echo sprintf(
    313                                     '<option value="%s">%s</option>',
    314                                     $user->data->ID,
    315                                     $user->data->user_login
    316                                 );
     316                                echo esc_html(
     317                                    sprintf(
     318                                        '<option value="%s">%s</option>',
     319                                        $user->data->ID,
     320                                        $user->data->user_login
     321                                    )
     322                                );
    317323                            }
    318324
     
    326332
    327333                <p class="align-right">
    328                     <input type="hidden" name="<?php echo Config::PLUGIN_PREFIX; ?>article_id" id="<?php echo Config::PLUGIN_PREFIX; ?>article_id">
    329                     <input type="submit" name="<?php echo Config::PLUGIN_PREFIX; ?>article_import" id="<?php echo Config::PLUGIN_PREFIX; ?>article_import" value="<?php esc_attr_e( 'Import Article', 'kafkai' ); ?>" class="button button-primary">
     334                    <input type="hidden" name="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article_id" id="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article_id">
     335                    <input type="submit" name="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article_import" id="<?php echo esc_attr(Config::PLUGIN_PREFIX); ?>article_import" value="<?php esc_attr_e( 'Import Article', 'kafkai' ); ?>" class="button button-primary">
    330336                </p>
    331337            </div>
  • kafkai/trunk/inc/Admin/views/settings.php

    r2525142 r2683660  
    2525
    2626    <form method="post">
    27     <input type="hidden" name="_<?php echo Config::PLUGIN_PREFIX; ?>nonce" id="_<?php echo Config::PLUGIN_PREFIX; ?>nonce" value="<?php echo esc_attr( wp_create_nonce( Config::PLUGIN_SLUG . '-nonce' ) ); ?>">
     27    <input type="hidden" name="_<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>nonce" id="_<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>nonce" value="<?php echo esc_attr( wp_create_nonce( Config::PLUGIN_SLUG . '-nonce' ) ); ?>">
    2828
    2929        <table class="form-table">
     
    3131                <tr>
    3232                    <th scope="row">
    33                         <label for="<?php echo Config::PLUGIN_PREFIX; ?>email"><?php esc_html_e( 'Email', 'kafkai' ); ?></label>
     33                        <label for="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>email"><?php esc_html_e( 'Email', 'kafkai' ); ?></label>
    3434                    </th>
    3535                    <td>
    36             <input type="text" name="<?php echo Config::PLUGIN_PREFIX; ?>email" id="<?php echo Config::PLUGIN_PREFIX; ?>email" class="regular-text" value="<?php echo $settings['email']; ?>">
     36            <input type="text" name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>email" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>email" class="regular-text" value="<?php echo esc_attr($settings['email']); ?>">
    3737            <p class="description"><?php esc_html_e( 'Email address you use for login on Kafkai.', 'kafkai' ); ?></p>
    3838                    </td>
     
    4141        <tr>
    4242                    <th scope="row">
    43                         <label for="<?php echo Config::PLUGIN_PREFIX; ?>password"><?php esc_html_e( 'Password', 'kafkai' ); ?></label>
     43                        <label for="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>password"><?php esc_html_e( 'Password', 'kafkai' ); ?></label>
    4444                    </th>
    4545                    <td>
    46             <input type="password" name="<?php echo Config::PLUGIN_PREFIX; ?>password" id="<?php echo Config::PLUGIN_PREFIX; ?>password" class="regular-text" value="<?php echo $settings['password']; ?>">
     46            <input type="password" name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>password" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>password" class="regular-text" value="<?php echo esc_attr($settings['password']); ?>">
    4747            <p class="description"><?php esc_html_e( 'Account password for authentication.', 'kafkai' ); ?></p>
    4848                    </td>
     
    5151        <tr>
    5252                    <th scope="row">
    53                         <label for="<?php echo Config::PLUGIN_PREFIX; ?>token"><?php esc_html_e( 'Token', 'kafkai' ); ?></label>
     53                        <label for="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>token"><?php esc_html_e( 'Token', 'kafkai' ); ?></label>
    5454                    </th>
    5555                    <td>
    56             <input type="text" name="<?php echo Config::PLUGIN_PREFIX; ?>token" id="<?php echo Config::PLUGIN_PREFIX; ?>token" class="regular-text code" value="<?php echo $token; ?>" disabled>
     56            <input type="text" name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>token" id="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>token" class="regular-text code" value="<?php echo esc_attr( $token ); ?>" disabled>
    5757            <p class="description"><?php esc_html_e( 'Bearer token for authenticating Kafkai API calls.', 'kafkai' ); ?></p>
    5858            <p class="description"><?php esc_html_e( 'This is generated once valid credentials are processed.', 'kafkai' ); ?></p>
     
    6363
    6464        <p class="submit">
    65             <input type="submit" name="<?php echo Config::PLUGIN_PREFIX; ?>settings" value="<?php esc_attr_e( 'Save Settings', 'kafkai' ); ?>" class="button button-primary">
     65            <input type="submit" name="<?php echo esc_attr( Config::PLUGIN_PREFIX ); ?>settings" value="<?php esc_attr_e( 'Save Settings', 'kafkai' ); ?>" class="button button-primary">
    6666            <?php
    6767
  • kafkai/trunk/inc/Config.php

    r2682292 r2683660  
    5656     * @var string
    5757     */
    58     const PLUGIN_VERSION = '1.5.4';
     58    const PLUGIN_VERSION = '1.5.5';
    5959
    6060    /**
  • kafkai/trunk/kafkai.php

    r2682292 r2683660  
    33 * Plugin Name: Kafkai - AI Writer Plugin
    44 * Description: Kafkai is a machine-learning algorithm that can write articles from scratch. Cutting-edge technology for marketers and SEOs.
    5  * Version: 1.5.4
     5 * Version: 1.5.5
    66 * Requires at least: 4.2
    77 * Requires PHP: 7.3
     
    9292
    9393// Initialize plugin
    94 $plugin = new KafKai();
     94$KafKaiPlugin = new KafKai();
    9595
    9696// Tasks to be taken care of on activation
    97 register_activation_hook( __FILE__, array( $plugin, 'activate' ) );
     97register_activation_hook( __FILE__, array( $KafKaiPlugin, 'activate' ) );
  • kafkai/trunk/readme.txt

    r2682292 r2683660  
    44Requires at least: 4.2
    55Tested up to: 5.9
    6 Stable tag: 1.5.4
     6Stable tag: 1.5.5
    77Requires PHP: 7.3
    88License: GPLv3 or later
     
    3232== Changelog ==
    3333
    34 = 1.5.4 =
     34= 1.5.5 =
    3535* Update compatibility
    3636
  • kafkai/trunk/vendor/autoload.php

    r2682292 r2683660  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInite1e4a5a0992e571802f91089fad4dbfc::getLoader();
     7return ComposerAutoloaderInit9486b8a3b41cbd83b4329847196fceeb::getLoader();
  • kafkai/trunk/vendor/composer/autoload_classmap.php

    r2516263 r2683660  
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    1010    'Niteo\\Kafkai\\Plugin\\Admin' => $baseDir . '/inc/Admin.php',
    11     'Niteo\\Kafkai\\Plugin\\Admin\\Api' => $baseDir . '/inc/Admin/Api.php',
     11    'Niteo\\Kafkai\\Plugin\\Admin\\API' => $baseDir . '/inc/Admin/API.php',
    1212    'Niteo\\Kafkai\\Plugin\\Admin\\Articles' => $baseDir . '/inc/Admin/Articles.php',
    1313    'Niteo\\Kafkai\\Plugin\\Admin\\Helper' => $baseDir . '/inc/Admin/Helper.php',
    14     'Niteo\\Kafkai\\Plugin\\Admin\\Updater' => $baseDir . '/inc/Admin/Updater.php',
     14    'Niteo\\Kafkai\\Plugin\\Admin\\Niches' => $baseDir . '/inc/Admin/Niches.php',
    1515    'Niteo\\Kafkai\\Plugin\\Config' => $baseDir . '/inc/Config.php',
    1616    'Niteo\\Kafkai\\Plugin\\Helper' => $baseDir . '/inc/Helper.php',
  • kafkai/trunk/vendor/composer/autoload_real.php

    r2682292 r2683660  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInite1e4a5a0992e571802f91089fad4dbfc
     5class ComposerAutoloaderInit9486b8a3b41cbd83b4329847196fceeb
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInite1e4a5a0992e571802f91089fad4dbfc', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9486b8a3b41cbd83b4329847196fceeb', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInite1e4a5a0992e571802f91089fad4dbfc', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9486b8a3b41cbd83b4329847196fceeb', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequiree1e4a5a0992e571802f91089fad4dbfc($fileIdentifier, $file);
     61            composerRequire9486b8a3b41cbd83b4329847196fceeb($fileIdentifier, $file);
    6262        }
    6363
     
    7171 * @return void
    7272 */
    73 function composerRequiree1e4a5a0992e571802f91089fad4dbfc($fileIdentifier, $file)
     73function composerRequire9486b8a3b41cbd83b4329847196fceeb($fileIdentifier, $file)
    7474{
    7575    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • kafkai/trunk/vendor/composer/autoload_static.php

    r2682292 r2683660  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc
     7class ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb
    88{
    99    public static $files = array (
     
    4242        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    4343        'Niteo\\Kafkai\\Plugin\\Admin' => __DIR__ . '/../..' . '/inc/Admin.php',
    44         'Niteo\\Kafkai\\Plugin\\Admin\\Api' => __DIR__ . '/../..' . '/inc/Admin/Api.php',
     44        'Niteo\\Kafkai\\Plugin\\Admin\\API' => __DIR__ . '/../..' . '/inc/Admin/API.php',
    4545        'Niteo\\Kafkai\\Plugin\\Admin\\Articles' => __DIR__ . '/../..' . '/inc/Admin/Articles.php',
    4646        'Niteo\\Kafkai\\Plugin\\Admin\\Helper' => __DIR__ . '/../..' . '/inc/Admin/Helper.php',
    47         'Niteo\\Kafkai\\Plugin\\Admin\\Updater' => __DIR__ . '/../..' . '/inc/Admin/Updater.php',
     47        'Niteo\\Kafkai\\Plugin\\Admin\\Niches' => __DIR__ . '/../..' . '/inc/Admin/Niches.php',
    4848        'Niteo\\Kafkai\\Plugin\\Config' => __DIR__ . '/../..' . '/inc/Config.php',
    4949        'Niteo\\Kafkai\\Plugin\\Helper' => __DIR__ . '/../..' . '/inc/Helper.php',
     
    6666    {
    6767        return \Closure::bind(function () use ($loader) {
    68             $loader->prefixLengthsPsr4 = ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc::$prefixLengthsPsr4;
    69             $loader->prefixDirsPsr4 = ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc::$prefixDirsPsr4;
    70             $loader->classMap = ComposerStaticInite1e4a5a0992e571802f91089fad4dbfc::$classMap;
     68            $loader->prefixLengthsPsr4 = ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb::$prefixLengthsPsr4;
     69            $loader->prefixDirsPsr4 = ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb::$prefixDirsPsr4;
     70            $loader->classMap = ComposerStaticInit9486b8a3b41cbd83b4329847196fceeb::$classMap;
    7171
    7272        }, null, ClassLoader::class);
  • kafkai/trunk/vendor/composer/installed.php

    r2682292 r2683660  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'v1.5.4',
    4         'version' => '1.5.4.0',
     3        'pretty_version' => 'v1.5.5',
     4        'version' => '1.5.5.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'ad14035169d1741c44cf54fcd37619cfe342fea6',
     8        'reference' => '5de3c40ed2ebae242307fe6133b9a20e3f625994',
    99        'name' => 'teamniteo/kafkai-plugin',
    1010        'dev' => false,
     
    3939        ),
    4040        'teamniteo/kafkai-plugin' => array(
    41             'pretty_version' => 'v1.5.4',
    42             'version' => '1.5.4.0',
     41            'pretty_version' => 'v1.5.5',
     42            'version' => '1.5.5.0',
    4343            'type' => 'wordpress-plugin',
    4444            'install_path' => __DIR__ . '/../../',
    4545            'aliases' => array(),
    46             'reference' => 'ad14035169d1741c44cf54fcd37619cfe342fea6',
     46            'reference' => '5de3c40ed2ebae242307fe6133b9a20e3f625994',
    4747            'dev_requirement' => false,
    4848        ),
Note: See TracChangeset for help on using the changeset viewer.