Plugin Directory

Changeset 3262953


Ignore:
Timestamp:
03/27/2025 03:24:50 PM (10 months ago)
Author:
apos37
Message:

1.2.2

  • Update: Changed author name from Apos37 to WordPress Enhanced, new Author URI
  • Tweak: Optimization of main file
  • Fix: Undefined variable $redirect_detected
Location:
broken-link-notifier
Files:
53 added
5 edited

Legend:

Unmodified
Added
Removed
  • broken-link-notifier/trunk/broken-link-notifier.php

    r3258065 r3262953  
    44 * Plugin URI:          https://github.com/apos37/broken-link-notifier
    55 * Description:         Get notified when someone loads a page with a broken link
    6  * Version:             1.2.1
    7  * Requires at least:   5.9.0
    8  * Tested up to:        6.7.2
     6 * Version:             1.2.2
     7 * Requires at least:   5.9
     8 * Tested up to:        6.7
    99 * Requires PHP:        7.4
    10  * Author:              Apos37
    11  * Author URI:          https://apos37.com/
     10 * Author:              WordPress Enhanced
     11 * Author URI:          https://wordpressenhanced.com/
     12 * Support URI:         https://discord.gg/3HnzNEJVnR
    1213 * Text Domain:         broken-link-notifier
    1314 * License:             GPLv2 or later
    1415 * License URI:         http://www.gnu.org/licenses/gpl-2.0.txt
     16 * Created on:          April 7, 2024
    1517 */
    1618
    17 // Exit if accessed directly.
    18 if ( !defined( 'ABSPATH' ) ) {
    19     exit;
    20 }
     19
     20/**
     21 * Exit if accessed directly.
     22 */
     23if ( !defined( 'ABSPATH' ) ) exit;
    2124
    2225
     
    2427 * Defines
    2528 */
     29$plugin_data = get_file_data( __FILE__, [
     30    'name'         => 'Plugin Name',
     31    'version'      => 'Version',
     32    'requires_php' => 'Requires PHP',
     33    'textdomain'   => 'Text Domain',
     34    'author'       => 'Author',
     35    'author_uri'   => 'Author URI',
     36    'support_uri'  => 'Support URI',
     37] );
    2638
    2739// Versions
    28 define( 'BLNOTIFIER_VERSION', '1.2.1' );
    29 define( 'BLNOTIFIER_MIN_PHP_VERSION', '7.4' );
     40define( 'BLNOTIFIER_VERSION', $plugin_data[ 'version' ] );
     41define( 'BLNOTIFIER_MIN_PHP_VERSION', $plugin_data[ 'requires_php' ] );
    3042
    3143// Names
    32 define( 'BLNOTIFIER_NAME', 'Broken Link Notifier' );
    33 define( 'BLNOTIFIER_TEXTDOMAIN', 'broken-link-notifier' );
    34 define( 'BLNOTIFIER_AUTHOR_NAME', 'Apos37' );
    35 define( 'BLNOTIFIER_AUTHOR_URL', 'https://apos37.com/' );
    36 define( 'BLNOTIFIER_DISCORD_SUPPORT_URL', 'https://discord.gg/3HnzNEJVnR' );
     44define( 'BLNOTIFIER_NAME', $plugin_data[ 'name' ] );
     45define( 'BLNOTIFIER_TEXTDOMAIN', $plugin_data[ 'textdomain' ] );
     46define( 'BLNOTIFIER_AUTHOR_NAME', $plugin_data[ 'author' ] );
     47define( 'BLNOTIFIER_AUTHOR_URL', $plugin_data[ 'author_uri' ] );
     48define( 'BLNOTIFIER_DISCORD_SUPPORT_URL', $plugin_data[ 'support_uri' ] );
    3749
    3850// Prevent loading the plugin if PHP version is not minimum
  • broken-link-notifier/trunk/includes/loader.php

    r3067171 r3262953  
    8181        if ( BLNOTIFIER_TEXTDOMAIN.'/'.BLNOTIFIER_TEXTDOMAIN.'.php' == $file ) {
    8282            $row_meta = [
    83                 'docs' => '<a href="'.esc_url( BLNOTIFIER_AUTHOR_URL.'wordpress-broken-link-notifier/' ).'" target="_blank" aria-label="'.esc_attr__( 'Plugin Website Link', 'broken-link-notifier' ).'">'.esc_html__( 'Website', 'broken-link-notifier' ).'</a>',
     83                // 'docs' => '<a href="'.esc_url( BLNOTIFIER_AUTHOR_URL.'wordpress-broken-link-notifier/' ).'" target="_blank" aria-label="'.esc_attr__( 'Plugin Website Link', 'broken-link-notifier' ).'">'.esc_html__( 'Website', 'broken-link-notifier' ).'</a>',
    8484                'discord' => '<a href="'.esc_url( BLNOTIFIER_DISCORD_SUPPORT_URL ).'" target="_blank" aria-label="'.esc_attr__( 'Plugin Support on Discord', 'broken-link-notifier' ).'">'.esc_html__( 'Discord Support', 'broken-link-notifier' ).'</a>'
    8585            ];
  • broken-link-notifier/trunk/includes/page-help.php

    r3219318 r3262953  
    180180section .plugin-card div {
    181181    margin-bottom: 0;
     182}
     183#the-list {
     184    display: flex;
     185    flex-flow: wrap;
     186}
     187.plugin-card {
     188    display: flex;
     189    flex-direction: column;
     190    margin-left: 0 !important;
     191}
     192.plugin-card .plugin-card-top {
     193    flex: 1;
     194}
     195.plugin-card .plugin-card-bottom {
     196    margin-top: auto;
     197}
     198.plugin-card .ws_stars {
     199    display: inline-block;
     200}
     201.php-incompatible {
     202    padding: 12px 20px;
     203    background-color: #D1231B;
     204    color: #FFFFFF;
     205    border-top: 1px solid #dcdcde;
     206    overflow: hidden;
     207}
     208#wpbody-content .plugin-card .plugin-action-buttons a.install-now[aria-disabled="true"] {
     209    color: #CBB8AD !important;
     210    border-color: #CBB8AD !important;
     211}
     212.plugin-action-buttons {
     213    list-style: none !important;   
    182214}
    183215</style>
     
    368400<section>
    369401<br><br>
    370     <h3>Try My Other Plugins</h3>
    371     <?php echo wp_kses_post( $HELPERS->plugin_card( 'admin-help-docs' ) ); ?>
    372     <?php echo wp_kses_post( $HELPERS->plugin_card( 'gf-discord' ) ); ?>
    373     <?php echo wp_kses_post( $HELPERS->plugin_card( 'gf-msteams' ) ); ?>
    374     <?php echo wp_kses_post( $HELPERS->plugin_card( 'dev-debug-tools' ) ); ?>
    375 </section>
     402    <h3><?php echo esc_html__( 'Try My Other Plugins', 'broken-link-notifier' ); ?></h3>
     403    <div class="wp-list-table widefat plugin-install">
     404        <div id="the-list">
     405            <?php echo wp_kses_post( $HELPERS->plugin_card( 'admin-help-docs' ) ); ?>
     406            <?php echo wp_kses_post( $HELPERS->plugin_card( 'eri-file-library' ) ); ?>
     407            <?php echo wp_kses_post( $HELPERS->plugin_card( 'clear-cache-everywhere' ) ); ?>
     408            <?php echo wp_kses_post( $HELPERS->plugin_card( 'dev-debug-tools' ) ); ?>
     409            <?php if ( is_plugin_active( 'gravityforms/gravityforms.php' ) ) { ?>
     410                <?php echo wp_kses_post( $HELPERS->plugin_card( 'gf-tools' ) ); ?>
     411                <?php echo wp_kses_post( $HELPERS->plugin_card( 'gf-discord' ) ); ?>
     412                <?php echo wp_kses_post( $HELPERS->plugin_card( 'gf-msteams' ) ); ?>
     413                <?php echo wp_kses_post( $HELPERS->plugin_card( 'gravity-zwr' ) ); ?>
     414            <?php } ?>
     415        </div>
     416    </div>
     417</section>
  • broken-link-notifier/trunk/includes/scan-multi.php

    r3218012 r3262953  
    192192                    ob_start();
    193193
     194                    $redirect_detected = false;
     195
    194196                    try {
    195197                        // Process shortcodes and expand them in the content
  • broken-link-notifier/trunk/readme.txt

    r3258065 r3262953  
    22Contributors: apos37
    33Tags: broken, link, links, checker, notify
    4 Requires at least: 5.9.0
    5 Tested up to: 6.7.2
     4Requires at least: 5.9
     5Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    116116
    117117== Changelog ==
     118= 1.2.2 =
     119* Update: Changed author name from Apos37 to WordPress Enhanced, new Author URI
     120* Tweak: Optimization of main file
     121* Fix: Undefined variable $redirect_detected
     122
    118123= 1.2.1 =
    119124* Update: Added a method column to the results page
Note: See TracChangeset for help on using the changeset viewer.