Changeset 2982842
- Timestamp:
- 10/24/2023 05:49:58 AM (10 months ago)
- 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 40 40 ## Changelog 41 41 42 43 44 45 42 46 ### 1.2 (2023.10.21) 43 47 44 - Test up to WP 6.448 - Test up to WP 6.4 45 49 46 50 ### 1.1 (2023.06.12) -
smntcs-show-symlinked-plugins/tags/1.3/README.txt
r2981960 r2982842 3 3 Contributors: nielslange 4 4 Tags: Plugins 5 Stable tag: 1. 25 Stable tag: 1. 6 6 Tested up to: 6.4 7 7 Requires at least: 5.2 … … 45 45 == Changelog == 46 46 47 48 49 50 47 51 = 1.2 (2023.10.21) = 48 52 -
smntcs-show-symlinked-plugins/tags/1.3/smntcs-show-symlinked-plugins.php
r2981960 r2982842 7 7 * Author URI: http://nielslange.de 8 8 * Text Domain: smntcs-show-symlinked-plugins 9 * Version: 1. 29 * Version: 1. 10 10 * Requires at least: 5.2 11 11 * Requires PHP: 5.6 … … 68 68 foreach ( $plugins as $plugin_file => $plugin_data ) { 69 69 $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 ) ) { 71 71 ?> 72 72 <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 ); ?>"]`); 75 76 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' ); 78 79 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> | ' ); 81 82 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(); 84 85 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(' | ', ''); }); 87 88 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); 91 93 </script> 92 94 <?php -
smntcs-show-symlinked-plugins/trunk/README.md
r2981960 r2982842 40 40 ## Changelog 41 41 42 43 44 45 42 46 ### 1.2 (2023.10.21) 43 47 44 - Test up to WP 6.448 - Test up to WP 6.4 45 49 46 50 ### 1.1 (2023.06.12) -
smntcs-show-symlinked-plugins/trunk/README.txt
r2981960 r2982842 3 3 Contributors: nielslange 4 4 Tags: Plugins 5 Stable tag: 1. 25 Stable tag: 1. 6 6 Tested up to: 6.4 7 7 Requires at least: 5.2 … … 45 45 == Changelog == 46 46 47 48 49 50 47 51 = 1.2 (2023.10.21) = 48 52 -
smntcs-show-symlinked-plugins/trunk/smntcs-show-symlinked-plugins.php
r2981960 r2982842 7 7 * Author URI: http://nielslange.de 8 8 * Text Domain: smntcs-show-symlinked-plugins 9 * Version: 1. 29 * Version: 1. 10 10 * Requires at least: 5.2 11 11 * Requires PHP: 5.6 … … 68 68 foreach ( $plugins as $plugin_file => $plugin_data ) { 69 69 $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 ) ) { 71 71 ?> 72 72 <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 ); ?>"]`); 75 76 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' ); 78 79 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> | ' ); 81 82 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(); 84 85 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(' | ', ''); }); 87 88 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); 91 93 </script> 92 94 <?php
Note: See TracChangeset
for help on using the changeset viewer.