joedev91
Forum Replies Created
-
Forum: Plugins
In reply to: [Arconix FAQ] structured data QAPageI added this code to solve this:
// Add FAQ Page structured data when it’s necessary
add_action( ‘wp_head’, function () {$post = get_post();
if ( ! $post instanceof WP_Error && $post->post_type == ‘faq’ ) {
$json = [
“@context” => “https://schema.org/”,
“@type” => “FAQPage”,
“mainEntity” => [
“@type” => “Question”,
“name” => $post->post_title,
“acceptedAnswer” => [
“@type” => “Answer”,
“text” => $post->post_content
]
]
];$html = ‘<script type=”application/ld+json”>’;
$html .= json_encode($json);
$html .= ‘</script>’;echo $html;
}
} );
Forum: Plugins
In reply to: [Arconix FAQ] structured data QAPage+1 to this feature. It’s so easy to implement and it give us a big improve.
Forum: Plugins
In reply to: [GEO my WP] Multiple Locations for posts?Any news with this? I’m really interested on that functionality for my site.
Forum: Plugins
In reply to: [Cookie Notice & Compliance for GDPR / CCPA] Compatible with W3 Total Cache@rocketworks same case.
I’m going to check your cornerstones.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Already duplicated media improvementSorry for the misunderstanding, I have this code in my custom multisite post duplicator plugin. I customised the plugin to use this method instead of the original to check duplicated pictures.
It’s not a functions.php method because there is no action to attach it.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Already duplicated media improvementWhat it’s not working with the above code? I’m using it in my site with multisite post duplicator modificad and it works perfectly.
- This reply was modified 6 years, 9 months ago by joedev91.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache Breakes Redirects to Pages Trailing SlashesTemporary fix will be to change page cache from disk “enhanced” to basic. I’m finding a final solution because Disk Basic setting it’s a bit slow than Enhanced.
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache remove trailing slashesSame problem here. So this means if we need trailing slash we can’t use disk enhanced? Someone expert in W3 Total Cache please give us some light on this.
Forum: Plugins
In reply to: [Advanced Database Cleaner] Works with Multi-Network?I have a WordPress Multisite with 4 sites enabled and I can confirm you it’s not working rigth now. Only works with site with id 1 when it’s enabled to network.
Forum: Plugins
In reply to: [Adminimize] Import still not workingSame issue here…
Forum: Plugins
In reply to: [Oasis Workflow] All authors can edit all posts when this plugin is enabledNow role author and contributor is working correctly.
Forum: Plugins
In reply to: [Oasis Workflow] All authors can edit all posts when this plugin is enabledOkey, I’ll try it tomorrow
Forum: Plugins
In reply to: [Oasis Workflow] All authors can edit all posts when this plugin is enabledI removed all this, but the problem is the Author role can’t publish her own articles…
Forum: Plugins
In reply to: [Oasis Workflow] All authors can edit all posts when this plugin is enabledYes it has, but I don’t want this authors to have this permissions because I created my custom rol to work with oasis workflow plugin. But If I remove her capabilities (“edit_others_posts”, “edit_others_pages”) and others provided by ow, authors can’t publish articles, in other words Author doesn’t work as WordPress official Author rol works.
There is any way to remove all modifications done by ow to authors? I think instead of add “edit_others_posts” and “edit_others_pages” it’s more correct to add custom capability ow_read_others_posts and add new method to check if he was assigned in a workflow.
Thanks
Thanks for the answer.
You can fix this validating nonce only when is not an anonymous user. I think if user is requesting admin-ajax and isn’t logged in doesn’t have rights to do something nasty.
This is my temporary solution:
/** * Remove nonce from TopTen Plugin when user is guest * * @param array $ajaxData * * @return string */ function lbpdb_remove_nonce( $ajaxData ) { if(!is_user_logged_in()) { unset($ajaxData['top_ten_nonce']); } return $ajaxData; } add_filter( 'tptn_tracker_script_args', 'lbpdb_remove_nonce');