Plugin Directory

Changeset 3373759


Ignore:
Timestamp:
10/06/2025 02:04:06 PM (6 months ago)
Author:
apos37
Message:

1.3.4

  • Tweak: Change "Delete" action link on omitted links/pages to "Remove Omission" (props Diane for suggestion)
  • Tweak: Highlighted the admin bar count red
Location:
broken-link-notifier
Files:
54 added
6 edited

Legend:

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

    r3349334 r3373759  
    44 * Plugin URI:          https://pluginrx.com/plugin/broken-link-notifier/
    55 * Description:         Get notified when someone loads a page with a broken link
    6  * Version:             1.3.3
     6 * Version:             1.3.4
    77 * Requires at least:   5.9
    88 * Tested up to:        6.8
  • broken-link-notifier/trunk/includes/css/results-front.css

    r3067171 r3373759  
    11@keyframes glowingText {
    22    0% {
    3       background-color: #FFFF00;
    4       box-shadow: 0 0 5px #FFFF00;
     3        background-color: #FFFF00;
     4        box-shadow: 0 0 5px #FFFF00;
    55    }
    66    50% {
    7       background-color: #FFFFFF;
    8       box-shadow: 0 0 20px #FFFFFF;
     7        background-color: #FFFFFF;
     8        box-shadow: 0 0 20px #FFFFFF;
    99    }
    1010    100% {
    11       background-color: #FFFF00;
    12       box-shadow: 0 0 5px #FFFF00;
     11        background-color: #FFFF00;
     12        box-shadow: 0 0 5px #FFFF00;
    1313    }
    1414}
    1515.glowText {
    16   animation: glowingText 1300ms infinite;
    17   color: #000000 !important;
    18   border: 2px dashed #FF0000 !important;
     16    animation: glowingText 1300ms infinite;
     17    color: #000000 !important;
     18    border: 2px dashed #FF0000 !important;
    1919}
  • broken-link-notifier/trunk/includes/helpers.php

    r3349334 r3373759  
    421421    } // End start_timer()
    422422
     423
     424    /**
     425     * Stop the timer and return the total time
     426     *
     427     * @param int $start
     428     * @return int
     429     */
    423430    public function stop_timer( $start ) {
    424431        $time = microtime();
  • broken-link-notifier/trunk/includes/omits.php

    r3287974 r3373759  
    7272        add_filter( 'manage_edit-'.$taxonomies[0].'_columns', [ $this, 'admin_columns_links' ] );
    7373        add_filter( 'manage_edit-'.$taxonomies[1].'_columns', [ $this, 'admin_columns_pages' ] );
    74         add_filter( 'manage_'.$taxonomies[1].'_custom_column', [ $this, 'admin_column_content_pages' ], 10, 3);
     74        add_filter( 'manage_'.$taxonomies[1].'_custom_column', [ $this, 'admin_column_content_pages' ], 10, 3 );
     75        add_filter( $taxonomies[0].'_row_actions', [ $this, 'modify_term_actions' ], 10, 2 );
     76        add_filter( $taxonomies[1].'_row_actions', [ $this, 'modify_term_actions' ], 10, 2 );
    7577
    7678        // Ajax
     
    246248
    247249    /**
     250     * Modify the action links on taxonomy term rows.
     251     *
     252     * @param array   $actions Array of action links.
     253     * @param WP_Term $term    The current term object.
     254     *
     255     * @return array
     256     */
     257    public function modify_term_actions( $actions, $term ) {
     258        if ( isset( $actions[ 'delete' ] ) ) {
     259            $actions[ 'delete' ] = str_replace( 'Delete', 'Remove Omission', $actions[ 'delete' ] );
     260        }
     261
     262        return $actions;
     263    } // End modify_term_actions()
     264
     265
     266    /**
    248267     * Add a link to the omits
    249268     *
  • broken-link-notifier/trunk/includes/results.php

    r3292122 r3373759  
    640640     */
    641641    public function admin_bar( $wp_admin_bar ) {
     642        $count = ( new BLNOTIFIER_HELPERS )->count_broken_links();
     643        $count_class = $count > 0 ? ' blnotifier-count-indicator' : '';
     644
    642645        // Add the node
    643646        $wp_admin_bar->add_node( [
    644647            'id'    => 'blnotifier-notify',
    645             'title' => '<span class="ab-icon dashicons dashicons-editor-unlink"></span> <span class="awaiting-mod">'.(new BLNOTIFIER_HELPERS)->count_broken_links().'</span>',
    646             'href'  => (new BLNOTIFIER_MENU)->get_plugin_page( 'results' )
     648            'title' => '<span class="ab-icon dashicons dashicons-editor-unlink"></span> <span class="ab-count' . $count_class . '">' . $count . '</span>',
     649            'href'  => ( new BLNOTIFIER_MENU )->get_plugin_page( 'results' )
    647650        ] );
    648651
     
    661664        #wp-admin-bar-blnotifier-notify .ab-icon:before {
    662665            font-size: 16px;
     666        }
     667        #wp-admin-bar-blnotifier-notify .ab-count {
     668            margin: 0 0 0 2px !important;
     669        }
     670        #wp-admin-bar-blnotifier-notify .blnotifier-count-indicator {
     671            display: inline-block;
     672            margin: 0 0 0 2px !important;
     673            padding: 0 5px;
     674            background-color: #dc3232;
     675            color: #fff;
    663676        }
    664677        </style>';
     
    13331346    /**
    13341347     * Enque the JavaScript
    1335      * // TODO: Reminder to swap version number after testing
    13361348     *
    13371349     * @return void
     
    13691381    /**
    13701382     * Enque the JavaScript
    1371      * // TODO: Reminder to swap version number after testing
    13721383     *
    13731384     * @return void
  • broken-link-notifier/trunk/readme.txt

    r3349334 r3373759  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    127127
    128128== Changelog ==
     129= 1.3.4 =
     130* Tweak: Change "Delete" action link on omitted links/pages to "Remove Omission" (props Diane for suggestion)
     131* Tweak: Highlighted the admin bar count red
     132
    129133= 1.3.3 =
    130134* Fix: Settings error causing missing fields and submit button (props @DLLHell)
Note: See TracChangeset for help on using the changeset viewer.