Changeset 2819940
- Timestamp:
- 11/17/2022 05:13:14 PM (3 years ago)
- Location:
- seo-copywriting
- Files:
-
- 106 added
- 5 edited
-
assets/2.1 (added)
-
assets/2.1/.gitignore (added)
-
assets/2.1/LICENSE (added)
-
assets/2.1/LICENSE.txt (added)
-
assets/2.1/README.md (added)
-
assets/2.1/README.txt (added)
-
assets/2.1/admin (added)
-
assets/2.1/admin/class-seocopy-admin.php (added)
-
assets/2.1/admin/css (added)
-
assets/2.1/admin/css/bootstrap.min.css (added)
-
assets/2.1/admin/css/seocopy-admin.css (added)
-
assets/2.1/admin/img (added)
-
assets/2.1/admin/img/icon.png (added)
-
assets/2.1/admin/img/loader.svg (added)
-
assets/2.1/admin/includes (added)
-
assets/2.1/admin/includes/class-seocopy-api.php (added)
-
assets/2.1/admin/includes/class-seocopy-apiexception.php (added)
-
assets/2.1/admin/index.php (added)
-
assets/2.1/admin/js (added)
-
assets/2.1/admin/js/bootstrap.min.js (added)
-
assets/2.1/admin/js/seocopy-admin.js (added)
-
assets/2.1/admin/js/seocopy-findAndReplaceDOMText.js (added)
-
assets/2.1/admin/js/seocopy-tinyMce.js (added)
-
assets/2.1/admin/partials (added)
-
assets/2.1/admin/partials/seocopy-admin-custom-box.php (added)
-
assets/2.1/admin/partials/seocopy-admin-display.php (added)
-
assets/2.1/admin/partials/seocopy-admin-querysuggestion-box.php (added)
-
assets/2.1/admin/partials/seocopy-admin-settings.php (added)
-
assets/2.1/includes (added)
-
assets/2.1/includes/class-seocopy-activator.php (added)
-
assets/2.1/includes/class-seocopy-deactivator.php (added)
-
assets/2.1/includes/class-seocopy-i18n.php (added)
-
assets/2.1/includes/class-seocopy-loader.php (added)
-
assets/2.1/includes/class-seocopy.php (added)
-
assets/2.1/includes/index.php (added)
-
assets/2.1/index.php (added)
-
assets/2.1/languages (added)
-
assets/2.1/languages/seocopy-it_IT.mo (added)
-
assets/2.1/languages/seocopy-it_IT.po (added)
-
assets/2.1/languages/seocopy.pot (added)
-
assets/2.1/public (added)
-
assets/2.1/public/class-seocopy-public.php (added)
-
assets/2.1/public/css (added)
-
assets/2.1/public/css/bootstrap.min.css (added)
-
assets/2.1/public/css/seocopy-public.css (added)
-
assets/2.1/public/index.php (added)
-
assets/2.1/public/js (added)
-
assets/2.1/public/js/bootstrap.min.js (added)
-
assets/2.1/public/js/seocopy-public.js (added)
-
assets/2.1/public/partials (added)
-
assets/2.1/public/partials/seocopy-public-display.php (added)
-
assets/2.1/seocopy.php (added)
-
assets/2.1/uninstall.php (added)
-
tags/2.1 (added)
-
tags/2.1/.gitignore (added)
-
tags/2.1/LICENSE (added)
-
tags/2.1/LICENSE.txt (added)
-
tags/2.1/README.md (added)
-
tags/2.1/README.txt (added)
-
tags/2.1/admin (added)
-
tags/2.1/admin/class-seocopy-admin.php (added)
-
tags/2.1/admin/css (added)
-
tags/2.1/admin/css/bootstrap.min.css (added)
-
tags/2.1/admin/css/seocopy-admin.css (added)
-
tags/2.1/admin/img (added)
-
tags/2.1/admin/img/icon.png (added)
-
tags/2.1/admin/img/loader.svg (added)
-
tags/2.1/admin/includes (added)
-
tags/2.1/admin/includes/class-seocopy-api.php (added)
-
tags/2.1/admin/includes/class-seocopy-apiexception.php (added)
-
tags/2.1/admin/index.php (added)
-
tags/2.1/admin/js (added)
-
tags/2.1/admin/js/bootstrap.min.js (added)
-
tags/2.1/admin/js/seocopy-admin.js (added)
-
tags/2.1/admin/js/seocopy-findAndReplaceDOMText.js (added)
-
tags/2.1/admin/js/seocopy-tinyMce.js (added)
-
tags/2.1/admin/partials (added)
-
tags/2.1/admin/partials/seocopy-admin-custom-box.php (added)
-
tags/2.1/admin/partials/seocopy-admin-display.php (added)
-
tags/2.1/admin/partials/seocopy-admin-querysuggestion-box.php (added)
-
tags/2.1/admin/partials/seocopy-admin-settings.php (added)
-
tags/2.1/includes (added)
-
tags/2.1/includes/class-seocopy-activator.php (added)
-
tags/2.1/includes/class-seocopy-deactivator.php (added)
-
tags/2.1/includes/class-seocopy-i18n.php (added)
-
tags/2.1/includes/class-seocopy-loader.php (added)
-
tags/2.1/includes/class-seocopy.php (added)
-
tags/2.1/includes/index.php (added)
-
tags/2.1/index.php (added)
-
tags/2.1/languages (added)
-
tags/2.1/languages/seocopy-it_IT.mo (added)
-
tags/2.1/languages/seocopy-it_IT.po (added)
-
tags/2.1/languages/seocopy.pot (added)
-
tags/2.1/public (added)
-
tags/2.1/public/class-seocopy-public.php (added)
-
tags/2.1/public/css (added)
-
tags/2.1/public/css/bootstrap.min.css (added)
-
tags/2.1/public/css/seocopy-public.css (added)
-
tags/2.1/public/index.php (added)
-
tags/2.1/public/js (added)
-
tags/2.1/public/js/bootstrap.min.js (added)
-
tags/2.1/public/js/seocopy-public.js (added)
-
tags/2.1/public/partials (added)
-
tags/2.1/public/partials/seocopy-public-display.php (added)
-
tags/2.1/seocopy.php (added)
-
tags/2.1/uninstall.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-seocopy-admin.php (modified) (2 diffs)
-
trunk/admin/partials/seocopy-admin-settings.php (modified) (3 diffs)
-
trunk/includes/class-seocopy.php (modified) (1 diff)
-
trunk/seocopy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-copywriting/trunk/README.txt
r2766591 r2819940 1 === SEO Copywriting===1 === seocopy === 2 2 Contributors: WP SEO Plugins 3 3 Donate link: https://wpseoplugins.org 4 Tags: keyword, research, seo4 Tags: 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 5 5 Requires at least: 4.7 6 Tested up to: 5.87 Stable tag: 2. 0.26 Tested up to: 6.2 7 Stable tag: 2.1 8 8 Requires PHP: 7.1 9 9 License: GPLv2 or later … … 14 14 == Description == 15 15 16 SEO Copy writingis 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.16 SEO 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. 17 17 18 18 For 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. … … 20 20 From 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/). 21 21 22 Seo Copy writing, Keyword research made easy!22 Seo Copy, Keyword research made easy! 23 23 24 24 == Installation == -
seo-copywriting/trunk/admin/class-seocopy-admin.php
r2766591 r2819940 110 110 ), $this->version, false); 111 111 112 } 113 114 public function start_session(){ 115 if (!session_id()) 116 session_start(); 112 117 } 113 118 … … 440 445 ); 441 446 $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 } 448 455 } 449 456 } -
seo-copywriting/trunk/admin/partials/seocopy-admin-settings.php
r2766591 r2819940 11 11 <?php endif; ?> 12 12 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> 17 21 <?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> 31 28 <?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 data39 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' ); ?>45 29 46 30 <?php if( !empty( $wp_seo_plugins_user_display_name ) ) : ?> … … 109 93 <th colspan="2"><h3>Login and get an Api Key</h3></th> 110 94 </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; ?>125 95 <tr> 126 96 <th scope="row"> … … 159 129 <th colspan="2"><h3>Register as new user and get an Api Key</h3></th> 160 130 </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; ?>175 131 <tr> 176 132 <th scope="row"> -
seo-copywriting/trunk/includes/class-seocopy.php
r2766591 r2819940 174 174 $this->loader->add_action( 'admin_post_wp_seo_plugins_registration', $plugin_admin, 'registration' ); 175 175 $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'); 176 177 } 177 178 -
seo-copywriting/trunk/seocopy.php
r2766591 r2819940 11 11 * Plugin URI: https://wpseoplugins.org/seo-copywriting/ 12 12 * Description: Keyword research made easy! 13 * Version: 2.0. 213 * Version: 2.0.3 14 14 * Author: WP SEO Plugins 15 15 * Author URI: https://www.wpseoplugins.org … … 30 30 * Rename this for your plugin and update it as you release new versions. 31 31 */ 32 define( 'seocopy_VERSION', '2.0. 2' );32 define( 'seocopy_VERSION', '2.0.3' ); 33 33 define( 'seocopy_DOMAIN', 'seocopy' ); 34 34 define( 'SEOCOPY_SERVER_NAME', $_SERVER['SERVER_NAME']);
Note: See TracChangeset
for help on using the changeset viewer.