diff --git a/.github/workflows/deploy-readme.yml b/.github/workflows/deploy-readme.yml new file mode 100644 index 0000000..d7b7928 --- /dev/null +++ b/.github/workflows/deploy-readme.yml @@ -0,0 +1,18 @@ +name: Plugin asset/readme update +on: + push: + branches: + - master +jobs: + trunk: + name: Push to trunk + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: facebook-page-feed-graph-api + README_NAME: readme.md diff --git a/.github/workflows/deploy-tags.yml b/.github/workflows/deploy-tags.yml new file mode 100644 index 0000000..9360185 --- /dev/null +++ b/.github/workflows/deploy-tags.yml @@ -0,0 +1,17 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: facebook-page-feed-graph-api diff --git a/.wordpress-org/banner-1544x500.png b/.wordpress-org/banner-1544x500.png new file mode 100644 index 0000000..f3dae82 Binary files /dev/null and b/.wordpress-org/banner-1544x500.png differ diff --git a/.wordpress-org/banner-772x250.jpg b/.wordpress-org/banner-772x250.jpg new file mode 100644 index 0000000..13d806d Binary files /dev/null and b/.wordpress-org/banner-772x250.jpg differ diff --git a/.wordpress-org/banner-772x250.png b/.wordpress-org/banner-772x250.png new file mode 100644 index 0000000..11b6e58 Binary files /dev/null and b/.wordpress-org/banner-772x250.png differ diff --git a/.wordpress-org/icon-128x128.png b/.wordpress-org/icon-128x128.png new file mode 100644 index 0000000..f0ea8c3 Binary files /dev/null and b/.wordpress-org/icon-128x128.png differ diff --git a/.wordpress-org/icon-256x256.png b/.wordpress-org/icon-256x256.png new file mode 100644 index 0000000..555de4d Binary files /dev/null and b/.wordpress-org/icon-256x256.png differ diff --git a/.wordpress-org/screenshot-1.png b/.wordpress-org/screenshot-1.png new file mode 100644 index 0000000..c399c09 Binary files /dev/null and b/.wordpress-org/screenshot-1.png differ diff --git a/.wordpress-org/screenshot-2.png b/.wordpress-org/screenshot-2.png new file mode 100644 index 0000000..6215154 Binary files /dev/null and b/.wordpress-org/screenshot-2.png differ diff --git a/.wordpress-org/screenshot-3.png b/.wordpress-org/screenshot-3.png new file mode 100644 index 0000000..bfe109d Binary files /dev/null and b/.wordpress-org/screenshot-3.png differ diff --git a/facebook-page-feed-graph-api.php b/facebook-page-feed-graph-api.php index fa1508f..b0d910d 100644 --- a/facebook-page-feed-graph-api.php +++ b/facebook-page-feed-graph-api.php @@ -3,7 +3,7 @@ * Plugin Name: Mongoose Page Plugin * Plugin URI: https://mongoosemarketplace.com/downloads/facebook-page-plugin/ * Description: The most popular way to display the Facebook Page Plugin on your WordPress website. Easy implementation using a shortcode or widget. Now available in 95 different languages - * Version: 1.9.0 + * Version: 1.9.1 * Author: Mongoose Marketplace * Author URI: https://mongoosemarketplace.com/ * License: GPLv2 diff --git a/inc/class-mongoose-page-plugin.php b/inc/class-mongoose-page-plugin.php index 25ad8e4..1fe5ddf 100644 --- a/inc/class-mongoose-page-plugin.php +++ b/inc/class-mongoose-page-plugin.php @@ -47,7 +47,7 @@ class Mongoose_Page_Plugin { * * @var string */ - public $version = '1.9.0'; + public $version = '1.9.1'; /** * The plugin slug @@ -463,7 +463,7 @@ public function facebook_page_plugin( $filter ) { if ( 'sdk' === $a['method'] ) { $return .= sprintf( - '
', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript + '
', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript esc_attr( $a['language'] ) ); diff --git a/inc/widgets/class-mongoose-page-plugin-facebook-page-widget.php b/inc/widgets/class-mongoose-page-plugin-facebook-page-widget.php index 6875acd..c51011d 100644 --- a/inc/widgets/class-mongoose-page-plugin-facebook-page-widget.php +++ b/inc/widgets/class-mongoose-page-plugin-facebook-page-widget.php @@ -316,7 +316,7 @@ public function form( $instance ) { } foreach ( $cjw_fbpp_tabs as $tab ) { printf( - '
', + '
', esc_attr( $this->get_field_name( 'tabs' ) ), esc_attr( $tab ), in_array( $tab, $tabs, true ) ? 'checked' : '', @@ -421,9 +421,10 @@ public function update( $new_instance, $old_instance ) { $instance['cover'] = ( ! empty( $new_instance['cover'] ) ) ? wp_strip_all_tags( $new_instance['cover'] ) : ''; $instance['facepile'] = ( ! empty( $new_instance['facepile'] ) ) ? wp_strip_all_tags( $new_instance['facepile'] ) : ''; if ( ! empty( $new_instance['tabs'] ) ) { + $instance['tabs'] = $new_instance['tabs']; if ( is_array( $new_instance['tabs'] ) ) { - foreach ( $new_instance['tabs'] as $key => $var ) { - $instance['tabs'][] = sanitize_text_field( $key ); + for ( $i = 0, $c = count( $new_instance['tabs'] ); $i < $c; $i++ ) { + $instance['tabs'][] = wp_strip_all_tags( $new_instance['tabs'][ $i ] ); } } } else { diff --git a/readme.md b/readme.md index e297a49..d802922 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Tested up to: 6.1 Requires PHP: 5.3 -Stable tag: 1.9.0 +Stable tag: 1.9.1 License: GPLv2 @@ -44,7 +44,11 @@ With more than 30,000 installs and over 50 5-star rating, the Mongoose Page Plug ## Frequently Asked Questions ### The plugin doesn't load properly -The most common causes of the plugin not displaying are an ad blocker, audience restrictions or browser privacy settings. Disable or whitelist any ad blocking browser extension and disable any audience restrictions in your page settings on Facebook. Some antivirus software has also been known to block Facebook scripts, preventing it from loading. Browsers are also being more proactive in blocking Facebook scripts, so make sure your browser privacy settings are not stopping it from loading. +The most common causes of the plugin not displaying are an ad blocker, audience restrictions or browser privacy settings. +* Disable or whitelist any ad blocking browser extension +* Disable any audience restrictions in your page settings on Facebook. +* Disable any antivirus software on your device. +* If using Safari, [disable Hide IP From Tracker](https://stackoverflow.com/a/74542146/1672694). ### The plugin loads but doesn't show the facepile or posts The default height of the plugin is only tall enough to display the main page header. Increase the height until you can see the additional features you want to display. @@ -64,6 +68,12 @@ Not yet, but it is on our roadmap. ## Changelog +### 1.9.1 - 27/08/23 +* Verified compatibility with WordPress 6.3 +* Fixed an issue with changes to tabs not saving in the block widget editor +* Fixed missing image +* Updated SDK version to 17.0 + ### 1.9.0 - 27/12/22 * Verified compatibility with WordPress 6.1 * Updated plugin landing page to match native WordPress admin styles more closely