Plugin Directory

Changeset 3116006


Ignore:
Timestamp:
07/11/2024 04:40:48 AM (20 months ago)
Author:
solwininfotech
Message:

Trash duplicate and 301 redirect plugin version 1.8 update

Location:
trash-duplicate-and-301-redirect/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trash-duplicate-and-301-redirect/trunk/css/trash-duplicates.css

    r2942508 r3116006  
    825825}
    826826.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"]{
    828829    margin-left: 0;
    829830}
  • trash-duplicate-and-301-redirect/trunk/js/trash-duplicates.js

    r2123158 r3116006  
    6262        });
    6363    });
    64 
    65     // jQuery('#delete-all-duplicate').click(function () {
    66     jQuery('#delete-all-duplicate').on('click', function () {
     64    jQuery('#delete-all-duplicate').on('change', function () {
    6765        if (this.checked) {
    6866            jQuery('#chk_remove_all2').attr('checked', true);
    6967            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);
    7169            if(deleteallduplicate == true) {
     70                jQuery('#chk_remove_all2').attr('checked', true);
     71                jQuery('#chk_remove_all').attr('checked', true);
    7272                jQuery('.chk_box').each(function () {
    7373                    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;
    7483                });
    7584            }
     
    111120        }
    112121    });
     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    });
    113133    jQuery(".chkbox").change(function () {
    114134        var a = jQuery(".chkbox");
     
    119139        }
    120140    });
     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    });
    121149});
     150jQuery(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  
    33msgstr ""
    44"Project-Id-Version: Trash Duplicate And 301 Redirect\n"
    5 "POT-Creation-Date: 2024-04-12 15:26+0530\n"
     5"POT-Creation-Date: 2024-06-11 12:27+0530\n"
    66"PO-Revision-Date: 2017-09-20 11:48+0530\n"
    77"Last-Translator: \n"
     
    205205msgstr ""
    206206
    207 #: redirect_admin.php:53 redirect_admin.php:273 trash-duplicates-admin.php:858
    208 #: trash-duplicates-admin.php:1139 trash-duplicates-admin.php:1312
     207#: redirect_admin.php:53 redirect_admin.php:295 trash-duplicates-admin.php:860
     208#: trash-duplicates-admin.php:1141 trash-duplicates-admin.php:1314
    209209msgid "Error:"
    210210msgstr ""
     
    214214msgstr ""
    215215
    216 #: redirect_admin.php:62 redirect_admin.php:265 trash-duplicates-admin.php:869
    217 #: trash-duplicates-admin.php:909 trash-duplicates-admin.php:926
     216#: redirect_admin.php:62 redirect_admin.php:287 trash-duplicates-admin.php:871
     217#: trash-duplicates-admin.php:911 trash-duplicates-admin.php:928
    218218msgid "Success:"
    219219msgstr ""
     
    227227msgstr ""
    228228
    229 #: redirect_admin.php:122 redirect_admin.php:181 redirect_admin.php:195
     229#: redirect_admin.php:122 redirect_admin.php:183 redirect_admin.php:220
    230230msgid "Delete"
    231231msgstr ""
    232232
    233 #: redirect_admin.php:122 redirect_admin.php:180 redirect_admin.php:195
     233#: redirect_admin.php:122 redirect_admin.php:182 redirect_admin.php:220
    234234msgid "Are you sure to remove it?"
    235235msgstr ""
    236236
    237 #: redirect_admin.php:124 redirect_admin.php:197 trash-duplicates-admin.php:496
    238 #: trash-duplicates-admin.php:762
     237#: redirect_admin.php:124 redirect_admin.php:222 trash-duplicates-admin.php:498
     238#: trash-duplicates-admin.php:764
    239239msgid "Items"
    240240msgstr ""
    241241
    242 #: redirect_admin.php:141
     242#: redirect_admin.php:141 redirect_admin.php:206
    243243msgid "Request"
    244244msgstr ""
    245245
    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
    247248msgid "Example:"
    248249msgstr ""
    249250
    250 #: redirect_admin.php:142
     251#: redirect_admin.php:142 redirect_admin.php:207
    251252msgid "contact"
    252253msgstr ""
    253254
    254 #: redirect_admin.php:147
     255#: redirect_admin.php:147 redirect_admin.php:212
    255256msgid "Destination"
    256257msgstr ""
    257258
    258 #: redirect_admin.php:190
     259#: redirect_admin.php:192
    259260msgid "Add"
    260261msgstr ""
    261262
    262 #: redirect_admin.php:233
     263#: redirect_admin.php:255
    263264msgid " Records removed successfully."
    264265msgstr ""
    265266
    266 #: redirect_admin.php:241
     267#: redirect_admin.php:263
    267268msgid "Failed to remove."
    268269msgstr ""
    269270
    270 #: redirect_admin.php:266
     271#: redirect_admin.php:288
    271272msgid " Removed successfully."
    272273msgstr ""
    273274
    274 #: redirect_admin.php:274
     275#: redirect_admin.php:296
    275276msgid " Failed to remove."
    276277msgstr ""
     
    332333msgstr ""
    333334
    334 #: trash-duplicates-admin.php:407 trash-duplicates-admin.php:726
     335#: trash-duplicates-admin.php:407 trash-duplicates-admin.php:728
    335336msgid "Bulk Actions"
    336337msgstr ""
     
    340341msgstr ""
    341342
    342 #: trash-duplicates-admin.php:409 trash-duplicates-admin.php:730
     343#: trash-duplicates-admin.php:409 trash-duplicates-admin.php:732
    343344msgid "Delete Permanently"
    344345msgstr ""
     
    348349msgstr ""
    349350
    350 #: trash-duplicates-admin.php:420 trash-duplicates-admin.php:464
    351 #: trash-duplicates-admin.php:569 trash-duplicates-admin.php:733
     351#: trash-duplicates-admin.php:420 trash-duplicates-admin.php:466
     352#: trash-duplicates-admin.php:571 trash-duplicates-admin.php:735
    352353msgid "Apply"
    353354msgstr ""
     
    357358msgstr ""
    358359
    359 #: trash-duplicates-admin.php:440
    360 msgid "Filter Posts"
    361 msgstr ""
    362 
    363 #: trash-duplicates-admin.php:446
     360#: trash-duplicates-admin.php:442
     361msgid "Filter"
     362msgstr ""
     363
     364#: trash-duplicates-admin.php:448
    364365msgid "Trash:"
    365366msgstr ""
    366367
    367 #: trash-duplicates-admin.php:449
     368#: trash-duplicates-admin.php:451
    368369msgid "All"
    369370msgstr ""
    370371
    371 #: trash-duplicates-admin.php:453
     372#: trash-duplicates-admin.php:455
    372373msgid "And Keep:"
    373374msgstr ""
    374375
    375 #: trash-duplicates-admin.php:456 trash-duplicates-admin.php:557
     376#: trash-duplicates-admin.php:458 trash-duplicates-admin.php:559
    376377msgid "Oldest"
    377378msgstr ""
    378379
    379 #: trash-duplicates-admin.php:460 trash-duplicates-admin.php:564
     380#: trash-duplicates-admin.php:462 trash-duplicates-admin.php:566
    380381msgid "Newest"
    381382msgstr ""
    382383
    383 #: trash-duplicates-admin.php:474 trash-duplicates-admin.php:740
     384#: trash-duplicates-admin.php:476 trash-duplicates-admin.php:742
    384385msgid "Go to the first page"
    385386msgstr ""
    386387
    387 #: trash-duplicates-admin.php:475 trash-duplicates-admin.php:741
     388#: trash-duplicates-admin.php:477 trash-duplicates-admin.php:743
    388389msgid "Go to the previous page"
    389390msgstr ""
    390391
    391 #: trash-duplicates-admin.php:478 trash-duplicates-admin.php:744
     392#: trash-duplicates-admin.php:480 trash-duplicates-admin.php:746
    392393msgid "Current page"
    393394msgstr ""
    394395
    395 #: trash-duplicates-admin.php:479 trash-duplicates-admin.php:745
     396#: trash-duplicates-admin.php:481 trash-duplicates-admin.php:747
    396397msgid "of"
    397398msgstr ""
    398399
    399 #: trash-duplicates-admin.php:489 trash-duplicates-admin.php:755
     400#: trash-duplicates-admin.php:491 trash-duplicates-admin.php:757
    400401msgid "Go to the last page"
    401402msgstr ""
    402403
    403 #: trash-duplicates-admin.php:508 trash-duplicates-admin.php:711
     404#: trash-duplicates-admin.php:510 trash-duplicates-admin.php:713
    404405msgid "Title"
    405406msgstr ""
    406407
    407 #: trash-duplicates-admin.php:509 trash-duplicates-admin.php:712
     408#: trash-duplicates-admin.php:511 trash-duplicates-admin.php:714
    408409msgid "ID"
    409410msgstr ""
    410411
    411 #: trash-duplicates-admin.php:510 trash-duplicates-admin.php:713
     412#: trash-duplicates-admin.php:512 trash-duplicates-admin.php:715
    412413msgid "Author"
    413414msgstr ""
    414415
    415 #: trash-duplicates-admin.php:511 trash-duplicates-admin.php:714
     416#: trash-duplicates-admin.php:513 trash-duplicates-admin.php:716
    416417msgid "Categories"
    417418msgstr ""
    418419
    419 #: trash-duplicates-admin.php:513 trash-duplicates-admin.php:716
     420#: trash-duplicates-admin.php:515 trash-duplicates-admin.php:718
    420421msgid "Date"
    421422msgstr ""
    422423
    423 #: trash-duplicates-admin.php:554 trash-duplicates-admin.php:561
     424#: trash-duplicates-admin.php:556 trash-duplicates-admin.php:563
    424425msgid "Keep:"
    425426msgstr ""
    426427
    427 #: trash-duplicates-admin.php:594
     428#: trash-duplicates-admin.php:596
    428429msgid "Draft"
    429430msgstr ""
    430431
    431 #: trash-duplicates-admin.php:600
     432#: trash-duplicates-admin.php:602
    432433msgid "View"
    433434msgstr ""
    434435
    435 #: trash-duplicates-admin.php:616
     436#: trash-duplicates-admin.php:618
    436437msgid "Trash"
    437438msgstr ""
    438439
    439 #: trash-duplicates-admin.php:633 trash-duplicates-admin.php:650
     440#: trash-duplicates-admin.php:635 trash-duplicates-admin.php:652
    440441msgid "Uncategorized"
    441442msgstr ""
    442443
    443 #: trash-duplicates-admin.php:671
     444#: trash-duplicates-admin.php:673
    444445msgid "Last Modified"
    445446msgstr ""
    446447
    447 #: trash-duplicates-admin.php:674
     448#: trash-duplicates-admin.php:676
    448449msgid "Published"
    449450msgstr ""
    450451
    451 #: trash-duplicates-admin.php:704
     452#: trash-duplicates-admin.php:706
    452453msgid "Nothing Found."
    453454msgstr ""
    454455
    455 #: trash-duplicates-admin.php:728
     456#: trash-duplicates-admin.php:730
    456457msgid "Move To Trash"
    457458msgstr ""
    458459
    459 #: trash-duplicates-admin.php:789
     460#: trash-duplicates-admin.php:791
    460461msgid "Hi there!"
    461462msgstr ""
    462463
    463 #: trash-duplicates-admin.php:790
     464#: trash-duplicates-admin.php:792
    464465msgid ""
    465466"Don't ever miss an opportunity to opt in for Email Notifications / "
     
    467468msgstr ""
    468469
    469 #: trash-duplicates-admin.php:791
     470#: trash-duplicates-admin.php:793
    470471msgid ""
    471472"Contribute in helping us making our plugin compatible with most plugins and "
     
    473474msgstr ""
    474475
    475 #: trash-duplicates-admin.php:792
     476#: trash-duplicates-admin.php:794
    476477msgid "Email Address for Notifications"
    477478msgstr ""
    478479
    479 #: trash-duplicates-admin.php:794
     480#: trash-duplicates-admin.php:796
    480481msgid "If you're not ready to Opt-In, that's ok too!"
    481482msgstr ""
    482483
    483 #: trash-duplicates-admin.php:795
     484#: trash-duplicates-admin.php:797
    484485msgid "Trash Duplicates and 301 redirects will still work fine."
    485486msgstr ""
    486487
    487 #: trash-duplicates-admin.php:796
     488#: trash-duplicates-admin.php:798
    488489msgid "What permissions are being granted?"
    489490msgstr ""
    490491
    491 #: trash-duplicates-admin.php:802
     492#: trash-duplicates-admin.php:804
    492493msgid "User Details"
    493494msgstr ""
    494495
    495 #: trash-duplicates-admin.php:803
     496#: trash-duplicates-admin.php:805
    496497msgid "Name and Email Address"
    497498msgstr ""
    498499
    499 #: trash-duplicates-admin.php:809
     500#: trash-duplicates-admin.php:811
    500501msgid "Current Plugin Status"
    501502msgstr ""
    502503
    503 #: trash-duplicates-admin.php:810
     504#: trash-duplicates-admin.php:812
    504505msgid "Activation, Deactivation and Uninstall"
    505506msgstr ""
    506507
    507 #: trash-duplicates-admin.php:818
     508#: trash-duplicates-admin.php:820
    508509msgid "Notifications"
    509510msgstr ""
    510511
    511 #: trash-duplicates-admin.php:819
     512#: trash-duplicates-admin.php:821
    512513msgid "Updates & Announcements"
    513514msgstr ""
    514515
    515 #: trash-duplicates-admin.php:825
     516#: trash-duplicates-admin.php:827
    516517msgid "Website Overview"
    517518msgstr ""
    518519
    519 #: trash-duplicates-admin.php:826
     520#: trash-duplicates-admin.php:828
    520521msgid "Site URL, WP Version, PHP Info, Plugins & Themes Info"
    521522msgstr ""
    522523
    523 #: trash-duplicates-admin.php:833 trash-duplicates.php:287
     524#: trash-duplicates-admin.php:835 trash-duplicates.php:287
    524525msgid ""
    525526"By clicking this button, you agree with the storage and handling of your "
     
    527528msgstr ""
    528529
    529 #: trash-duplicates-admin.php:836
     530#: trash-duplicates-admin.php:838
    530531msgid "Skip & Continue"
    531532msgstr ""
    532533
    533 #: trash-duplicates-admin.php:837
     534#: trash-duplicates-admin.php:839
    534535msgid "Opt-In & Continue"
    535536msgstr ""
    536537
    537 #: trash-duplicates-admin.php:860
     538#: trash-duplicates-admin.php:862
    538539msgid "While moving following post to the trash."
    539540msgstr ""
    540541
    541 #: trash-duplicates-admin.php:870 trash-duplicates-admin.php:910
     542#: trash-duplicates-admin.php:872 trash-duplicates-admin.php:912
    542543msgid " Following post moved to the trash."
    543544msgstr ""
    544545
    545 #: trash-duplicates-admin.php:927
     546#: trash-duplicates-admin.php:929
    546547msgid " Following posts deleted."
    547548msgstr ""
    548549
    549 #: trash-duplicates-admin.php:1129 trash-duplicates-admin.php:1302
     550#: trash-duplicates-admin.php:1131 trash-duplicates-admin.php:1304
    550551msgid "Following duplicate posts successfully moved to the trash"
    551552msgstr ""
    552553
    553 #: trash-duplicates-admin.php:1140 trash-duplicates-admin.php:1313
     554#: trash-duplicates-admin.php:1142 trash-duplicates-admin.php:1315
    554555msgid " Can't move to the trash."
    555556msgstr ""
    556557
    557 #: trash-duplicates-admin.php:1359
     558#: trash-duplicates-admin.php:1361
    558559msgid "The Trash Log"
    559560msgstr ""
    560561
    561 #: trash-duplicates-admin.php:1374
     562#: trash-duplicates-admin.php:1376
    562563msgid "Log Reset"
    563564msgstr ""
    564565
    565 #: trash-duplicates-admin.php:1395
     566#: trash-duplicates-admin.php:1397
    566567msgid ""
    567568"Trash Duplicate and 301 Redirect plugin setting has been updated successfully"
    568569msgstr ""
    569570
    570 #: trash-duplicates-admin.php:1409
     571#: trash-duplicates-admin.php:1411
    571572msgid "Trash Duplicate and 301 Redirect Plugin Settings"
    572573msgstr ""
    573574
    574 #: trash-duplicates-admin.php:1414
     575#: trash-duplicates-admin.php:1416
    575576msgid "Delete data on deletion of plugin"
    576577msgstr ""
    577578
    578 #: trash-duplicates-admin.php:1417
     579#: trash-duplicates-admin.php:1419
    579580msgid "Delete data on deletion of plugin."
    580581msgstr ""
    581582
    582 #: trash-duplicates-admin.php:1422
     583#: trash-duplicates-admin.php:1424
    583584msgid "Save Changes"
    584585msgstr ""
  • trash-duplicate-and-301-redirect/trunk/readme.txt

    r3069311 r3116006  
    55Tags: 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
    66Requires at least: 5.4
    7 Tested up to: 6.5.2
     7Tested up to: 6.5.4
    88Requires PHP: 7.0
    9 Stable tag: 1.7
     9Stable tag: 1.8
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9898== Changelog ==
    9999
     100= 1.8 =
     101Release 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
    100108= 1.7 =
    101109Release date: April 11th, 2024
  • trash-duplicate-and-301-redirect/trunk/redirect_admin.php

    r3009972 r3116006  
    112112                <?php
    113113            }
    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' ) );
    116116            ?>
    117117            <form id="frm_301_redirect" method="post" name="frm_301_redirect">
     
    167167                                    <a href="
    168168                                        <?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                                            )
    178180                                        );
    179181                                        ?>
     
    191193                        </tr>
    192194                    </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>(&nbsp;<?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>(&nbsp;<?php esc_html_e( 'Example:', 'trash-duplicate-and-301-redirect' ); ?> http://loremipsum.com/xyz/contact/ )</small>
     214                                </strong>
     215                            </th>
     216                        </tr>
     217                    </tfoot>
    193218                </table>
    194219                <?php if ( $stored_resultset ) : ?>
     
    200225                endif;
    201226                ?>
    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                 -->
    205227            </form>
    206228        </div>
  • trash-duplicate-and-301-redirect/trunk/redirect_client.php

    r3009972 r3116006  
    5353        $tabel_name           = $wpdb->prefix . 'tdrd_redirection';
    5454        $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 );
    5656        foreach ( $stored_url_resultset as $redirect ) {
    5757            $stored      = urldecode( $redirect['old_url'] );
  • trash-duplicate-and-301-redirect/trunk/trash-duplicates-admin.php

    r3069311 r3116006  
    405405                    <div class="sol-action-options">
    406406                        <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>
    408408                            <option value="trash"><?php esc_html_e( 'Move to Trash', 'trash-duplicate-and-301-redirect' ); ?></option>
    409409                            <option value="delete_pr"><?php esc_html_e( 'Delete Permanently', 'trash-duplicate-and-301-redirect' ); ?></option>
     
    429429                            // Add custom post types to the options.
    430430                            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;
    436433                                }
     434                                echo '<option value="' . esc_attr( $key ) . '"';
     435                                if ( $post_type === $key ) {
     436                                    echo ' selected="selected"';
     437                                }
     438                                echo '>' . esc_html( $value ) . '</option>' . "\n";
    437439                            endforeach;
    438440                            ?>
    439441                        </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' ); ?>">
    441443                    </div>
    442444                    <?php if ( $pages_all > 0 ) { ?>
     
    13531355        $table_name = $wpdb->prefix . 'tdrd_log_details';
    13541356        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 ) );       }
    13561358        ?>
    13571359        <div class="tdrd_log_wrap">
     
    13611363            <form class="tdrdlogreset" method="post">
    13621364                <?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 );
    13641366                ?>
    13651367                <div class="tdrd_log_details">
  • trash-duplicate-and-301-redirect/trunk/trash-duplicates.php

    r3069544 r3116006  
    44 * Plugin URI: https://wordpress.org/plugins/trash-duplicate-and-301-redirect/
    55 * 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.7
     6 * Version: 1.8
    77 * Author: Solwin Infotech
    88 * Author URI: https://www.solwininfotech.com/
    99 * Copyright: Solwin Infotech
    1010 * Requires at least: 5.4
    11  * Tested up to: 6.5.2
     11 * Tested up to: 6.5.4
    1212 *
    1313 * Text Domain: trash-duplicate-and-301-redirect
  • trash-duplicate-and-301-redirect/trunk/uninstall.php

    r3001306 r3116006  
    2121    global $wpdb;
    2222    $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 ) );
    2424    $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 ) );
    2626    delete_option( 'tdrd_delete_data' );
    2727}
Note: See TracChangeset for help on using the changeset viewer.