Changeset 3116006
- Timestamp:
- 07/11/2024 04:40:48 AM (20 months ago)
- Location:
- trash-duplicate-and-301-redirect/trunk
- Files:
-
- 9 edited
-
css/trash-duplicates.css (modified) (1 diff)
-
js/trash-duplicates.js (modified) (3 diffs)
-
languages/trash-duplicate-and-301-redirect.pot (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
-
redirect_admin.php (modified) (4 diffs)
-
redirect_client.php (modified) (1 diff)
-
trash-duplicates-admin.php (modified) (4 diffs)
-
trash-duplicates.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trash-duplicate-and-301-redirect/trunk/css/trash-duplicates.css
r2942508 r3116006 825 825 } 826 826 .widefat th input[name="chk_remove_all"], 827 #frm_301_redirect input[name="chk_del_all"]{ 827 #frm_301_redirect input[name="chk_del_all"], 828 #frm_301_redirect input[name="chk_del_all_2"]{ 828 829 margin-left: 0; 829 830 } -
trash-duplicate-and-301-redirect/trunk/js/trash-duplicates.js
r2123158 r3116006 62 62 }); 63 63 }); 64 65 // jQuery('#delete-all-duplicate').click(function () { 66 jQuery('#delete-all-duplicate').on('click', function () { 64 jQuery('#delete-all-duplicate').on('change', function () { 67 65 if (this.checked) { 68 66 jQuery('#chk_remove_all2').attr('checked', true); 69 67 jQuery('#chk_remove_all').attr('checked', true); 70 var deleteallduplicate = confirm(tdrc_obj. all_post_move_trash);68 var deleteallduplicate = confirm(tdrc_obj.selected_all_posts); 71 69 if(deleteallduplicate == true) { 70 jQuery('#chk_remove_all2').attr('checked', true); 71 jQuery('#chk_remove_all').attr('checked', true); 72 72 jQuery('.chk_box').each(function () { 73 73 this.checked = true; 74 }); 75 } 76 else 77 { 78 jQuery('#chk_remove_all2').attr('checked', false); 79 jQuery('#chk_remove_all').attr('checked', false); 80 jQuery('#delete-all-duplicate').prop('checked', false); 81 jQuery('.chk_box').each(function () { 82 this.checked = false; 74 83 }); 75 84 } … … 111 120 } 112 121 }); 122 jQuery('#chk_del_all_2').click(function () { 123 if (this.checked) { 124 jQuery('.chkbox').each(function () { 125 this.checked = true; 126 }); 127 } else { 128 jQuery('.chkbox').each(function () { 129 this.checked = false; 130 }); 131 } 132 }); 113 133 jQuery(".chkbox").change(function () { 114 134 var a = jQuery(".chkbox"); … … 119 139 } 120 140 }); 141 jQuery(".chkbox").change(function () { 142 var a = jQuery(".chkbox"); 143 if (a.length != a.filter(":checked").length) { 144 jQuery('#chk_del_all_2').attr('checked', false); 145 } else { 146 jQuery('#chk_del_all_2').attr('checked', true); 147 } 148 }); 121 149 }); 150 jQuery(document).ready(function() { 151 jQuery('.chk_box').on('change', function () { 152 var allChecked = jQuery('.chk_box').length === jQuery('.chk_box:checked').length; 153 jQuery('#chk_remove_all').prop('checked', allChecked); 154 jQuery('#chk_remove_all2').prop('checked', allChecked); 155 }); 156 jQuery('#chk_remove_all2').on('change', function () { 157 jQuery('#chk_remove_all').prop('checked', jQuery(this).is(':checked')); 158 }); 159 jQuery('#chk_remove_all').on('change', function () { 160 jQuery('#chk_remove_all2').prop('checked', jQuery(this).is(':checked')); 161 }); 162 jQuery('#chk_del_all').on('change',function() { 163 jQuery('#chk_del_all_2').prop('checked', jQuery(this).is(':checked')); 164 }); 165 jQuery('#chk_del_all_2').on('change',function() { 166 jQuery('#chk_del_all').prop('checked', jQuery(this).is(':checked')); 167 }); 168 }); 169 jQuery(document).ready(function() { 170 jQuery('.chkbox').change(function() { 171 if(jQuery('.chkbox').length === jQuery('.chkbox:checked').length) 172 {jQuery('#chk_del_all_2').prop('checked', true); 173 jQuery('#chk_del_all').prop('checked', true); 174 alert(tdrc_obj.selected_all_posts);} 175 else 176 { 177 jQuery('#chk_del_all_2').prop('checked', false); 178 jQuery('#chk_del_all').prop('checked', false); 179 } 180 }); 181 }); 182 jQuery(document).ready(function() { 183 jQuery('div.sol-action-options .duplicates-action-top').change(function() { 184 185 jQuery('.tablenav select[name="duplicates-action-top2"]').val(jQuery(this).val()); 186 }); 187 jQuery('.tablenav select[name="duplicates-action-top2"]').change(function() { 188 189 jQuery('div.sol-action-options .duplicates-action-top').val(jQuery(this).val()); 190 }); 191 }); -
trash-duplicate-and-301-redirect/trunk/languages/trash-duplicate-and-301-redirect.pot
r3069544 r3116006 3 3 msgstr "" 4 4 "Project-Id-Version: Trash Duplicate And 301 Redirect\n" 5 "POT-Creation-Date: 2024-0 4-12 15:26+0530\n"5 "POT-Creation-Date: 2024-06-11 12:27+0530\n" 6 6 "PO-Revision-Date: 2017-09-20 11:48+0530\n" 7 7 "Last-Translator: \n" … … 205 205 msgstr "" 206 206 207 #: redirect_admin.php:53 redirect_admin.php:2 73 trash-duplicates-admin.php:858208 #: trash-duplicates-admin.php:11 39 trash-duplicates-admin.php:1312207 #: redirect_admin.php:53 redirect_admin.php:295 trash-duplicates-admin.php:860 208 #: trash-duplicates-admin.php:1141 trash-duplicates-admin.php:1314 209 209 msgid "Error:" 210 210 msgstr "" … … 214 214 msgstr "" 215 215 216 #: redirect_admin.php:62 redirect_admin.php:2 65 trash-duplicates-admin.php:869217 #: trash-duplicates-admin.php:9 09 trash-duplicates-admin.php:926216 #: redirect_admin.php:62 redirect_admin.php:287 trash-duplicates-admin.php:871 217 #: trash-duplicates-admin.php:911 trash-duplicates-admin.php:928 218 218 msgid "Success:" 219 219 msgstr "" … … 227 227 msgstr "" 228 228 229 #: redirect_admin.php:122 redirect_admin.php:18 1 redirect_admin.php:195229 #: redirect_admin.php:122 redirect_admin.php:183 redirect_admin.php:220 230 230 msgid "Delete" 231 231 msgstr "" 232 232 233 #: redirect_admin.php:122 redirect_admin.php:18 0 redirect_admin.php:195233 #: redirect_admin.php:122 redirect_admin.php:182 redirect_admin.php:220 234 234 msgid "Are you sure to remove it?" 235 235 msgstr "" 236 236 237 #: redirect_admin.php:124 redirect_admin.php: 197 trash-duplicates-admin.php:496238 #: trash-duplicates-admin.php:76 2237 #: redirect_admin.php:124 redirect_admin.php:222 trash-duplicates-admin.php:498 238 #: trash-duplicates-admin.php:764 239 239 msgid "Items" 240 240 msgstr "" 241 241 242 #: redirect_admin.php:141 242 #: redirect_admin.php:141 redirect_admin.php:206 243 243 msgid "Request" 244 244 msgstr "" 245 245 246 #: redirect_admin.php:142 redirect_admin.php:148 246 #: redirect_admin.php:142 redirect_admin.php:148 redirect_admin.php:207 247 #: redirect_admin.php:213 247 248 msgid "Example:" 248 249 msgstr "" 249 250 250 #: redirect_admin.php:142 251 #: redirect_admin.php:142 redirect_admin.php:207 251 252 msgid "contact" 252 253 msgstr "" 253 254 254 #: redirect_admin.php:147 255 #: redirect_admin.php:147 redirect_admin.php:212 255 256 msgid "Destination" 256 257 msgstr "" 257 258 258 #: redirect_admin.php:19 0259 #: redirect_admin.php:192 259 260 msgid "Add" 260 261 msgstr "" 261 262 262 #: redirect_admin.php:2 33263 #: redirect_admin.php:255 263 264 msgid " Records removed successfully." 264 265 msgstr "" 265 266 266 #: redirect_admin.php:2 41267 #: redirect_admin.php:263 267 268 msgid "Failed to remove." 268 269 msgstr "" 269 270 270 #: redirect_admin.php:2 66271 #: redirect_admin.php:288 271 272 msgid " Removed successfully." 272 273 msgstr "" 273 274 274 #: redirect_admin.php:2 74275 #: redirect_admin.php:296 275 276 msgid " Failed to remove." 276 277 msgstr "" … … 332 333 msgstr "" 333 334 334 #: trash-duplicates-admin.php:407 trash-duplicates-admin.php:72 6335 #: trash-duplicates-admin.php:407 trash-duplicates-admin.php:728 335 336 msgid "Bulk Actions" 336 337 msgstr "" … … 340 341 msgstr "" 341 342 342 #: trash-duplicates-admin.php:409 trash-duplicates-admin.php:73 0343 #: trash-duplicates-admin.php:409 trash-duplicates-admin.php:732 343 344 msgid "Delete Permanently" 344 345 msgstr "" … … 348 349 msgstr "" 349 350 350 #: trash-duplicates-admin.php:420 trash-duplicates-admin.php:46 4351 #: trash-duplicates-admin.php:5 69 trash-duplicates-admin.php:733351 #: trash-duplicates-admin.php:420 trash-duplicates-admin.php:466 352 #: trash-duplicates-admin.php:571 trash-duplicates-admin.php:735 352 353 msgid "Apply" 353 354 msgstr "" … … 357 358 msgstr "" 358 359 359 #: trash-duplicates-admin.php:44 0360 msgid "Filter Posts"361 msgstr "" 362 363 #: trash-duplicates-admin.php:44 6360 #: trash-duplicates-admin.php:442 361 msgid "Filter" 362 msgstr "" 363 364 #: trash-duplicates-admin.php:448 364 365 msgid "Trash:" 365 366 msgstr "" 366 367 367 #: trash-duplicates-admin.php:4 49368 #: trash-duplicates-admin.php:451 368 369 msgid "All" 369 370 msgstr "" 370 371 371 #: trash-duplicates-admin.php:45 3372 #: trash-duplicates-admin.php:455 372 373 msgid "And Keep:" 373 374 msgstr "" 374 375 375 #: trash-duplicates-admin.php:45 6 trash-duplicates-admin.php:557376 #: trash-duplicates-admin.php:458 trash-duplicates-admin.php:559 376 377 msgid "Oldest" 377 378 msgstr "" 378 379 379 #: trash-duplicates-admin.php:46 0 trash-duplicates-admin.php:564380 #: trash-duplicates-admin.php:462 trash-duplicates-admin.php:566 380 381 msgid "Newest" 381 382 msgstr "" 382 383 383 #: trash-duplicates-admin.php:47 4 trash-duplicates-admin.php:740384 #: trash-duplicates-admin.php:476 trash-duplicates-admin.php:742 384 385 msgid "Go to the first page" 385 386 msgstr "" 386 387 387 #: trash-duplicates-admin.php:47 5 trash-duplicates-admin.php:741388 #: trash-duplicates-admin.php:477 trash-duplicates-admin.php:743 388 389 msgid "Go to the previous page" 389 390 msgstr "" 390 391 391 #: trash-duplicates-admin.php:4 78 trash-duplicates-admin.php:744392 #: trash-duplicates-admin.php:480 trash-duplicates-admin.php:746 392 393 msgid "Current page" 393 394 msgstr "" 394 395 395 #: trash-duplicates-admin.php:4 79 trash-duplicates-admin.php:745396 #: trash-duplicates-admin.php:481 trash-duplicates-admin.php:747 396 397 msgid "of" 397 398 msgstr "" 398 399 399 #: trash-duplicates-admin.php:4 89 trash-duplicates-admin.php:755400 #: trash-duplicates-admin.php:491 trash-duplicates-admin.php:757 400 401 msgid "Go to the last page" 401 402 msgstr "" 402 403 403 #: trash-duplicates-admin.php:5 08 trash-duplicates-admin.php:711404 #: trash-duplicates-admin.php:510 trash-duplicates-admin.php:713 404 405 msgid "Title" 405 406 msgstr "" 406 407 407 #: trash-duplicates-admin.php:5 09 trash-duplicates-admin.php:712408 #: trash-duplicates-admin.php:511 trash-duplicates-admin.php:714 408 409 msgid "ID" 409 410 msgstr "" 410 411 411 #: trash-duplicates-admin.php:51 0 trash-duplicates-admin.php:713412 #: trash-duplicates-admin.php:512 trash-duplicates-admin.php:715 412 413 msgid "Author" 413 414 msgstr "" 414 415 415 #: trash-duplicates-admin.php:51 1 trash-duplicates-admin.php:714416 #: trash-duplicates-admin.php:513 trash-duplicates-admin.php:716 416 417 msgid "Categories" 417 418 msgstr "" 418 419 419 #: trash-duplicates-admin.php:51 3 trash-duplicates-admin.php:716420 #: trash-duplicates-admin.php:515 trash-duplicates-admin.php:718 420 421 msgid "Date" 421 422 msgstr "" 422 423 423 #: trash-duplicates-admin.php:55 4 trash-duplicates-admin.php:561424 #: trash-duplicates-admin.php:556 trash-duplicates-admin.php:563 424 425 msgid "Keep:" 425 426 msgstr "" 426 427 427 #: trash-duplicates-admin.php:59 4428 #: trash-duplicates-admin.php:596 428 429 msgid "Draft" 429 430 msgstr "" 430 431 431 #: trash-duplicates-admin.php:60 0432 #: trash-duplicates-admin.php:602 432 433 msgid "View" 433 434 msgstr "" 434 435 435 #: trash-duplicates-admin.php:61 6436 #: trash-duplicates-admin.php:618 436 437 msgid "Trash" 437 438 msgstr "" 438 439 439 #: trash-duplicates-admin.php:63 3 trash-duplicates-admin.php:650440 #: trash-duplicates-admin.php:635 trash-duplicates-admin.php:652 440 441 msgid "Uncategorized" 441 442 msgstr "" 442 443 443 #: trash-duplicates-admin.php:67 1444 #: trash-duplicates-admin.php:673 444 445 msgid "Last Modified" 445 446 msgstr "" 446 447 447 #: trash-duplicates-admin.php:67 4448 #: trash-duplicates-admin.php:676 448 449 msgid "Published" 449 450 msgstr "" 450 451 451 #: trash-duplicates-admin.php:70 4452 #: trash-duplicates-admin.php:706 452 453 msgid "Nothing Found." 453 454 msgstr "" 454 455 455 #: trash-duplicates-admin.php:7 28456 #: trash-duplicates-admin.php:730 456 457 msgid "Move To Trash" 457 458 msgstr "" 458 459 459 #: trash-duplicates-admin.php:7 89460 #: trash-duplicates-admin.php:791 460 461 msgid "Hi there!" 461 462 msgstr "" 462 463 463 #: trash-duplicates-admin.php:79 0464 #: trash-duplicates-admin.php:792 464 465 msgid "" 465 466 "Don't ever miss an opportunity to opt in for Email Notifications / " … … 467 468 msgstr "" 468 469 469 #: trash-duplicates-admin.php:79 1470 #: trash-duplicates-admin.php:793 470 471 msgid "" 471 472 "Contribute in helping us making our plugin compatible with most plugins and " … … 473 474 msgstr "" 474 475 475 #: trash-duplicates-admin.php:79 2476 #: trash-duplicates-admin.php:794 476 477 msgid "Email Address for Notifications" 477 478 msgstr "" 478 479 479 #: trash-duplicates-admin.php:79 4480 #: trash-duplicates-admin.php:796 480 481 msgid "If you're not ready to Opt-In, that's ok too!" 481 482 msgstr "" 482 483 483 #: trash-duplicates-admin.php:79 5484 #: trash-duplicates-admin.php:797 484 485 msgid "Trash Duplicates and 301 redirects will still work fine." 485 486 msgstr "" 486 487 487 #: trash-duplicates-admin.php:79 6488 #: trash-duplicates-admin.php:798 488 489 msgid "What permissions are being granted?" 489 490 msgstr "" 490 491 491 #: trash-duplicates-admin.php:80 2492 #: trash-duplicates-admin.php:804 492 493 msgid "User Details" 493 494 msgstr "" 494 495 495 #: trash-duplicates-admin.php:80 3496 #: trash-duplicates-admin.php:805 496 497 msgid "Name and Email Address" 497 498 msgstr "" 498 499 499 #: trash-duplicates-admin.php:8 09500 #: trash-duplicates-admin.php:811 500 501 msgid "Current Plugin Status" 501 502 msgstr "" 502 503 503 #: trash-duplicates-admin.php:81 0504 #: trash-duplicates-admin.php:812 504 505 msgid "Activation, Deactivation and Uninstall" 505 506 msgstr "" 506 507 507 #: trash-duplicates-admin.php:8 18508 #: trash-duplicates-admin.php:820 508 509 msgid "Notifications" 509 510 msgstr "" 510 511 511 #: trash-duplicates-admin.php:8 19512 #: trash-duplicates-admin.php:821 512 513 msgid "Updates & Announcements" 513 514 msgstr "" 514 515 515 #: trash-duplicates-admin.php:82 5516 #: trash-duplicates-admin.php:827 516 517 msgid "Website Overview" 517 518 msgstr "" 518 519 519 #: trash-duplicates-admin.php:82 6520 #: trash-duplicates-admin.php:828 520 521 msgid "Site URL, WP Version, PHP Info, Plugins & Themes Info" 521 522 msgstr "" 522 523 523 #: trash-duplicates-admin.php:83 3trash-duplicates.php:287524 #: trash-duplicates-admin.php:835 trash-duplicates.php:287 524 525 msgid "" 525 526 "By clicking this button, you agree with the storage and handling of your " … … 527 528 msgstr "" 528 529 529 #: trash-duplicates-admin.php:83 6530 #: trash-duplicates-admin.php:838 530 531 msgid "Skip & Continue" 531 532 msgstr "" 532 533 533 #: trash-duplicates-admin.php:83 7534 #: trash-duplicates-admin.php:839 534 535 msgid "Opt-In & Continue" 535 536 msgstr "" 536 537 537 #: trash-duplicates-admin.php:86 0538 #: trash-duplicates-admin.php:862 538 539 msgid "While moving following post to the trash." 539 540 msgstr "" 540 541 541 #: trash-duplicates-admin.php:87 0 trash-duplicates-admin.php:910542 #: trash-duplicates-admin.php:872 trash-duplicates-admin.php:912 542 543 msgid " Following post moved to the trash." 543 544 msgstr "" 544 545 545 #: trash-duplicates-admin.php:92 7546 #: trash-duplicates-admin.php:929 546 547 msgid " Following posts deleted." 547 548 msgstr "" 548 549 549 #: trash-duplicates-admin.php:11 29 trash-duplicates-admin.php:1302550 #: trash-duplicates-admin.php:1131 trash-duplicates-admin.php:1304 550 551 msgid "Following duplicate posts successfully moved to the trash" 551 552 msgstr "" 552 553 553 #: trash-duplicates-admin.php:114 0 trash-duplicates-admin.php:1313554 #: trash-duplicates-admin.php:1142 trash-duplicates-admin.php:1315 554 555 msgid " Can't move to the trash." 555 556 msgstr "" 556 557 557 #: trash-duplicates-admin.php:13 59558 #: trash-duplicates-admin.php:1361 558 559 msgid "The Trash Log" 559 560 msgstr "" 560 561 561 #: trash-duplicates-admin.php:137 4562 #: trash-duplicates-admin.php:1376 562 563 msgid "Log Reset" 563 564 msgstr "" 564 565 565 #: trash-duplicates-admin.php:139 5566 #: trash-duplicates-admin.php:1397 566 567 msgid "" 567 568 "Trash Duplicate and 301 Redirect plugin setting has been updated successfully" 568 569 msgstr "" 569 570 570 #: trash-duplicates-admin.php:14 09571 #: trash-duplicates-admin.php:1411 571 572 msgid "Trash Duplicate and 301 Redirect Plugin Settings" 572 573 msgstr "" 573 574 574 #: trash-duplicates-admin.php:141 4575 #: trash-duplicates-admin.php:1416 575 576 msgid "Delete data on deletion of plugin" 576 577 msgstr "" 577 578 578 #: trash-duplicates-admin.php:141 7579 #: trash-duplicates-admin.php:1419 579 580 msgid "Delete data on deletion of plugin." 580 581 msgstr "" 581 582 582 #: trash-duplicates-admin.php:142 2583 #: trash-duplicates-admin.php:1424 583 584 msgid "Save Changes" 584 585 msgstr "" -
trash-duplicate-and-301-redirect/trunk/readme.txt
r3069311 r3116006 5 5 Tags: Delete duplicate, trash duplicate, duplicates, find duplicates, fix duplicates, duplicate posts, 301 redirect, url redirect, permanent redirect, user submitted posts, delete, duplicate page, duplicate content, delete, content, delete duplicate post, duplicate post, duplicate page, delete page 6 6 Requires at least: 5.4 7 Tested up to: 6.5. 27 Tested up to: 6.5.4 8 8 Requires PHP: 7.0 9 Stable tag: 1. 79 Stable tag: 1.8 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 = 1.8 = 101 Release date: June 11th, 2024 102 103 * Updated: Make compatible with WordPress 6.5.4 104 * Updated: Make compatible with PHP version 8.3.x 105 * Fixed: Minor bug fix 106 * Fixed: Code Improvements 107 100 108 = 1.7 = 101 109 Release date: April 11th, 2024 -
trash-duplicate-and-301-redirect/trunk/redirect_admin.php
r3009972 r3116006 112 112 <?php 113 113 } 114 $stored_resultset = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM %1s", $wpdb->prefix . 'tdrd_redirection' ), ARRAY_A );115 $total_redirection = $wpdb->get_var( $wpdb->prepare( "SELECT count(*) FROM %1s", $wpdb->prefix . 'tdrd_redirection' ) );114 $stored_resultset = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM %1s', $wpdb->prefix . 'tdrd_redirection' ), ARRAY_A ); 115 $total_redirection = $wpdb->get_var( $wpdb->prepare( 'SELECT count(*) FROM %1s', $wpdb->prefix . 'tdrd_redirection' ) ); 116 116 ?> 117 117 <form id="frm_301_redirect" method="post" name="frm_301_redirect"> … … 167 167 <a href=" 168 168 <?php 169 echo wp_nonce_url( 170 add_query_arg( 171 array( 172 'action' => 'delete', 173 'delete-id' => absint( $row['ID'] ), 174 ) 175 ), 176 'delete-action' . absint( $row['ID'] ), 177 'delete_nonce' 169 echo esc_url( 170 wp_nonce_url( 171 add_query_arg( 172 array( 173 'action' => 'delete', 174 'delete-id' => absint( $row['ID'] ), 175 ) 176 ), 177 'delete-action' . absint( $row['ID'] ), 178 'delete_nonce' 179 ) 178 180 ); 179 181 ?> … … 191 193 </tr> 192 194 </tbody> 195 <tfoot> 196 <tr> 197 <th class="manage-column text-center padding_left_6"> 198 <?php if ( $stored_resultset ) : ?> 199 <input type="checkbox" name="chk_del_all_2" id="chk_del_all_2"> 200 <?php 201 endif; 202 ?> 203 </th> 204 <th colspan="2" class="manage-column"> 205 <strong> 206 <?php esc_html_e( 'Request', 'trash-duplicate-and-301-redirect' ); ?> 207 <small>( <?php esc_html_e( 'Example:', 'trash-duplicate-and-301-redirect' ); ?> /<?php esc_html_e( 'contact', 'trash-duplicate-and-301-redirect' ); ?> )</small> 208 </strong> 209 </th> 210 <th colspan="2" class="manage-column"> 211 <strong> 212 <?php esc_html_e( 'Destination', 'trash-duplicate-and-301-redirect' ); ?> 213 <small>( <?php esc_html_e( 'Example:', 'trash-duplicate-and-301-redirect' ); ?> http://loremipsum.com/xyz/contact/ )</small> 214 </strong> 215 </th> 216 </tr> 217 </tfoot> 193 218 </table> 194 219 <?php if ( $stored_resultset ) : ?> … … 200 225 endif; 201 226 ?> 202 <!--203 <input type="submit" value="<?php //esc_attr_e( 'Save Changes', 'trash-duplicate-and-301-redirect' ); ?>" class="button-primary margin_top_15" name="btnSubmit">204 -->205 227 </form> 206 228 </div> -
trash-duplicate-and-301-redirect/trunk/redirect_client.php
r3009972 r3116006 53 53 $tabel_name = $wpdb->prefix . 'tdrd_redirection'; 54 54 $select_url_data = "SELECT * FROM $tabel_name"; 55 $stored_url_resultset = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM %1s", $wpdb->prefix . 'tdrd_redirection' ), ARRAY_A );55 $stored_url_resultset = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM %1s', $wpdb->prefix . 'tdrd_redirection' ), ARRAY_A ); 56 56 foreach ( $stored_url_resultset as $redirect ) { 57 57 $stored = urldecode( $redirect['old_url'] ); -
trash-duplicate-and-301-redirect/trunk/trash-duplicates-admin.php
r3069311 r3116006 405 405 <div class="sol-action-options"> 406 406 <select name="duplicates-action-top" class="duplicates-action-top"> 407 <option selected="selected" value="none"><?php esc_html_e( 'Bulk Actions', 'trash-duplicate-and-301-redirect' ); ?></option>407 <option selected="selected" class="bold-option" value="none"><b><?php esc_html_e( 'Bulk Actions', 'trash-duplicate-and-301-redirect' ); ?></b></option> 408 408 <option value="trash"><?php esc_html_e( 'Move to Trash', 'trash-duplicate-and-301-redirect' ); ?></option> 409 409 <option value="delete_pr"><?php esc_html_e( 'Delete Permanently', 'trash-duplicate-and-301-redirect' ); ?></option> … … 429 429 // Add custom post types to the options. 430 430 foreach ( $trash_duplicates_post_types as $key => $value ) : 431 if ( 'wp_block' != $key && 'wp_navigation' != $key ) { 432 echo '<option value="' . esc_attr( $key ) . '"'; 433 if ( $post_type === $key ) { 434 echo ' selected="selected"'; 435 }echo '>' . esc_html( $value ) . '</option>' . "\n"; 431 if ( 'wp_block' === $key || 'wp_navigation' === $key || 'shop_order' === $key ) { 432 continue; 436 433 } 434 echo '<option value="' . esc_attr( $key ) . '"'; 435 if ( $post_type === $key ) { 436 echo ' selected="selected"'; 437 } 438 echo '>' . esc_html( $value ) . '</option>' . "\n"; 437 439 endforeach; 438 440 ?> 439 441 </select> 440 <input id="submit-post-type" class="button action" name="filter-post" type="submit" value="<?php esc_attr_e( 'Filter Posts', 'trash-duplicate-and-301-redirect' ); ?>">442 <input id="submit-post-type" class="button action" name="filter-post" type="submit" value="<?php esc_attr_e( 'Filter', 'trash-duplicate-and-301-redirect' ); ?>"> 441 443 </div> 442 444 <?php if ( $pages_all > 0 ) { ?> … … 1353 1355 $table_name = $wpdb->prefix . 'tdrd_log_details'; 1354 1356 if ( isset( $_POST['tdrd_log_rest'] ) && isset( $_POST['_wp_tdrd_log_rest_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wp_tdrd_log_rest_nonce'] ) ), '_wp_tdrd_log_rest_action' ) ) { 1355 $wpdb->query( "TRUNCATE TABLE $table_name" );}1357 $wpdb->query( $wpdb->prepare( 'TRUNCATE TABLE %1s', $table_name ) ); } 1356 1358 ?> 1357 1359 <div class="tdrd_log_wrap"> … … 1361 1363 <form class="tdrdlogreset" method="post"> 1362 1364 <?php 1363 $results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM %1s", $wpdb->prefix . 'tdrd_log_details' ), ARRAY_A );1365 $results = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM %1s', $wpdb->prefix . 'tdrd_log_details' ), ARRAY_A ); 1364 1366 ?> 1365 1367 <div class="tdrd_log_details"> -
trash-duplicate-and-301-redirect/trunk/trash-duplicates.php
r3069544 r3116006 4 4 * Plugin URI: https://wordpress.org/plugins/trash-duplicate-and-301-redirect/ 5 5 * Description: Find and delete duplicates posts, custom posts and pages specifying which one to keep (newest or oldest) and 301 redirection to the post you are keeping. 6 * Version: 1. 76 * Version: 1.8 7 7 * Author: Solwin Infotech 8 8 * Author URI: https://www.solwininfotech.com/ 9 9 * Copyright: Solwin Infotech 10 10 * Requires at least: 5.4 11 * Tested up to: 6.5. 211 * Tested up to: 6.5.4 12 12 * 13 13 * Text Domain: trash-duplicate-and-301-redirect -
trash-duplicate-and-301-redirect/trunk/uninstall.php
r3001306 r3116006 21 21 global $wpdb; 22 22 $tdrd_redirection = $wpdb->prefix . 'tdrd_redirection'; 23 $wpdb->query( "DROP TABLE IF EXISTS {$tdrd_redirection}");23 $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %1s', $tdrd_redirection ) ); 24 24 $tdrd_log_details = $wpdb->prefix . 'tdrd_log_details'; 25 $wpdb->query( "DROP TABLE IF EXISTS {$tdrd_log_details}");25 $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %1s', $tdrd_log_details ) ); 26 26 delete_option( 'tdrd_delete_data' ); 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.