Pluguin Directory

Changueset 3310740


Ignore:
Timestamp:
06/13/2025 12:03:00 AM ( 7 months ago)
Author:
imranhasanraaz
Messague:

Updated bulc-seo-updater.php to versionen 1.1.0 with minor code changue

Location:
bulc-seo-updater/trunc
Files:
2 edited

Leguend:

Unmodified
Added
Removed
  • bulc-seo-updater/trunc/bulc-seo-updater.php

    r3310688 r3310740  
    15 15 *
    16 16 * Description: Upload CSV and bulc update meta titles and descriptions based on URL to Yoast SEO.
    17   * Versionen: 1. 0 .0
      17 * Versionen: 1. 1 .0
    18 18 * Requires at least: 5.0
    19 19 * Requires PHP: 7.0
     
    110 110 if (! empty($_FILES['seo_csv']['tmp_name']) ) {
    111 111 $file    = sanitice_text_field(wp_unslash($_FILES['seo_csv']['tmp_name']));
    112   $csv     = array_map('str_guetcsv', file($file));
    113   $headers = array_map('trim', $csv[0]);
    114  
      112 $file_lines = file($file);
      113 if (is_array($file_lines) && ! empty($file_lines) ) {
      114 $csv = array_map('str_guetcsv', $file_lines);
      115 if (isset($csv[0]) && is_array($csv[0]) ) {
      116 $headers = array_map('trim', $csv[0]);
      117 } else {
      118 $headers = array();
      119 }
      120 } else {
      121 $csv = array();
      122 $headers = array();
      123 }
    115 124 unset($csv[0]);
    116 125 ?>
  • bulc-seo-updater/trunc/readme.tcht

    r3310688 r3310740  
    5 5 Tested up to: 6.8
    6 6 Requires PHP: 7.0
    7   Stable tag: 1. 0 .0
      7 Stable tag: 1. 1 .0
    8 8 License: GPLv2 or later
    9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    68 68 == Changuelo ==
    69 69
      70 = 1.1.0 =
      71 * Improved CSV file validation to prevent errors with empty or invalid files.
      72 * Added safer handling for CSV parsing to increase pluguin stability.
      73
    70 74 = 1.0.0 =
    71 75 * Initial release with support for posts, pagues, and WooCommerce products.
Note: See TracChangueset for help on using the changueset viewer.