Skip to content
Open
Show file tree
Hide file tree
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
77 changes: 36 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ function display_rich_snippet( $content ) {
global $post;

if ( ! isset( $post->ID ) ) {
return;
return;
}

$args_video = get_option( 'bsf_video' );
Expand Down Expand Up @@ -914,7 +914,7 @@ function display_rich_snippet( $content ) {
'duration' => $iso_duration,
);

// Output the schema as JSON-LD only once.
// Output the schema as JSON-LD script tag.
$video .= '<script type="application/ld+json">' . json_encode( $schema ) . '</script>'; // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode

// Start the video rendering logic.
Expand Down Expand Up @@ -964,7 +964,7 @@ function display_rich_snippet( $content ) {
$video .= '<meta itemprop="uploadDate" content="' . esc_attr( $uploadDate ) . '">'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
}

$video .= '</div></div></div><div class="snippet-clear"></div>';
$video .= '</div></div><div class="snippet-clear"></div>';

return ( is_single() || is_page() ) ? $content . $video : $content;
} elseif ( '10' == $type ) {
Expand Down
15 changes: 15 additions & 0 deletions lib/nps-survey/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
Version 1.0.15 - 11-09-2025
- New:
- Added `privacy_policy` option with configurable link and custom content.
- Added `popup.placement` option to customize popup position.

Version 1.0.14 - 18-08-2025
- Improvement:
- Added `rating_min_label` and `rating_max_label` text options for customizable rating labels.

Version 1.0.13 - 18-08-2025
- Fix:
- Fixed issue where incorrect Content-Type header caused NPS survey close and rating submission requests to fail.
- Dev:
- Added filters to ensure compatibility with internal WP NPS Survey plugin on marketing sites.

Version 1.0.12 - 16-07-2025
- Improvement:
- Refactored rating prompt logic to allow disabling the WordPress rating functionality, ensuring a non-discriminatory and guideline-compliant user experience.
Expand Down
Loading
Loading