🔒 EXCLUSIVE: Changeset/ - Full Archive

Changeset 3267433


Ignore:
Timestamp:
04/06/2025 10:12:54 AM (9 months ago)
Author:
andreaporotti
Message:

Updating to version 1.5.3.

Location:
jamp-notes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jamp-notes/trunk/README.txt

    r3187805 r3267433  
    33Tags: notes, note, memo, dashboard
    44Requires at least: 4.9
    5 Tested up to: 6.7
     5Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 1.5.2
     7Stable tag: 1.5.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8989== Changelog ==
    9090
     91**1.5.3 [2025-04-06]**
     92
     93- Tested on WordPress 6.8.
     94- Fixed: section notes without a color were displayed in yellow.
     95- Fixed: show a default text on section notes without a title.
     96
    9197**1.5.2 [2024-11-13]**
    9298
  • jamp-notes/trunk/admin/partials/jamp-admin-admin-bar.php

    r3187805 r3267433  
    9898            $note_modified_date = date_i18n( $date_time_format, strtotime( $note->post_modified ) );
    9999            $note_created_date  = date_i18n( $date_time_format, strtotime( $note->post_date ) );
     100            $note_title         = ( ! empty( $note->post_title ) ? $note->post_title : __( '(no title)' ) );
    100101
    101102            $jamp_meta        = get_post_meta( $note->ID );
    102103            $note_color_class = 'jamp-note--color-yellow';
    103             if ( isset( $jamp_meta['jamp_color'][0] ) && ! empty( $jamp_meta['jamp_color'][0] ) ) {
    104                 $note_color_class = 'jamp-note--color-' . $jamp_meta['jamp_color'][0];
     104
     105            if ( isset( $jamp_meta['jamp_color'] ) ) {
     106                if ( ! empty( $jamp_meta['jamp_color'][0] ) ) {
     107                    $note_color_class = 'jamp-note--color-' . $jamp_meta['jamp_color'][0];
     108                } else {
     109                    $note_color_class = '';
     110                }
    105111            }
    106112
    107113            $html .= '<div class="jamp-admin-bar-note ' . esc_attr( $note_color_class ) . '" data-note="' . esc_attr( $note->ID ) . '" data-scope="section">'
    108                     . '<span class="jamp-admin-bar-note__title">' . esc_html( $note->post_title ) . '</span>'
     114                    . '<span class="jamp-admin-bar-note__title">' . esc_html( $note_title ) . '</span>'
    109115                    . '<span class="jamp-admin-bar-note__actions">'
    110116                    . '<a class="jamp-admin-bar-action jamp-admin-bar-action--info" href="#" title="' . esc_html__( 'Details', 'jamp' ) . '"></a>'
  • jamp-notes/trunk/jamp.php

    r3187805 r3267433  
    44 * Plugin URI:        https://github.com/andreaporotti/just-another-memo-plugin
    55 * Description:       This plugin allows you to attach notes to some WordPress elements like posts, pages, dashboard sections and others.
    6  * Version:           1.5.2
     6 * Version:           1.5.3
    77 * Requires at least: 4.9
    88 * Requires PHP:      5.6
     
    4242 * Uses SemVer ( https://semver.org ).
    4343 */
    44 define( 'JAMP_VERSION', '1.5.2' );
     44define( 'JAMP_VERSION', '1.5.3' );
    4545
    4646/**
Note: See TracChangeset for help on using the changeset viewer.