Skip to content

Commit 91c03af

Browse files
Merge pull request #79 from mongoose-marketplace/dev
Release 1.9.2
2 parents 946ddf7 + aad0876 commit 91c03af

File tree

2 files changed

+12
-38
lines changed

2 files changed

+12
-38
lines changed

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

inc/class-mongoose-page-plugin.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,19 @@ class Mongoose_Page_Plugin {
4242
*/
4343
private $basename;
4444

45+
/**
46+
* The plugin settings page URL
47+
*
48+
* @var string
49+
*/
50+
private $settings_page_url;
51+
4552
/**
4653
* The plugin version
4754
*
4855
* @var string
4956
*/
50-
public $version = '1.9.1';
57+
public $version = '1.9.2';
5158

5259
/**
5360
* The plugin slug
@@ -221,8 +228,8 @@ public function __construct() {
221228
* Setup dynamic properties.
222229
*/
223230
public function constants() {
224-
$this->dirurl = plugin_dir_url( dirname( __FILE__ ) );
225-
$this->dirpath = plugin_dir_path( dirname( __FILE__ ) );
231+
$this->dirurl = plugin_dir_url( __DIR__ );
232+
$this->dirpath = plugin_dir_path( __DIR__ );
226233
$this->basefile = plugin_basename( $this->dirpath . '/' . $this->slug . '.php' );
227234
$this->basename = basename( $this->dirpath );
228235
$this->settings_page_url = admin_url( 'options-general.php?page=' . $this->slug );
@@ -294,7 +301,7 @@ private function app_id() {
294301
public function donate_notice( $echo = false ) {
295302
$return = null;
296303

297-
if ( current_user_can( 'administrator' ) ) {
304+
if ( current_user_can( 'manage_options' ) ) {
298305
$user_id = get_current_user_id();
299306

300307
if ( ! get_user_meta( $user_id, $this->remove_donate_notice_key ) || get_user_meta( $user_id, $this->remove_donate_notice_key ) === false ) {
@@ -463,7 +470,7 @@ public function facebook_page_plugin( $filter ) {
463470
if ( 'sdk' === $a['method'] ) {
464471

465472
$return .= sprintf(
466-
'<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
473+
'<div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/%1$s/sdk.js#xfbml=1&version=v23.0"></script>', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
467474
esc_attr( $a['language'] )
468475
);
469476

@@ -582,6 +589,4 @@ public function get_settings() {
582589
$return['tabs'] = array( 'timeline', 'events', 'messages' );
583590
return $return;
584591
}
585-
586592
}
587-

0 commit comments

Comments
 (0)