Changeset 3027236
- Timestamp:
- 01/26/2024 08:03:18 AM (2 years ago)
- Location:
- contentify-ai/trunk
- Files:
-
- 4 edited
-
index.php (modified) (1 diff)
-
js/onboarding.js (modified) (1 diff)
-
onboarding.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contentify-ai/trunk/index.php
r3026014 r3027236 3 3 Plugin Name: Contentify AI 4 4 Description: This plugin is a Contentify Editor AI (Co-Editor). It publishes and optimize the content that Contentify Writer AI (Co-Writer) generates. 5 Version: 1.4. 25 Version: 1.4.3 6 6 Author: Contentify Team 7 7 Text Domain: contentify-ai -
contentify-ai/trunk/js/onboarding.js
r3026014 r3027236 32 32 setTimeout(function(){ 33 33 document.location.href = CAIOBData.redirectUrl; 34 }, 10000);34 },2000); 35 35 return false; 36 36 } -
contentify-ai/trunk/onboarding.php
r3026013 r3027236 125 125 126 126 $response = wp_remote_post( CONTENTIFY_AI_API_BASE_URL . 'seo-optimize', array( 127 'timeout' => 60, 127 128 'headers' => array( 128 129 'Content-Type' => 'application/json', … … 145 146 } 146 147 147 if ( ! property_exists( $obj, ' keywords' ) || ! property_exists( $obj, 'title' ) || ! property_exists( $obj, 'description' ) ) {148 if ( ! property_exists( $obj, 'optimization' ) || property_exists( $obj->optimization, 'keywords' ) || ! property_exists( $obj->optimization, 'title' ) || ! property_exists( $obj->optimization, 'description' ) ) { 148 149 wp_send_json( __( 'Error (9)', 'contentify-ai' ) ); 149 150 } 150 151 151 152 global $wpdb; 152 $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}yoast_indexable SET title = %s, description = %s, primary_focus_keyword = %s WHERE object_type = %s AND object_id = %d", $obj-> title, $obj->description, $obj->keywords, $_POST['type'] == 'category' ? 'term' : 'post', $id ) );153 $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}yoast_indexable SET title = %s, description = %s, primary_focus_keyword = %s WHERE object_type = %s AND object_id = %d", $obj->optimization->title, $obj->optimization->description, $obj->optimization->keywords, $_POST['type'] == 'category' ? 'term' : 'post', $id ) ); 153 154 154 155 if ( $_POST['type'] == 'category' ) { … … 163 164 $tax_meta['category'][$id] = array(); 164 165 } 165 $tax_meta['category'][$id]['wpseo_focuskw'] = $obj-> keywords;166 $tax_meta['category'][$id]['wpseo_title'] = $obj-> title;167 $tax_meta['category'][$id]['wpseo_desc'] = $obj-> description;166 $tax_meta['category'][$id]['wpseo_focuskw'] = $obj->optimization->keywords; 167 $tax_meta['category'][$id]['wpseo_title'] = $obj->optimization->title; 168 $tax_meta['category'][$id]['wpseo_desc'] = $obj->optimization->description; 168 169 update_option( 'wpseo_taxonomy_meta', $tax_meta ); 169 170 } else { … … 171 172 'ID' => ( int ) $_POST['id'], 172 173 'meta_input' => array( 173 '_yoast_wpseo_focuskw' => $obj-> keywords,174 '_yoast_wpseo_title' => $obj-> title,175 '_yoast_wpseo_metadesc' => $obj-> description174 '_yoast_wpseo_focuskw' => $obj->optimization->keywords, 175 '_yoast_wpseo_title' => $obj->optimization->title, 176 '_yoast_wpseo_metadesc' => $obj->optimization->description 176 177 ) 177 178 ) ); -
contentify-ai/trunk/readme.txt
r3026014 r3027236 1 1 === Contentify AI === 2 2 Contributors: Contentify AI 3 Tags: ai, chatgpt, contentify, ai writer, gpt-4, gpt , seo ai, marketing ai, ai seo3 Tags: ai, chatgpt, contentify, ai writer, gpt-4, gpt 4 4 Requires at least: 5.9 5 5 Tested up to: 6.4.2 6 6 Requires PHP: 7.0 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 License: MIT License 9 9 License URI: https://raw.githubusercontent.com/phosphor-icons/phosphor-home/master/LICENSE
Note: See TracChangeset
for help on using the changeset viewer.