Changeset 3240787
- Timestamp:
- 02/14/2025 07:28:15 PM (14 months ago)
- Location:
- topirank-integration
- Files:
-
- 32 added
- 4 edited
-
tags/1.0.7 (added)
-
tags/1.0.7/admin (added)
-
tags/1.0.7/admin/admin-page.php (added)
-
tags/1.0.7/admin/menu.php (added)
-
tags/1.0.7/assets (added)
-
tags/1.0.7/assets/css (added)
-
tags/1.0.7/assets/css/topirank-admin-style.css (added)
-
tags/1.0.7/assets/css/topirank-editor-style.css (added)
-
tags/1.0.7/assets/css/topirank-normalize.css (added)
-
tags/1.0.7/assets/css/topirank-post-admin-style.css (added)
-
tags/1.0.7/assets/js (added)
-
tags/1.0.7/assets/js/topirank-admin-scripts.js (added)
-
tags/1.0.7/assets/js/topirank-normalize.js (added)
-
tags/1.0.7/includes (added)
-
tags/1.0.7/includes/api-integration.php (added)
-
tags/1.0.7/includes/create-template.php (added)
-
tags/1.0.7/includes/extract-and-create.php (added)
-
tags/1.0.7/includes/file-upload.php (added)
-
tags/1.0.7/includes/helpers.php (added)
-
tags/1.0.7/includes/init.php (added)
-
tags/1.0.7/includes/process-folders.php (added)
-
tags/1.0.7/includes/register-files.php (added)
-
tags/1.0.7/includes/resource-cleaner.php (added)
-
tags/1.0.7/includes/topirank-template.php (added)
-
tags/1.0.7/includes/update-content-and-seo.php (added)
-
tags/1.0.7/includes/update-functionality.php (added)
-
tags/1.0.7/languages (added)
-
tags/1.0.7/languages/topirank-integration-fr_FR.mo (added)
-
tags/1.0.7/languages/topirank-integration-fr_FR.po (added)
-
tags/1.0.7/languages/topirank-integration.pot (added)
-
tags/1.0.7/readme.txt (added)
-
tags/1.0.7/topirank-integration.php (added)
-
trunk/includes/resource-cleaner.php (modified) (3 diffs)
-
trunk/includes/update-content-and-seo.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/topirank-integration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
topirank-integration/trunk/includes/resource-cleaner.php
r3220350 r3240787 1 1 <?php 2 if (!defined('ABSPATH')) exit; 2 3 3 if (! defined('ABSPATH')) exit; 4 function topirank_delete_page_images($post_id) 5 { 6 $page = get_post($post_id); 7 if ($page->post_type !== 'page') { 8 return; 9 } 4 10 5 function topirank_delete_post_images($post_id)6 {7 11 $featured_image_id = get_post_thumbnail_id($post_id); 8 12 if ($featured_image_id) { … … 12 16 $post_content = get_post_field('post_content', $post_id); 13 17 if ($post_content) { 14 15 18 preg_match_all('/<img[^>]+src=["\']([^"\']+)["\']/i', $post_content, $matches); 16 19 if (!empty($matches[1])) { … … 24 27 } 25 28 } 26 27 add_action('before_delete_post', 'topirank_delete_post_images'); 29 add_action('before_delete_post', 'topirank_delete_page_images'); -
topirank-integration/trunk/includes/update-content-and-seo.php
r3236026 r3240787 5 5 function topirank_update_post_content($post_id, $file, $archive_name, $selected_style) 6 6 { 7 topirank_delete_p ost_images($post_id);7 topirank_delete_page_images($post_id); 8 8 9 9 $wp_filesystem = topirank_get_filesystem(); -
topirank-integration/trunk/readme.txt
r3237927 r3240787 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7.1 6 Stable tag: 1.0. 66 Stable tag: 1.0.7 7 7 Requires PHP: 7.3 8 8 License: GPLv2 or later … … 58 58 == Changelog == 59 59 60 = 1.0.7 = 61 * Improved work with media 62 60 63 = 1.0.6 = 61 64 * Improved update posts functionality. -
topirank-integration/trunk/topirank-integration.php
r3237927 r3240787 3 3 Plugin Name: Topirank Integration 4 4 Description: Plugin for parsing pages 5 Version: 1.0. 65 Version: 1.0.7 6 6 Author: Topirank 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.