Skip to content

Commit 9e19ecc

Browse files
committed
Revert: Remove the jetpack_bot_agents
Reverting the PR that added this support. Right now Jetpack doesn’t use the function in Jetpack code. So users that would have added a filter to the function would have no benefits.
1 parent 946c23f commit 9e19ecc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

class.jetpack-user-agent.php

-6
Original file line numberDiff line numberDiff line change
@@ -1391,12 +1391,6 @@ static function is_bot_user_agent( $ua = null ) {
13911391
'teoma', 'twiceler', 'yahooseeker', 'yahooysmcm', 'yammybot',
13921392
);
13931393

1394-
/**
1395-
* Allows user to add their own bot agents.
1396-
*
1397-
*/
1398-
$bot_agents = apply_filters( 'jetpack_bot_agents', $bot_agents );
1399-
14001394
foreach ( $bot_agents as $bot_agent ) {
14011395
if ( false !== stripos( $ua, $bot_agent ) ) {
14021396
return true;

0 commit comments

Comments
 (0)