https://github.com/PressForward/pressforward
Raw File
Tip revision: 438629d15ed9706ebcddebfdd2eca2c39ed49947 authored by Boone B Gorges on 23 February 2023, 18:52:05 UTC
Fix strpos() logic in PF_Readability::process_in_oembeds().
Tip revision: 438629d
pressforward.php
<?php
/**
 * Plugin Name: PressForward
 * Plugin URI: http://pressforward.org/
 * Description: The PressForward Plugin is a tool by the Roy Rosenzweig Center for History and New Media for aggregating and curating web-based content within the WordPress dashboard.
 * Version: 5.3.1
 * GitHub Plugin URI: https://github.com/PressForward/pressforward
 * Author: Aram Zucker-Scharff, Boone B Gorges, Jeremy Boggs
 * Author URI: http://pressforward.org/about/team/
 * License: GPL2
 * Text Domain: pf
 * Domain Path: /languages
 *
 * @package PressForward
 */

require 'constants.php';

// Protect File.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( ! class_exists( 'WPUpdatePhp' ) ) {
	require 'Libraries/WPUpdatePHP.php';
}

if ( ! class_exists( 'MyCLabs\Enum\Enum' ) ) {
	require 'Libraries/Enum.php';
}

$php_check = new WPUpdatePhp( '5.3.0' );
$php_check->set_plugin_name( 'PressForward' );

if ( ( PHP_VERSION < 5.3 ) || ( ! $php_check->does_it_meet_required_php_version( PHP_VERSION ) ) ) {
	wp_die( 'As of version 3.9.0 PressForward requires at least PHP 5.3.' );
	return;
} else {
	require 'init.php';
}

/**
 * Loads plugin textdomain.
 */
function pressforward_load_plugin_textdomain() {
	load_plugin_textdomain( 'pf', false, basename( __DIR__ ) . '/languages/' );
}
add_action( 'plugins_loaded', 'pressforward_load_plugin_textdomain' );
back to top