Plugin Directory

Changeset 2819940


Ignore:
Timestamp:
11/17/2022 05:13:14 PM (3 years ago)
Author:
seomantis
Message:

new awesome version! all bugs fixed! stay free

Location:
seo-copywriting
Files:
106 added
5 edited

Legend:

Unmodified
Added
Removed
  • seo-copywriting/trunk/README.txt

    r2766591 r2819940  
    1 === SEO Copywriting ===
     1=== seocopy ===
    22Contributors: WP SEO Plugins
    33Donate link: https://wpseoplugins.org
    4 Tags: keyword, research, seo
     4Tags: lsi keywords, google suggest, sentiment, artificial intelligence, seo keyword, wordpress keywords, google keywords, keyword research, google seo, seo, search engine optimization, google search console, seo wordpress
    55Requires at least: 4.7
    6 Tested up to: 5.8
    7 Stable tag: 2.0.2
     6Tested up to: 6.2
     7Stable tag: 2.1
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    1414== Description ==
    1515
    16 SEO Copywriting is a powerful plugin that helps you add new keywords in your wordpress posts. Get some new keywords with ease! SEO Copy helps keywords research in WordPress.
     16SEO Copy is a powerful plugin that helps you add new keywords in your wordpress posts. Get some new keywords with ease! SEO Copy helps keywords research in WordPress.
    1717
    1818For make SEO Copy works you have to create an account in wpseoplugins.org and generate an API KEY. This can be done easily in settings page of SEO Copy. When API KEY is generated you have to use search button in SEO Copy Metabox inside post page.
     
    2020From settings page you have 2 methods for generate API KEY, login and registration. Both of them perform a call to api.wpseoplugins.org using email, password, name and surname. All of your data is treated according to our privacy policy (https://wpseoplugins.org/privacy-policy/) and our terms and conditions (https://wpseoplugins.org/terms-conditions/).
    2121
    22 Seo Copywriting, Keyword research made easy!
     22Seo Copy, Keyword research made easy!
    2323
    2424== Installation ==
  • seo-copywriting/trunk/admin/class-seocopy-admin.php

    r2766591 r2819940  
    110110            ), $this->version, false);
    111111
     112    }
     113
     114    public function start_session(){
     115        if (!session_id())
     116            session_start();
    112117    }
    113118
     
    440445            );
    441446            $data = wp_remote_get( $remote_get, $args );
    442             $rowData = json_decode( $data['body'] );
    443 
    444             $api_limit = $rowData->response->api_limit_seo_copy ?? 0;
    445             $api_call = $rowData->response->api_call_seo_copy ?? 0;
    446 
    447             return $api_limit - $api_call;
     447            if( !is_wp_error( $data ) ) {
     448                $rowData = json_decode( $data['body'] );
     449
     450                $api_limit = $rowData->response->api_limit_seo_copy ?? 0;
     451                $api_call = $rowData->response->api_call_seo_copy ?? 0;
     452
     453                return $api_limit - $api_call;
     454            }
    448455        }
    449456    }
  • seo-copywriting/trunk/admin/partials/seocopy-admin-settings.php

    r2766591 r2819940  
    1111    <?php endif; ?>
    1212
    13     <?php if(isset($_SESSION['wp_seo_plugins_status']) && (sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) == 0 || sanitize_text_field( $_SESSION['wp_seo_plugins_status'] == 1) ) ) : ?>
    14         <div class="notice notice-success is-dismissible">
    15             <p><?php echo esc_html( $_SESSION['wp_seo_plugins_message'] ); ?></p>
    16         </div>
     13    <?php $wp_seo_plugins_user_display_name = get_option( 'wp_seo_plugins_user_display_name' ); ?>
     14
     15    <?php if(isset($_SESSION['wp_seo_plugins_status']) &&  sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) < 0) : ?>
     16        <tr>
     17            <td colspan="2">
     18                <div class="notice notice-error is-dismissible"><p><?php echo $_SESSION['wp_seo_plugins_message']; ?></p></div>
     19            </td>
     20        </tr>
    1721    <?php endif; ?>
    18     <?php if( isset( $_GET['google_status'] ) ) :  ?>
    19         <?php if( sanitize_text_field( $_GET['google_status'] ) == 'ok' ) : ?>
    20             <div class="notice notice-success is-dismissible">
    21                 <strong>SEO Links Interlinking</strong>
    22                 <p>Google account is successfully connected.</p>
    23             </div>
    24             <script>
    25                 // Cleaning url from data
    26                 let url = window.location.href;
    27                 url = url.replace(/&google_status(.)*/, '');
    28                 window.history.pushState({}, document.title, url);
    29             </script>
    30         <?php endif; ?>
     22    <?php if(isset($_SESSION['wp_seo_plugins_status']) && sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) >= 0) : ?>
     23        <tr>
     24            <td colspan="2">
     25                <div class="notice notice-success is-dismissible"><p><?php echo $_SESSION['wp_seo_plugins_message']; ?></p></div>
     26            </td>
     27        </tr>
    3128    <?php endif; ?>
    32     <?php if(isset($_GET['google_error'])) :  ?>
    33         <div class="notice notice-error is-dismissible">
    34             <h2>SEO Links Interlinking</h2>
    35             <p style="font-size: 18px;"><?php echo stripslashes($_GET['google_error']); ?></p>
    36         </div>
    37         <script>
    38             // Cleaning url from data
    39             let url = window.location.href;
    40             url = url.replace(/&google_error(.)*/, '');
    41             window.history.pushState({}, document.title, url);
    42         </script>
    43     <?php endif; ?>
    44     <?php $wp_seo_plugins_user_display_name = get_option( 'wp_seo_plugins_user_display_name' ); ?>
    4529
    4630    <?php if( !empty( $wp_seo_plugins_user_display_name ) ) : ?>
     
    10993                            <th colspan="2"><h3>Login and get an Api Key</h3></th>
    11094                        </tr>
    111                         <?php if(isset($_SESSION['wp_seo_plugins_status']) &&  sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) == -1) : ?>
    112                             <tr>
    113                                 <td colspan="2">
    114                                     <div class="notice notice-error is-dismissible"><p><?php echo esc_html( $_SESSION['wp_seo_plugins_message'] ); ?></p></div>
    115                                 </td>
    116                             </tr>
    117                         <?php endif; ?>
    118                         <?php if(isset($_SESSION['wp_seo_plugins_status']) && sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) == 1) : ?>
    119                             <tr>
    120                                 <td colspan="2">
    121                                     <div class="notice notice-success is-dismissible"><p><?php echo esc_html( $_SESSION['wp_seo_plugins_message'] ); ?></p></div>
    122                                 </td>
    123                             </tr>
    124                         <?php endif; ?>
    12595                        <tr>
    12696                            <th scope="row">
     
    159129                            <th colspan="2"><h3>Register as new user and get an Api Key</h3></th>
    160130                        </tr>
    161                         <?php if(isset($_SESSION['wp_seo_plugins_status']) && sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) == -10) : ?>
    162                             <tr>
    163                                 <td colspan="2">
    164                                     <div class="notice notice-error is-dismissible"><p><?php echo esc_html( $_SESSION['wp_seo_plugins_message'] ); ?></p></div>
    165                                 </td>
    166                             </tr>
    167                         <?php endif; ?>
    168                         <?php if(isset($_SESSION['wp_seo_plugins_status']) && sanitize_text_field( $_SESSION['wp_seo_plugins_status'] ) == 0) : ?>
    169                             <tr>
    170                                 <td colspan="2">
    171                                     <div class="notice notice-success is-dismissible"><p><?php echo esc_html( $_SESSION['wp_seo_plugins_message'] ); ?></p></div>
    172                                 </td>
    173                             </tr>
    174                         <?php endif; ?>
    175131                        <tr>
    176132                            <th scope="row">
  • seo-copywriting/trunk/includes/class-seocopy.php

    r2766591 r2819940  
    174174        $this->loader->add_action( 'admin_post_wp_seo_plugins_registration', $plugin_admin, 'registration' );
    175175        $this->loader->add_action( 'admin_post_wp_seo_plugins_logout_form_submit', $plugin_admin, 'logout' );
     176        $this->loader->add_action( 'admin_init', $plugin_admin, 'start_session');
    176177    }
    177178
  • seo-copywriting/trunk/seocopy.php

    r2766591 r2819940  
    1111 * Plugin URI:        https://wpseoplugins.org/seo-copywriting/
    1212 * Description:       Keyword research made easy!
    13  * Version:           2.0.2
     13 * Version:           2.0.3
    1414 * Author:            WP SEO Plugins
    1515 * Author URI:        https://www.wpseoplugins.org
     
    3030 * Rename this for your plugin and update it as you release new versions.
    3131 */
    32 define( 'seocopy_VERSION', '2.0.2' );
     32define( 'seocopy_VERSION', '2.0.3' );
    3333define( 'seocopy_DOMAIN', 'seocopy' );
    3434define( 'SEOCOPY_SERVER_NAME', $_SERVER['SERVER_NAME']);
Note: See TracChangeset for help on using the changeset viewer.