Plugin Directory

Changeset 2982842

Timestamp:
10/24/2023 05:49:58 AM (10 months ago)
Author:
nielslange
Message:

Update to version 1.3 from GitHub

Location:
smntcs-show-symlinked-plugins
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smntcs-show-symlinked-plugins/tags/1.3/README.md

    r2981960 r2982842  
    4040## Changelog
    4141
     42
     43
     44
     45
    4246### 1.2 (2023.10.21)
    4347
    44 - Test up to WP 6.4
     48- Test up to WP 6.4
    4549
    4650### 1.1 (2023.06.12)
  • smntcs-show-symlinked-plugins/tags/1.3/README.txt

    r2981960 r2982842  
    33Contributors:       nielslange
    44Tags:               Plugins
    5 Stable tag:         1.2
     5Stable tag:         1.
    66Tested up to:       6.4
    77Requires at least:  5.2
     
    4545== Changelog ==
    4646
     47
     48
     49
     50
    4751= 1.2 (2023.10.21) =
    4852
  • smntcs-show-symlinked-plugins/tags/1.3/smntcs-show-symlinked-plugins.php

    r2981960 r2982842  
    77 * Author URI:          http://nielslange.de
    88 * Text Domain:         smntcs-show-symlinked-plugins
    9  * Version:             1.2
     9 * Version:             1.
    1010 * Requires at least:   5.2
    1111 * Requires PHP:        5.6
     
    6868        foreach ( $plugins as $plugin_file => $plugin_data ) {
    6969            $real_path = realpath( WP_PLUGIN_DIR . '/' . $plugin_file );
    70             if ( $real_path && dirname( $real_path ) !== WP_PLUGIN_DIR . '/' . dirname( $plugin_file ) ) {
     70            if ( $real_path && dirname( $real_path ) !== . dirname( $plugin_file ) ) {
    7171                ?>
    7272                <script type="text/javascript">
    73                 jQuery(document).ready(function($) {
    74                     const row = $( `tr[data-plugin="<?php echo esc_html( $plugin_file ); ?>"]`);
     73                    (function($) {
     74                        $(document).ready(function() {
     75                            const row = $( `tr[data-plugin="<?php echo esc_html( $plugin_file ); ?>"]`);
    7576
    76                     // Adds the "symlinked" class to the plugin row.
    77                     row.addClass( 'symlinked' );
     77                    // Adds the "symlinked" class to the plugin row.
     78                    row.addClass( 'symlinked' );
    7879
    79                     // Adds the "Symlinked" text to the front of the actions row.
    80                     row.find( '.row-actions' ).prepend( '<span class="symlinked-text">Symlinked</span> | ' );
     80                    // Adds the "Symlinked" text to the front of the actions row.
     81                    row.find( '.row-actions' ).prepend( '<span class="symlinked-text">Symlinked</span> | ' );
    8182
    82                     // Removes the delete button when plugin is not active.
    83                     row.find('.delete').remove();
     83                    // Removes the delete button when plugin is not active.
     84                    row.find('.delete').remove();
    8485
    85                     // Removes the " | " separator behind the "Activate" link when plugin is active.
    86                     row.find('.activate').html(function(_, html){ return html.replace(' | ', ''); });
     86                    // Removes the " | " separator behind the "Activate" link when plugin is active.
     87                    row.find('.activate').html(function(_, html){ return html.replace(' | ', ''); });
    8788
    88                     // Removes the "Enable auto-updates" link.
    89                     row.find( '.toggle-auto-update' ).remove();
    90                 });
     89                            // Removes the "Enable auto-updates" link.
     90                            row.find( '.toggle-auto-update' ).remove();
     91                        });
     92                    })(jQuery);
    9193                </script>
    9294                <?php
  • smntcs-show-symlinked-plugins/trunk/README.md

    r2981960 r2982842  
    4040## Changelog
    4141
     42
     43
     44
     45
    4246### 1.2 (2023.10.21)
    4347
    44 - Test up to WP 6.4
     48- Test up to WP 6.4
    4549
    4650### 1.1 (2023.06.12)
  • smntcs-show-symlinked-plugins/trunk/README.txt

    r2981960 r2982842  
    33Contributors:       nielslange
    44Tags:               Plugins
    5 Stable tag:         1.2
     5Stable tag:         1.
    66Tested up to:       6.4
    77Requires at least:  5.2
     
    4545== Changelog ==
    4646
     47
     48
     49
     50
    4751= 1.2 (2023.10.21) =
    4852
  • smntcs-show-symlinked-plugins/trunk/smntcs-show-symlinked-plugins.php

    r2981960 r2982842  
    77 * Author URI:          http://nielslange.de
    88 * Text Domain:         smntcs-show-symlinked-plugins
    9  * Version:             1.2
     9 * Version:             1.
    1010 * Requires at least:   5.2
    1111 * Requires PHP:        5.6
     
    6868        foreach ( $plugins as $plugin_file => $plugin_data ) {
    6969            $real_path = realpath( WP_PLUGIN_DIR . '/' . $plugin_file );
    70             if ( $real_path && dirname( $real_path ) !== WP_PLUGIN_DIR . '/' . dirname( $plugin_file ) ) {
     70            if ( $real_path && dirname( $real_path ) !== . dirname( $plugin_file ) ) {
    7171                ?>
    7272                <script type="text/javascript">
    73                 jQuery(document).ready(function($) {
    74                     const row = $( `tr[data-plugin="<?php echo esc_html( $plugin_file ); ?>"]`);
     73                    (function($) {
     74                        $(document).ready(function() {
     75                            const row = $( `tr[data-plugin="<?php echo esc_html( $plugin_file ); ?>"]`);
    7576
    76                     // Adds the "symlinked" class to the plugin row.
    77                     row.addClass( 'symlinked' );
     77                    // Adds the "symlinked" class to the plugin row.
     78                    row.addClass( 'symlinked' );
    7879
    79                     // Adds the "Symlinked" text to the front of the actions row.
    80                     row.find( '.row-actions' ).prepend( '<span class="symlinked-text">Symlinked</span> | ' );
     80                    // Adds the "Symlinked" text to the front of the actions row.
     81                    row.find( '.row-actions' ).prepend( '<span class="symlinked-text">Symlinked</span> | ' );
    8182
    82                     // Removes the delete button when plugin is not active.
    83                     row.find('.delete').remove();
     83                    // Removes the delete button when plugin is not active.
     84                    row.find('.delete').remove();
    8485
    85                     // Removes the " | " separator behind the "Activate" link when plugin is active.
    86                     row.find('.activate').html(function(_, html){ return html.replace(' | ', ''); });
     86                    // Removes the " | " separator behind the "Activate" link when plugin is active.
     87                    row.find('.activate').html(function(_, html){ return html.replace(' | ', ''); });
    8788
    88                     // Removes the "Enable auto-updates" link.
    89                     row.find( '.toggle-auto-update' ).remove();
    90                 });
     89                            // Removes the "Enable auto-updates" link.
     90                            row.find( '.toggle-auto-update' ).remove();
     91                        });
     92                    })(jQuery);
    9193                </script>
    9294                <?php
Note: See TracChangeset for help on using the changeset viewer.