AlexeyKosov
Forum Replies Created
-
I found the culprit, it’s the following code
//Remove height from table
if(preg_match('/<table(.*?)height="\d+"(.*?)>/', $content)){
$content = preg_replace('/<table(.*?)height="\d+"(.*?)>/', '<table$1$2>', $content);
}in
templates/features.php
It does remove the height attribute, but not only from the table. It affects all the following tags, including <amp-img>.
A possible fix would be:
//Remove height from table
if(preg_match('/<table([^>]*?)height="\d+"(.*?)>/', $content)){
$content = preg_replace('/<table([^>]*?)height="\d+"(.*?)>/', '<table$1$2>', $content);
}Hi Ahmed,
Unfortunately, upgrading to 1.0.91 does not fix the issue.
Hi Ahmed,
It occured from 1.0.90
When I downgraded the plugin to the previous version (1.0.89), the error disappeared.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] aioseop_amp_description> The problem is not from our Plugin.
@ahmedkaludi Does your plugin use the
aioseop_amp_description
filter? Yes. See templates/features.php
This filter is now deprecated so your plugin causes the deprecation warning.
It would be great to acknowledge and fix it. Thanks!Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Exclude posts marked as “noindex”I did notice that they don’t talk to each other, it was just an idea that it would be great to add support for that, it should be pretty easy to implement.
Forum: Networking WordPress
In reply to: Multisite permalinks for subfolder wordpress installationDid you read my message carefully?
I tried to change permalink structure in site settings to /%postname%/, and all URLs look good after that, but all they cause 404 error.
The solution was to clear WordPress internal rewrite rules with
function flush_site_rules(){ global $wp_rewrite; $wp_rewrite->flush_rules(); } add_filter("wp_loaded","flush_site_rules");