freemp
Forum Replies Created
-
Forum: Plugins
In reply to: [JavaScript Notifier] Php error – Undefined array key “block”Fixed. Thanks again.
Forum: Plugins
In reply to: [JavaScript Notifier] Php error – Undefined array key “block”Thanks for notifying.
Weird because
block
, if not defined, should already have been initialized as an empty string in line 33.$settings['block'] = get_option( 'javascript_notifier_block' );
if ( false === $settings['block'] )
$settings['block'] = '';Forum: Plugins
In reply to: [Disable Author Archives] Google indexing search resultsI would guess that Google recognizes that /author/* URLs respond 404 and hence does not index. Another thing is the sitemap. Since version 1.3.2 the users section is removed from the WordPress built-in sitemap but in case you’re using an external tool you would probably need to do that manually.
Forum: Plugins
In reply to: [Disable Author Archives] All links lead to Not found page (404)I just did.
Forum: Plugins
In reply to: [Disable Author Archives] All links lead to Not found page (404)Try adding this to your
functions.php
:add_filter( 'author_link', function() { return '#'; }, PHP_INT_MAX );
Forum: Plugins
In reply to: [Disable Author Archives] All links lead to Not found page (404)Does adding
add_filter('author_rewrite_rules', '__return_empty_array');
to your
functions.php
remove the permalinks after saving?Thanks for reporting. I removed the
get_comment_author_link
filter.Forum: Plugins
In reply to: [Disable Author Archives] Suppresses author name on posts, too?I’ve been thinking more about your original question. Actually, there is no reason why the plugin should suppress the author’s name, as its only purpose is to remove links to the author archive. I think I will soon publish another update which would render the line of code from previous post obsolete…
Forum: Plugins
In reply to: [Disable Author Archives] Suppresses author name on posts, too?You might want to try adding the following line of code in your theme’s
functions.php
.add_filter( 'the_author_posts_link', function() { return get_the_author(); }, PHP_INT_MAX );
Forum: Plugins
In reply to: [Disable Author Archives] remove users from sitemapI was setting up a new local test site and was able to reproduce what you described above.
I also agree that the users section should not be rendered with the plugin activated. So I will soon publish a new version of the plugin with your suggestion included.
Thanks again for reporting!
Forum: Plugins
In reply to: [Disable Author Archives] remove users from sitemapI was just creating a test site with a test user on wordpress.com just to see its sitemap. From what I see, there are no users listed. Could it be that the users provider is disabled by default?
Forum: Plugins
In reply to: [Disable Author Archives] remove users from sitemapHmm… true, actually. I mentioned it because it appears here:
Forum: Plugins
In reply to: [Disable Author Archives] remove users from sitemapGood point, thanks!
What about adding this as well …. ?
add_filter( 'wp_sitemaps_register_providers', function( $providers ) { unset( $providers['users'] ); return $providers; } );
Forum: Plugins
In reply to: [Disable Author Archives] author′s site still appears instead of 404 pageThe plugin identifies an author archive by either looking for the query string ‘author’ (e.g. as in https://webxxx/?author=1) or evaluating the is_author() function provided by WordPress. If webxxx/author/adminxxx were an author archive, is_author() would return ‘true’, but it obviously is not recognized as such by WordPress.
Forum: Plugins
In reply to: [Disable Author Archives] jQuery Error with Avada layouts for contentHi @doffine,
one possible reason for the error might be that the hash character (
#
) the plugin returns instead of the author link, is used in a jQuery without either being wrapped in quotes or escaped by\\
.A good starting point would be to check where your theme uses author links.