Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: ACLabs
Tags: search, google, gcse, programmable search, cse
Requires at least: 6.4
Tested up to: 7.0
Stable tag: 1.2.3
Stable tag: 1.2.5
Requires PHP: 8.2
License: AGPL v3 or later
License URI: https://www.gnu.org/licenses/agpl-3.0.html
Expand Down
7 changes: 2 additions & 5 deletions gpse/includes/class-wp-gpse-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ public function init() {
/**
* Register Gutenberg blocks.
*
* Registers two blocks using Block API v3:
* - gpse/search-form: Google CSE search input box
* - gpse/search-results: Google CSE search results display
*
* Both blocks use server-side rendering with dynamic callbacks.
* Registers the gpse/search-results block using Block API v3 with
* server-side rendering via dynamic callback.
*
* @since 1.1.0
* @return void
Expand Down
2 changes: 1 addition & 1 deletion gpse/includes/class-wp-gpse-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function enqueue_google_script() {
if ( ! empty( $cx_id ) ) {
wp_enqueue_script(
'google-cse',
'https://cse.google.com/cse.js?cx=' . esc_attr( $cx_id ),
'https://cse.google.com/cse.js?cx=' . rawurlencode( $cx_id ),
array(),
null,
array( 'strategy' => 'defer', 'in_footer' => true )
Expand Down
6 changes: 6 additions & 0 deletions gpse/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ By using this plugin you agree to be bound by Google's Terms of Service and ackn

== Changelog ==

= 1.2.6 =
* Confirmed compatibility with WordPress 7.0.
* Fixed URL encoding of Google CSE CX ID (rawurlencode instead of esc_attr).
* Removed spurious version query string from Google CSE script URL.
* Added `role: content` to block.json for correct editability in WordPress 7.0 contentOnly patterns.

= 1.2.5 =
* Restrict Google CSE script, stylesheet, and init script to the configured results page only.
* Add third-party service disclosure for Google Programmable Search Engine.
Expand Down
1 change: 1 addition & 0 deletions gpse/src/search-results/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"category": "widgets",
"icon": "welcome-widgets-menus",
"description": "Google Programmable Search Engine results list.",
"role": "content",
"supports": {
"html": false,
"align": true
Expand Down