Changeset 3446193
- Timestamp:
- 01/24/2026 03:49:59 PM (2 months ago)
- Location:
- ai-wp-writer
- Files:
-
- 34 added
- 3 edited
-
tags/4.3.5.3 (added)
-
tags/4.3.5.3/assets (added)
-
tags/4.3.5.3/assets/css (added)
-
tags/4.3.5.3/assets/css/style.css (added)
-
tags/4.3.5.3/assets/images (added)
-
tags/4.3.5.3/assets/images/arrow-mod.png (added)
-
tags/4.3.5.3/assets/images/arrow.jpg (added)
-
tags/4.3.5.3/assets/images/bg-to-logo.png (added)
-
tags/4.3.5.3/assets/images/check.png (added)
-
tags/4.3.5.3/assets/images/creem.png (added)
-
tags/4.3.5.3/assets/images/cryptocloud.png (added)
-
tags/4.3.5.3/assets/images/doc.png (added)
-
tags/4.3.5.3/assets/images/lock.png (added)
-
tags/4.3.5.3/assets/images/logo.png (added)
-
tags/4.3.5.3/assets/images/paypal.png (added)
-
tags/4.3.5.3/assets/images/robokassa.png (added)
-
tags/4.3.5.3/assets/images/stripe.png (added)
-
tags/4.3.5.3/assets/js (added)
-
tags/4.3.5.3/assets/js/app.js (added)
-
tags/4.3.5.3/assets/js/button.js (added)
-
tags/4.3.5.3/assets/js/image-block.js (added)
-
tags/4.3.5.3/assets/js/image-tiny-mce.js (added)
-
tags/4.3.5.3/assets/libs (added)
-
tags/4.3.5.3/assets/libs/charts.js (added)
-
tags/4.3.5.3/class.assistant.php (added)
-
tags/4.3.5.3/index.php (added)
-
tags/4.3.5.3/langs (added)
-
tags/4.3.5.3/langs/wp-ai-assistant-ru_RU.mo (added)
-
tags/4.3.5.3/langs/wp-ai-assistant-ru_RU.po (added)
-
tags/4.3.5.3/readme.txt (added)
-
tags/4.3.5.3/tpl (added)
-
tags/4.3.5.3/tpl/notice.php (added)
-
tags/4.3.5.3/tpl/options.php (added)
-
tags/4.3.5.3/tpl/workspace.php (added)
-
trunk/class.assistant.php (modified) (1 diff)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ai-wp-writer/trunk/class.assistant.php
r3429656 r3446193 1348 1348 } 1349 1349 1350 private function loadFile( $url, $post_id ){ 1351 $tmp = download_url( $url, 300 ); 1352 1353 if( preg_match('/image=([^\.]+).(png|jpg)/i', $url, $matches ) ){ 1354 $file = [ 'name' => $matches[1] .'.'. $matches[2], 'tmp_name' => $tmp ]; 1355 $id = media_handle_sideload( $file, $post_id ); 1356 1357 if( is_wp_error( $id ) ){ 1358 @unlink($file['tmp_name']); 1359 return false; 1360 } 1361 @unlink( $file['tmp_name'] ); 1362 1363 return $id; 1350 private function loadFile( $image, $post_id ){ 1351 if( preg_match('/image=([^\.]+)\.(png|jpg)/i', $image, $match ) ) 1352 $image = $match[1] .'.'. $match[2]; 1353 1354 if( $data = $this->wpCurl( [ 'action' => 'getImage', 'image' => $image ], [], 3 ) ){ 1355 $tmp = wp_tempnam(); 1356 1357 if( file_put_contents( $tmp, $data ) ){ 1358 $file = [ 'name' => $image, 'tmp_name' => $tmp ]; 1359 $id = media_handle_sideload( $file, $post_id ); 1360 1361 if( is_wp_error( $id ) ){ 1362 @unlink($file['tmp_name']); 1363 return false; 1364 } 1365 @unlink( $file['tmp_name'] ); 1366 1367 return $id; 1368 } 1364 1369 } 1365 1370 return false; -
ai-wp-writer/trunk/index.php
r3434431 r3446193 1 1 <?php 2 2 /* 3 Version: 4.3.5. 23 Version: 4.3.5.3 4 4 Plugin Name: AI WP Writer 5 5 Description: Fast generation of articles with images in Wordpress editor, automatic content writer on schedule, mass rewriting of articles. Powered by ChatGPT, GPT-5, GPT-5 mini/nano, o3 (reasoning), Dalle 3, GPT-image, FLUX, Nano Banana. -
ai-wp-writer/trunk/readme.txt
r3434431 r3446193 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6.0 7 Stable tag: 4.3.5. 27 Stable tag: 4.3.5.3 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.