Changeset 3072502
- Timestamp:
- 04/17/2024 03:15:54 PM (3 months ago)
- Location:
- phoenix-media-rename
- Files:
-
- 25 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
phoenix-media-rename
- Property svn:global-ignores
-
old new 1 1 .git 2
-
-
Property
svn:ignore
set to
.github
- Property svn:global-ignores
-
phoenix-media-rename/classes/class-media-rename.php
r3013478 r3072502 591 591 //avoid the file renaming process 592 592 return 1; 593 } else { 593 } 594 else { 594 595 //renaming is enabled 595 596 … … 658 659 659 660 //updates posts content 660 self::update_posts($post_types, $searches, $replaces );661 self::update_posts($post_types, $searches, $replaces); 661 662 662 663 if ($options->option_update_revisions) { 663 664 //update revisions, if option to update revisions is active 664 665 $post_types['revision'] = array('post_type' => $post_types); 665 self::update_posts($post_types, $searches, $replaces );666 self::update_posts($post_types, $searches, $replaces); 666 667 } 667 668 … … 812 813 * @param array $searches strings to search for 813 814 * @param array $replaces values to replace 814 * @return void 815 */ 816 private static function update_posts($post_types, $searches, $replaces){ 815 * @param array $old_filename old file name 816 * @return void 817 */ 818 private static function update_posts($post_types, $searches, $replaces, $old_filename){ 817 819 $i=0; 818 820 819 while ($posts = get_posts(array('post_type' => $post_types, 'post_status' => 'any', 'numberposts' => 100, 'offset' => $i * 100 ))) {821 while ($posts = get_posts(array('post_type' => $post_types, 'post_status' => 'any', 'numberposts' => 100, 'offset' => $i * 100))) { 820 822 foreach ($posts as $post) { 821 823 // Updating post content if necessary -
phoenix-media-rename/readme.txt
r3071324 r3072502 4 4 Requires at least: 5.0 5 5 Tested up to: 6.5 6 Stable tag: 3.11. 66 Stable tag: 3.11. 7 7 Requires PHP: 7.4 8 8 License: GPL3 … … 108 108 == Changelog == 109 109 110 111 112 110 113 = 3.11.6 = 111 114 * added compatibility with Beaver Builder Lite -
phoenix-media-rename/trunk/classes/class-media-rename.php
r3013478 r3072502 591 591 //avoid the file renaming process 592 592 return 1; 593 } else { 593 } 594 else { 594 595 //renaming is enabled 595 596 … … 658 659 659 660 //updates posts content 660 self::update_posts($post_types, $searches, $replaces );661 self::update_posts($post_types, $searches, $replaces); 661 662 662 663 if ($options->option_update_revisions) { 663 664 //update revisions, if option to update revisions is active 664 665 $post_types['revision'] = array('post_type' => $post_types); 665 self::update_posts($post_types, $searches, $replaces );666 self::update_posts($post_types, $searches, $replaces); 666 667 } 667 668 … … 812 813 * @param array $searches strings to search for 813 814 * @param array $replaces values to replace 814 * @return void 815 */ 816 private static function update_posts($post_types, $searches, $replaces){ 815 * @param array $old_filename old file name 816 * @return void 817 */ 818 private static function update_posts($post_types, $searches, $replaces, $old_filename){ 817 819 $i=0; 818 820 819 while ($posts = get_posts(array('post_type' => $post_types, 'post_status' => 'any', 'numberposts' => 100, 'offset' => $i * 100 ))) {821 while ($posts = get_posts(array('post_type' => $post_types, 'post_status' => 'any', 'numberposts' => 100, 'offset' => $i * 100))) { 820 822 foreach ($posts as $post) { 821 823 // Updating post content if necessary -
phoenix-media-rename/trunk/readme.txt
r3071324 r3072502 4 4 Requires at least: 5.0 5 5 Tested up to: 6.5 6 Stable tag: 3.11. 66 Stable tag: 3.11. 7 7 Requires PHP: 7.4 8 8 License: GPL3 … … 108 108 == Changelog == 109 109 110 111 112 110 113 = 3.11.6 = 111 114 * added compatibility with Beaver Builder Lite
Note: See TracChangeset
for help on using the changeset viewer.