dylandawg
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Back end reviews for authorsI will do that then. Thanks!
Forum: Plugins
In reply to: [EWWW Image Optimizer] medium_large – 768 x 9999 not createdI found that there is database options
medium_large_size_w
medium_large_size_hset to 0, I should just set that to whatever i think?
Hello i just tested, the issue remains with that set to admin.
This is the html for author. it links to an upgrade page that is not relevant to non-admin. On hover a submenu with no text opens.<li class="wp-has-submenu wp-not-current-submenu menu-top toplevel_page_rate-my-post" id="toplevel_page_rate-my-post">
<a class="wp-has-submenu wp-not-current-submenu menu-top toplevel_page_rate-my-post" data-ariahaspopup=""><div class="wp-menu-arrow"><div></div></div><div class="wp-menu-image dashicons-before dashicons-thumbs-up" aria-hidden="true"><br></div><div class="wp-menu-name">FeedbackWP</div></a>
<ul class="wp-submenu wp-submenu-wrap"><li class="wp-submenu-head" aria-hidden="true">FeedbackWP</li></ul></li>Ah ok ty!
Forum: Fixing WordPress
In reply to: Permalink removing words by itselfI found the problem. I had a filter i forgot about.
Ideally this filter should only work for custom post types and not the types post and page. But i don’t know how to determine post type on the editor reliably. So I just commented this filter, changed the pages permalink back and uncommented it. Not great. If you know how to not run this for post/page it would be better.
function remove_false_words($slug) { if (!is_admin()) return $slug; $keys_false = array('-homebrew', '-document'); $slug = str_replace($keys_false,'',$slug); return $slug; } add_filter('sanitize_title', 'remove_false_words',10, 2);
rest api was disabled on site you need it for math rank it seems.
Also can’t turn off anything on the dashboard, it just stays loading.
found this on network while flipping switches on dashboard:
Request URL: /wp-json/rankmath/v1/saveModule Request Method: POST Status Code: 403 Forbidden
- This reply was modified 8 months ago by dylandawg.
Found the solution.
If you care about your image even remotely, ship with this train wreck disabled
https://www.ads-software.com/support/topic/remove-pro-version-notification-on-front-end/
- This reply was modified 8 months, 1 week ago by dylandawg.
Forum: Plugins
In reply to: [Yoast SEO] Filter domain on sitemap urls?this worked
function modify_yoast_sitemap_entry( $entry, $post ) { // Replace 'old-domain.org' with your current domain and 'new-domain.co' with the desired domain $modified_entry = array( 'loc' => str_replace( 'old-domain.org', 'new-domain.co', $entry['loc'] ), 'lastmod' => $entry['lastmod'], 'changefreq' => $entry['changefreq'], 'priority' => $entry['priority'], ); return $modified_entry; } add_filter( 'wpseo_sitemap_entry', 'modify_yoast_sitemap_entry', 10, 2 );
Since I may be confused with another plugin I changed the rating to 5 stars. Cheers.
could it be it’s not linking because the posts are custom types?
Forum: Plugins
In reply to: [WP Frontend Delete Account] Will it delete all posts and images by user?From my test no, it doesn’t delete the user submitted data.
If this is outside of the scope Is there another plugin for that?Forum: Plugins
In reply to: [Login as User] get_delete_post_link() returning wrong url?Solved the plugin is fine, user shared wrong link when reporting.
if ($comment->user_id == $post->post_author) { $label = __("Administrator", "wpdiscuz"); }
That logic is missing a check.
it will also display “Administrator” when ANY user is the post author. This is the right way:
if ($comment->user_id == $post->post_author) { $user = get_userdata($comment->user_id); if (in_array('administrator', (array) $user->roles)) { $label = __("Administrator", "wpdiscuz"); } }
- This reply was modified 11 months, 4 weeks ago by dylandawg.