Changeset 2903228
- Timestamp:
- 04/24/2023 10:00:36 AM (3 years ago)
- Location:
- supportcandy
- Files:
-
- 4 edited
-
tags/3.1.6/upgrade/class-wpsc-upgrade-db-v1.php (modified) (3 diffs)
-
tags/3.1.6/upgrade/class-wpsc-upgrade-db-v2.php (modified) (5 diffs)
-
trunk/upgrade/class-wpsc-upgrade-db-v1.php (modified) (3 diffs)
-
trunk/upgrade/class-wpsc-upgrade-db-v2.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
supportcandy/tags/3.1.6/upgrade/class-wpsc-upgrade-db-v1.php
r2895888 r2903228 3760 3760 array( 3761 3761 'name' => $term_meta['filename'][0], 3762 'file_path' => $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0],3762 'file_path' => '/wpsc/' . $term_meta['save_file_name'][0], 3763 3763 'is_image' => $term_meta['is_image'][0], 3764 3764 'is_active' => 1, … … 3921 3921 array( 3922 3922 'name' => $term_meta['filename'][0], 3923 'file_path' => $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0],3923 'file_path' => '/wpsc/' . $term_meta['save_file_name'][0], 3924 3924 'is_image' => $term_meta['is_image'][0], 3925 3925 'is_active' => 1, … … 4029 4029 } 4030 4030 4031 $file_path = str_replace( $upload_dir['basedir'], '', $file_path ); 4031 4032 $file_name = basename( $file_path ); 4032 4033 $file_url = $upload_dir['baseurl'] . '/wpsc/' . $matches[1][ $i ]; -
supportcandy/tags/3.1.6/upgrade/class-wpsc-upgrade-db-v2.php
r2895888 r2903228 4687 4687 continue; 4688 4688 } 4689 $filepath = $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0];4689 $filepath = '/wpsc/' . $term_meta['save_file_name'][0]; 4690 4690 if ( isset( $term_meta['is_restructured'] ) && $term_meta['is_restructured'][0] ) { 4691 4691 $updated_time = $term_meta['time_uploaded'][0]; … … 4693 4693 $month = date( 'm', $time ); // phpcs:ignore 4694 4694 $year = date( 'Y', $time ); // phpcs:ignore 4695 $filepath = $upload_dir['basedir'] .'/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0];4695 $filepath = '/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0]; 4696 4696 } 4697 4697 $wpdb->insert( … … 4888 4888 } 4889 4889 4890 $filepath = $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0];4890 $filepath = '/wpsc/' . $term_meta['save_file_name'][0]; 4891 4891 if ( isset( $term_meta['is_restructured'] ) && $term_meta['is_restructured'][0] ) { 4892 4892 $updated_time = $term_meta['time_uploaded'][0]; … … 4894 4894 $month = date( 'm', $time ); // phpcs:ignore 4895 4895 $year = date( 'Y', $time ); // phpcs:ignore 4896 $filepath = $upload_dir['basedir'] .'/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0];4896 $filepath = '/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0]; 4897 4897 } 4898 4898 … … 5115 5115 continue; 5116 5116 } 5117 5118 $file_path = str_replace( $upload_dir['basedir'], '', $file_path ); 5117 5119 $file_name = basename( $file_path ); 5118 5120 -
supportcandy/trunk/upgrade/class-wpsc-upgrade-db-v1.php
r2873748 r2903228 3760 3760 array( 3761 3761 'name' => $term_meta['filename'][0], 3762 'file_path' => $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0],3762 'file_path' => '/wpsc/' . $term_meta['save_file_name'][0], 3763 3763 'is_image' => $term_meta['is_image'][0], 3764 3764 'is_active' => 1, … … 3921 3921 array( 3922 3922 'name' => $term_meta['filename'][0], 3923 'file_path' => $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0],3923 'file_path' => '/wpsc/' . $term_meta['save_file_name'][0], 3924 3924 'is_image' => $term_meta['is_image'][0], 3925 3925 'is_active' => 1, … … 4029 4029 } 4030 4030 4031 $file_path = str_replace( $upload_dir['basedir'], '', $file_path ); 4031 4032 $file_name = basename( $file_path ); 4032 4033 $file_url = $upload_dir['baseurl'] . '/wpsc/' . $matches[1][ $i ]; -
supportcandy/trunk/upgrade/class-wpsc-upgrade-db-v2.php
r2873748 r2903228 4687 4687 continue; 4688 4688 } 4689 $filepath = $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0];4689 $filepath = '/wpsc/' . $term_meta['save_file_name'][0]; 4690 4690 if ( isset( $term_meta['is_restructured'] ) && $term_meta['is_restructured'][0] ) { 4691 4691 $updated_time = $term_meta['time_uploaded'][0]; … … 4693 4693 $month = date( 'm', $time ); // phpcs:ignore 4694 4694 $year = date( 'Y', $time ); // phpcs:ignore 4695 $filepath = $upload_dir['basedir'] .'/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0];4695 $filepath = '/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0]; 4696 4696 } 4697 4697 $wpdb->insert( … … 4888 4888 } 4889 4889 4890 $filepath = $upload_dir['basedir'] .'/wpsc/' . $term_meta['save_file_name'][0];4890 $filepath = '/wpsc/' . $term_meta['save_file_name'][0]; 4891 4891 if ( isset( $term_meta['is_restructured'] ) && $term_meta['is_restructured'][0] ) { 4892 4892 $updated_time = $term_meta['time_uploaded'][0]; … … 4894 4894 $month = date( 'm', $time ); // phpcs:ignore 4895 4895 $year = date( 'Y', $time ); // phpcs:ignore 4896 $filepath = $upload_dir['basedir'] .'/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0];4896 $filepath = '/wpsc/' . $year . '/' . $month . '/' . $term_meta['save_file_name'][0]; 4897 4897 } 4898 4898 … … 5115 5115 continue; 5116 5116 } 5117 5118 $file_path = str_replace( $upload_dir['basedir'], '', $file_path ); 5117 5119 $file_name = basename( $file_path ); 5118 5120
Note: See TracChangeset
for help on using the changeset viewer.