Changeset 3240310
- Timestamp:
- 02/13/2025 07:46:09 PM (14 months ago)
- Location:
- wp-notification-bell/trunk
- Files:
-
- 5 edited
-
admin/admin.php (modified) (1 diff)
-
includes/helpers.php (modified) (1 diff)
-
includes/menu_bell.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wp-notification-bell.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-notification-bell/trunk/admin/admin.php
r3209428 r3240310 361 361 echo $recipients; 362 362 ?>"/> 363 <p class="description">Comma-separated list of usernames to target users (optional)</p>363 <p class="description">Comma-separated list of usernames to target users, case-sensitive (optional)</p> 364 364 </td> 365 365 </tr> -
wp-notification-bell/trunk/includes/helpers.php
r3167969 r3240310 113 113 $to_replace = array( 114 114 '{{date}}' => get_the_date( 'l j M Y', $post_id ), 115 '{{human_date}}' => sprintf( _x( '%1$s ago', '%2$s = human-readable time difference', 'wp-notification-bell' ), human_time_diff( get_post_time( 'U', false, $post_id ), current_time( 'timestamp') ) ),116 '{{time}}' => get_ the_date( 'H:i', $post_id),115 '{{human_date}}' => sprintf( _x( '%1$s ago', '%2$s = human-readable time difference', 'wp-notification-bell' ), human_time_diff( get_post_time( 'U', true, $post_id ), current_time( 'timestamp', true ) ) ), 116 '{{time}}' => get_date_from_gmt( get_the_date( 'H:i', $post_id ), 'H:i' ), 117 117 '{{post_title}}' => ( $new_post ? get_the_title( $new_post ) : '' ), 118 118 ); -
wp-notification-bell/trunk/includes/menu_bell.php
r3209428 r3240310 22 22 if ( strlen( $items ) > $menu_position && $menu_position > 0 ) { 23 23 $items_array = array(); 24 while ( false !== ($item_pos = strpos( $items, '<li', $menu_position )) ) { 24 while ( !empty( $items ) && is_string( $items ) && false !== ($item_pos = strpos( $items, '<li', $menu_position )) ) { 25 if ( $item_pos === 0 ) { 26 break; 27 // Avoid infinite loop 28 } 25 29 $items_array[] = substr( $items, 0, $item_pos ); 26 30 $items = substr( $items, $item_pos ); … … 45 49 if ( strlen( $items ) > $menu_position && $menu_position > 0 ) { 46 50 $items_array = array(); 47 while ( false !== ($item_pos = strpos( $items, '<li', $menu_position )) ) { 51 while ( !empty( $items ) && is_string( $items ) && false !== ($item_pos = strpos( $items, '<li', $menu_position )) ) { 52 if ( $item_pos === 0 ) { 53 break; 54 // Avoid infinite loop 55 } 48 56 $items_array[] = substr( $items, 0, $item_pos ); 49 57 $items = substr( $items, $item_pos ); -
wp-notification-bell/trunk/readme.txt
r3229824 r3240310 4 4 Requires at least: 4.0 5 5 Tested up to: 6.7 6 Stable tag: 1.4. 36 Stable tag: 1.4.4 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later -
wp-notification-bell/trunk/wp-notification-bell.php
r3229824 r3240310 5 5 * Plugin URI: https://wpsimpleplugins.wordpress.com/documentation/ 6 6 * Description: On-site notification system. 7 * Version: 1.4. 37 * Version: 1.4.4 8 8 * Author: SPlugins 9 9 * Author URI: https://wpsimpleplugins.wordpress.com/documentation/
Note: See TracChangeset
for help on using the changeset viewer.