Skip to content

Commit

Permalink
Merge pull request #77 from mongoose-marketplace/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
cameronjonesweb committed Aug 27, 2023
2 parents 937dab7 + 4443117 commit 2472bee
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy-readme.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .github/workflows/deploy-tags.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file added .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion facebook-page-feed-graph-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions inc/class-mongoose-page-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Mongoose_Page_Plugin {
*
* @var string
*/
public $version = '1.9.0';
public $version = '1.9.1';

/**
* The plugin slug
Expand Down Expand Up @@ -463,7 +463,7 @@ public function facebook_page_plugin( $filter ) {
if ( 'sdk' === $a['method'] ) {

$return .= sprintf(
'<div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/%1$s/sdk.js#xfbml=1&version=v11.0"></script>', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
'<div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/%1$s/sdk.js#xfbml=1&version=v17.0"></script>', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
esc_attr( $a['language'] )
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function form( $instance ) {
}
foreach ( $cjw_fbpp_tabs as $tab ) {
printf(
'<br/><label><input type="checkbox" name="%1$s[%2$s]" %3$s /> %4$s</label>',
'<br/><label><input type="checkbox" name="%1$s[]" value="%2$s" %3$s /> %4$s</label>',
esc_attr( $this->get_field_name( 'tabs' ) ),
esc_attr( $tab ),
in_array( $tab, $tabs, true ) ? 'checked' : '',
Expand Down Expand Up @@ -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 {
Expand Down
14 changes: 12 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 2472bee

Please sign in to comment.