Permalink
Browse files

Version 3.4.8:

* deactived relative links
  • Loading branch information...
xwolfde committed Nov 2, 2017
1 parent fc554a7 commit e3f3590f489cab7181459742831142655cc36566
Showing with 15 additions and 8 deletions.
  1. +3 −0 CHANGELOG.txt
  2. +4 −0 css/basemod_linkicons.css
  3. +6 −6 functions.php
  4. +1 −1 readme.txt
  5. +1 −1 style.css
View
@@ -3,6 +3,9 @@ Theme Piratenkleider
Changelog
(since version 3.2; Former changes look at github.com/Piratenkleider/)
Version 3.4.8:
* Deactivated functions to make links relative due to several prolems
Version 3.4.7:
* User Agent String set from emoty to "Browser anonymized"
* Width of Piratewiki Symbol to 16px
@@ -229,3 +229,7 @@ a.rsswidget:before,
width: 0;
content: normal;
}
.content-primary #ai1ec-container a:before {
content: inherit;
}
View
@@ -1636,15 +1636,15 @@ function piratenkleider_make_nice_links($content) {
$new_content = preg_replace('~<(?:!DOCTYPE|/?(?:html|body))[^>]*>\s*~i', '', $new_content);
return $new_content;
}
add_filter('the_content', 'piratenkleider_make_nice_links');
// add_filter('the_content', 'piratenkleider_make_nice_links');
function get_piratenkleider_template_uri () {
return wp_make_link_relative(get_template_directory_uri());
}
add_action('template_redirect', 'rw_relative_urls');
// add_action('template_redirect', 'rw_relative_urls');
function rw_relative_urls() {
// Don't do anything if:
// - In feed
@@ -1980,7 +1980,7 @@ function piratenkleider_page_template($t) {
function featured_image_in_rss($content) {
global $post;
global $options;
// Überprüfen, ob Artikel ein Beitragsbild hat
//Check for page image
if(is_feed() && $options['feed-addthumbnail']) {
if (!isHTML($content)) {
@@ -2004,7 +2004,7 @@ function featured_image_in_rss($content) {
return $content;
}
//Filter für RSS-Content
//Filter RSS-Content
add_filter('the_content_feed', 'featured_image_in_rss');
add_filter('the_excerpt_rss', 'featured_image_in_rss');
@@ -2017,10 +2017,10 @@ function isHTML($text){
function piratenkleider_admin_init() {
remove_post_type_support( 'page', 'comments' );
// Keine Kommentar/Dkussionsmetabox auf Seiten
// No comments on pages
$role = get_role('editor');
$role->add_cap('edit_dashboard');
// Statify zulassen für Redakteure
// Statify for Editors
}
add_action('admin_init', 'piratenkleider_admin_init');
View
@@ -2,7 +2,7 @@ Piratenkleider
- Wordpress-Theme for websites of the Pirate Party
====================================================
Version 3.4.5 by Wolfgang Wiese (xwolf), 04.02.2017
Version 3.4.8 by Wolfgang Wiese (xwolf), 01.11.2017
View
@@ -6,7 +6,7 @@ Description: Theme for websites of the Pirate Party; It contains several sub-des
Author: xwolf
Author URI: http://www.xwolf.de
Author E-Mail: info@piratenkleider.de
Version: 3.4.7
Version: 3.4.8
Tags: fluid-layout, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, theme-options
Piratenkleider is distributed under the terms of the GNU GPL
License: GNU General Public License v2.0

0 comments on commit e3f3590

Please sign in to comment.