Plugin Directory

Changeset 3413658


Ignore:
Timestamp:
12/07/2025 06:24:46 PM (4 months ago)
Author:
tiomking
Message:

minor issues fix

Location:
reword/branches/refactor-notify-banner
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • reword/branches/refactor-notify-banner/class/class-reword-plugin.php

    r3396275 r3413658  
    270270        $enable_update_button = (!empty($update_plugins) && (isset($update_plugins[REWORD_PLUGIN_BASENAME])));
    271271        // Show page
    272         include(REWORD_ADMIN_DIR . '/php/reword-help.php');
     272        include_once REWORD_ADMIN_DIR . '/php/reword-help.php';
    273273    }
    274274
     
    513513                        $ret_msg = 'Database error. Please try again later...';
    514514                    }
    515                 } else if ($reports_ids = $this->reword_fetch_data('id')) {
     515                } elseif ($reports_ids = $this->reword_fetch_data('id')) {
    516516                    // Handle action on checked reports, or a specific report
    517517                    if ('delete' === $action) {
     
    525525                            }
    526526                        }
    527                     } else if ('ignore' === $action) {
     527                    } elseif ('ignore' === $action) {
    528528                        // Ignore reports
    529529                        foreach ($reports_ids as $report_id) {
  • reword/branches/refactor-notify-banner/class/class-reword-reports-table.php

    r3396290 r3413658  
    3131     * @param string $type
    3232     */
    33     function __construct($type)
     33    public function __construct($type)
    3434    {
    3535        // Set parent defaults
  • reword/branches/refactor-notify-banner/public/css/reword-public.css

    r3396269 r3413658  
    2323    color: #fff;
    2424    /* White */
    25     background: #ff0000;
    26     /* Red */
     25    background: #cc0000;
     26    /* Darker Red */
    2727    -webkit-transition: all 0.5s;
    2828    -moz-transition: all 0.5s;
     
    3333
    3434.reword-icon-inactive {
    35     color: #000;
    36     /* Black */
    37     background: rgba(0, 0, 0, 0.36);
     35    color: #fff;
     36    background: rgba(0, 0, 0, 0.3);
    3837    -webkit-transition: all 0.5s;
    3938    -moz-transition: all 0.5s;
  • reword/branches/refactor-notify-banner/public/js/reword-public.js

    r3396275 r3413658  
    180180 */
    181181function rewordGetFullText(rewordRange) {
    182     if (null !== rewordRange) {
     182    if (rewordRange) {
    183183        // Check trimmed white spaces
    184184        const selectedText = rewordRange.toString();
     
    204204 */
    205205function rewordGetURL(rewordRange) {
    206     if (null !== rewordRange) {
     206    if (rewordRange) {
    207207        // Get element ID, or closest parent ID (if any)
    208208        let textElementDataTmp = rewordRange.commonAncestorContainer.parentElement;
Note: See TracChangeset for help on using the changeset viewer.