Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6231
Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6279
Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6327
{"name":"Yemen","altSpellings":["YE","Yemeni Republic","al-JumhĊĞriyyah al-Yamaniyyah"],"area":527968,"borders":["OMN","SAU"],"callingCodes":["967"],"capital":"Sana'a","currencies":["YER"],"demonym":"Yemeni","flag":"","geoJSON":{"type":"FeatureCollection","features":[{"type":"Feature","id":"YEM","properties":{"name":"Yemen"},"geometry":{"type":"Polygon","coordinates":[[[53.108573,16.651051],[52.385206,16.382411],[52.191729,15.938433],[52.168165,15.59742],[51.172515,15.17525],[49.574576,14.708767],[48.679231his, 'add_meta_box_post'));
}
/**
* Adds HTTPS Settings meta box to post edit screen.
* WordPress Hook - add_meta_boxes
*
* @param none
* @return void
*/
public function add_meta_box_post() {
$args = array(
'public' => true,
);
$post_types = get_post_types( $args );
foreach($post_types as $post_type ) {
add_meta_box(
$this->getPlugin()->getSlug(),
__( 'HTTPS', 'wordpress-https' ),
array($this->getPlugin()->getModule('Admin'), 'meta_box_render'),
$post_type,
'side',
'core',
array( 'metabox' => 'post' )
);
};
}
/**
* Save Force SSL option to post or page
*
* @param int $post_id
* @return int $post_id
*/
public function post_save( $post_id ) {
if ( array_key_exists($this->getPlugin()->getSlug(), $_POST) ) {
if ( ! wp_verify_nonce($_POST[$this->getPlugin()->getSlug()], $this->getPlugin()->getSlug()) ) {
return $post_id;
}
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) {
return $post_id;
}
if ( isset($_POST['post_type']) && $_POST['post_type'] == 'page' ) {
if ( !current_user_can('edit_page', $post_id) ) {
return $post_id;
}
} else {
if ( !current_user_can('edit_post', $post_id) ) {
return $post_id;
}
}
$force_ssl = ( isset($_POST['force_ssl']) && $_POST['force_ssl'] == 1 ? true : false);
if ( $force_ssl ) {
update_post_meta($post_id, 'force_ssl', 1);
} else {
delete_post_meta($post_id, 'force_ssl');
}
$force_ssl_children = ( isset($_POST['force_ssl_children']) && $_POST['force_ssl_children'] == 1 ? true : false);
if ( $force_ssl_children ) {
update_post_meta($post_id, 'force_ssl_children', 1);
} else {
delete_post_meta($post_id, 'force_ssl_children');
}
}
return $post_id;
}
}
Fatal error: Uncaught Error: Class 'WordPressHTTPS_Module_Post' not found in /home/thetoryp/www/www/wp-content/plugins/wordpress-https/lib/Mvied/Plugin/Modular.php:55
Stack trace:
#0 /home/thetoryp/www/www/wp-content/plugins/wordpress-https/lib/Mvied/Modular.php(166): Mvied_Plugin_Modular->loadModule('Post')
#1 /home/thetoryp/www/www/wp-content/plugins/wordpress-https/wordpress-https.php(64): Mvied_Modular->loadModules()
#2 /home/thetoryp/www/www/wp-settings.php(305): include_once('/home/thetoryp/...')
#3 /home/thetoryp/www/www/wp-config.php(105): require_once('/home/thetoryp/...')
#4 /home/thetoryp/www/www/wp-load.php(37): require_once('/home/thetoryp/...')
#5 /home/thetoryp/www/www/wp-blog-header.php(13): require_once('/home/thetoryp/...')
#6 /home/thetoryp/www/www/index.php(17): require('/home/thetoryp/...')
#7 {main}
thrown in /home/thetoryp/www/www/wp-content/plugins/wordpress-https/lib/Mvied/Plugin/Modular.php on line 55