Changeset 3426982
- Timestamp:
- 12/24/2025 05:34:22 PM (3 months ago)
- Location:
- ansera-search
- Files:
-
- 2 deleted
- 2 edited
- 6 copied
-
tags/1.1.20 (copied) (copied from ansera-search/trunk)
-
tags/1.1.20/ansera_search.php (copied) (copied from ansera-search/trunk/ansera_search.php) (9 diffs)
-
tags/1.1.20/css/ansera_search_admin_settings.css (copied) (copied from ansera-search/trunk/css/ansera_search_admin_settings.css)
-
tags/1.1.20/embed.js (deleted)
-
tags/1.1.20/includes/action-scheduler (deleted)
-
tags/1.1.20/includes/ansera_search_utils.php (copied) (copied from ansera-search/trunk/includes/ansera_search_utils.php)
-
tags/1.1.20/js/ansera_search_admin.js (copied) (copied from ansera-search/trunk/js/ansera_search_admin.js)
-
tags/1.1.20/readme.txt (copied) (copied from ansera-search/trunk/readme.txt) (2 diffs)
-
trunk/ansera_search.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ansera-search/tags/1.1.20/ansera_search.php
r3426293 r3426982 3 3 * Plugin Name: Ansera Search 4 4 * Description: Ansera AI-powered search plugin provides answers based on your existing Wordpress content. 5 * Version: 1.1. 195 * Version: 1.1.20 6 6 * Author: Ansera.AI 7 7 * Author URI: https://www.ansera.ai/ … … 56 56 57 57 add_action('plugins_loaded', 'ansera_search_run_updates'); 58 59 $ansera_web_content_type = 'generic'; 58 60 59 61 function ansera_search_run_updates() { … … 2313 2315 function ansera_fetch_page_content($post) 2314 2316 { 2317 global $ansera_web_content_type; 2318 2319 $ansera_web_content_type = 'wordpress'; 2315 2320 $type = ansera_get_builder_type($post->ID); 2316 2321 $web_data = ''; … … 2318 2323 { 2319 2324 case "bricks": 2325 $ansera_web_content_type = 'bricks'; 2320 2326 //$web_data = Bricks\Helpers::get_bricks_data( $post->ID, 'content' ); 2321 2327 $web_data = get_post_meta( $post->ID, '_bricks_page_content', true ); … … 2324 2330 $web_data = get_post_meta( $post->ID, '_bricks_page_content_2', true ); 2325 2331 } 2326 $web_data = ansera_maybe_unserialize_data($web_data); 2332 if(empty($web_data)) 2333 { 2334 $web_data = get_post_meta( $post->ID, '_bricks_page_content', true ); 2335 } 2336 /* $web_data = ansera_maybe_unserialize_data($web_data); 2327 2337 2328 2338 $html_blocks = array_column( … … 2335 2345 2336 2346 $html_only = array_column($html_blocks, 'text'); 2337 $web_data = implode("\n\n", $html_only); 2347 $web_data = implode("\n\n", $html_only); */ 2338 2348 break; 2339 2349 case "oxygen": … … 2353 2363 function ansera_search_send_post_to_rag($post) 2354 2364 { 2365 global $ansera_web_content_type; 2355 2366 if (empty($post->page_title)) { 2356 2367 ansera_search_mark_post_as_synced_with_status($post->ID, 'error',"Post ID: " . $post->ID . " is missing data(title or web_data). Skipping..."); … … 2377 2388 { 2378 2389 $web_data = ansera_fetch_page_content($post); 2379 2380 } 2381 2390 } 2391 2392 global $ansera_web_content_type; 2393 2382 2394 $page_title = $post->page_title; // Post title 2383 2395 $json_array = [ … … 2386 2398 "page_title" => $page_title, 2387 2399 "page_id" => $post_id, 2400 "web_content_type" => $ansera_web_content_type 2388 2401 ]; 2389 2402 $json = ($json_array); -
ansera-search/tags/1.1.20/readme.txt
r3426293 r3426982 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.1. 197 Stable tag: 1.1.20 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == Changelog == 98 = 1.1. 19=98 = 1.1.20 = 99 99 * Given support to Divi, Bricks, Oxygen, Beaver theme builders. 100 100 -
ansera-search/trunk/ansera_search.php
r3426293 r3426982 3 3 * Plugin Name: Ansera Search 4 4 * Description: Ansera AI-powered search plugin provides answers based on your existing Wordpress content. 5 * Version: 1.1. 195 * Version: 1.1.20 6 6 * Author: Ansera.AI 7 7 * Author URI: https://www.ansera.ai/ … … 56 56 57 57 add_action('plugins_loaded', 'ansera_search_run_updates'); 58 59 $ansera_web_content_type = 'generic'; 58 60 59 61 function ansera_search_run_updates() { … … 2313 2315 function ansera_fetch_page_content($post) 2314 2316 { 2317 global $ansera_web_content_type; 2318 2319 $ansera_web_content_type = 'wordpress'; 2315 2320 $type = ansera_get_builder_type($post->ID); 2316 2321 $web_data = ''; … … 2318 2323 { 2319 2324 case "bricks": 2325 $ansera_web_content_type = 'bricks'; 2320 2326 //$web_data = Bricks\Helpers::get_bricks_data( $post->ID, 'content' ); 2321 2327 $web_data = get_post_meta( $post->ID, '_bricks_page_content', true ); … … 2324 2330 $web_data = get_post_meta( $post->ID, '_bricks_page_content_2', true ); 2325 2331 } 2326 $web_data = ansera_maybe_unserialize_data($web_data); 2332 if(empty($web_data)) 2333 { 2334 $web_data = get_post_meta( $post->ID, '_bricks_page_content', true ); 2335 } 2336 /* $web_data = ansera_maybe_unserialize_data($web_data); 2327 2337 2328 2338 $html_blocks = array_column( … … 2335 2345 2336 2346 $html_only = array_column($html_blocks, 'text'); 2337 $web_data = implode("\n\n", $html_only); 2347 $web_data = implode("\n\n", $html_only); */ 2338 2348 break; 2339 2349 case "oxygen": … … 2353 2363 function ansera_search_send_post_to_rag($post) 2354 2364 { 2365 global $ansera_web_content_type; 2355 2366 if (empty($post->page_title)) { 2356 2367 ansera_search_mark_post_as_synced_with_status($post->ID, 'error',"Post ID: " . $post->ID . " is missing data(title or web_data). Skipping..."); … … 2377 2388 { 2378 2389 $web_data = ansera_fetch_page_content($post); 2379 2380 } 2381 2390 } 2391 2392 global $ansera_web_content_type; 2393 2382 2394 $page_title = $post->page_title; // Post title 2383 2395 $json_array = [ … … 2386 2398 "page_title" => $page_title, 2387 2399 "page_id" => $post_id, 2400 "web_content_type" => $ansera_web_content_type 2388 2401 ]; 2389 2402 $json = ($json_array); -
ansera-search/trunk/readme.txt
r3426293 r3426982 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.1. 197 Stable tag: 1.1.20 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == Changelog == 98 = 1.1. 19=98 = 1.1.20 = 99 99 * Given support to Divi, Bricks, Oxygen, Beaver theme builders. 100 100
Note: See TracChangeset
for help on using the changeset viewer.