Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions includes/Features/ShortcodeInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ public function shortcode_inline( $atts, $content = null ) {
if ( ! current_user_can( 'administrator' ) ) {
return;
}
return '<p class="nx-shortcode-notice">' . __( 'Choose a Notification from the dropdown.', 'notificationx-pro' ) . '</p>';
return '<p class="nx-shortcode-notice">' . __( 'Choose a Notification from the dropdown.', 'notificationx' ) . '</p>';
}

if ( ! PostType::get_instance()->is_enabled( $nx_id ) ) {
if ( ! current_user_can( 'administrator' ) ) {
return;
}
return '<p class="nx-shortcode-notice">' . __( 'Make sure you have enabled the notification which ID you have given.', 'notificationx-pro' ) . '</p>';
return '<p class="nx-shortcode-notice">' . __( 'Make sure you have enabled the notification which ID you have given.', 'notificationx' ) . '</p>';
}

do_action( 'nx_inline' );
Expand Down Expand Up @@ -141,7 +141,7 @@ public function shortcode_inline( $atts, $content = null ) {
if ( $timestamp ) {
$diff_for_humans = sprintf(
/* translators: time */
_x( '%s ago', 'Inline Shortcode', 'notificationx-pro' ),
_x( '%s ago', 'Inline Shortcode', 'notificationx' ),
human_time_diff( $timestamp )
);
$_template = str_replace( '{{time}}', $diff_for_humans, $_template );
Expand Down