Changeset 3308331
- Timestamp:
- 06/09/2025 08:12:49 AM (10 months ago)
- Location:
- local-gravatars
- Files:
-
- 4 added
- 2 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/LICENSE (added)
-
tags/1.1.0/local-gravatars.php (added)
-
tags/1.1.0/readme.txt (added)
-
trunk/local-gravatars.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
local-gravatars/trunk/local-gravatars.php
r2398101 r3308331 6 6 * Requires at least: 5.3 7 7 * Requires PHP: 5.6 8 * Version: 1. 0.18 * Version: 1.1.0 9 9 * Author: Ari Stathopoulos 10 10 * Text Domain: local-gravatars … … 15 15 16 16 namespace Aristath\LocalGravatars; 17 18 // If the FAIR plugin is active and the `FAIR\Avatars\bootstrap` function exists, 19 // add an admin notice to the dashboard. 20 if ( function_exists( 'FAIR\Avatars\bootstrap' ) ) { 21 add_action( 'admin_notices', function() { 22 $plugin_file = basename( __DIR__ ) . '/' . basename( __FILE__ ); 23 $deactivate_url = \wp_nonce_url( 24 \add_query_arg( 25 [ 26 'action' => 'deactivate', 27 'plugin' => $plugin_file, 28 'plugin_status' => 'all', 29 'paged' => 1, 30 's' => '', 31 ], 32 \self_admin_url( 'plugins.php' ) 33 ), 34 'deactivate-plugin_' . $plugin_file 35 ); 36 ?> 37 <div class="notice notice-warning"> 38 <p> 39 <?php \esc_html_e( 'The FAIR plugin is active. Local Gravatars is not needed, you can deactivate it by clicking the button below.', 'local-gravatars' ); ?> 40 </p> 41 <p> 42 <a href="<?php echo esc_url( $deactivate_url ); ?>" class="button button-small"><?php \esc_html_e( 'Deactivate the "Local Gravatars" plugin', 'local-gravatars' ); ?></a> 43 </p> 44 </div> 45 <?php 46 } ); 47 return; 48 } 17 49 18 50 add_filter( -
local-gravatars/trunk/readme.txt
r3235806 r3308331 2 2 Contributors: aristath 3 3 Requires at least: 5.5 4 Tested up to: 6. 74 Tested up to: 6.8 5 5 Requires PHP: 5.6 6 Stable tag: 1. 0.16 Stable tag: 1.1.0 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT
Note: See TracChangeset
for help on using the changeset viewer.