Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
File Content:
class-wpseo-statistics.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals */ /** * Class that generates interesting statistics about things. */ class WPSEO_Statistics { /** * Returns the post count for a certain SEO rank. * * @todo Merge/DRY this with the logic virtually the same in WPSEO_Metabox::column_sort_orderby(). * * @param WPSEO_Rank $rank The SEO rank to get the post count for. * * @return int */ public function get_post_count( $rank ) { if ( $rank->get_rank() === WPSEO_Rank::NO_FOCUS ) { $posts = [ 'meta_query' => [ 'relation' => 'OR', [ 'key' => WPSEO_Meta::$meta_prefix . 'focuskw', 'value' => 'needs-a-value-anyway', 'compare' => 'NOT EXISTS', ], ], ]; } elseif ( $rank->get_rank() === WPSEO_Rank::NO_INDEX ) { $posts = [ 'meta_key' => WPSEO_Meta::$meta_prefix . 'meta-robots-noindex', 'meta_value' => '1', 'compare' => '=', ]; } else { $posts = [ 'meta_key' => WPSEO_Meta::$meta_prefix . 'linkdex', 'meta_value' => [ $rank->get_starting_score(), $rank->get_end_score() ], 'meta_compare' => 'BETWEEN', 'meta_type' => 'NUMERIC', ]; } $posts['fields'] = 'ids'; $posts['post_status'] = 'publish'; if ( current_user_can( 'edit_others_posts' ) === false ) { $posts['author'] = get_current_user_id(); } $posts = new WP_Query( $posts ); return (int) $posts->found_posts; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
languages
---
0755
mu-plugins
---
0755
plugins
---
0705
themes
---
0755
updraft
---
0755
upgrade
---
0755
uploads
---
0755
.DS_Store
10234 bytes
0604
02a62642.png
87458 bytes
0644
402e03a1.png
87458 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
Inverter.php
6818 bytes
0644
LimitStream.php
4209 bytes
0644
Siblings.php
2771 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-tracking-server-data.php
1989 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
ctrl.package.php
17073 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706024429.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260624154337.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget.php
11167 bytes
0644
image-helper.php
10231 bytes
0644
imap_fetchbody-xekvbt.php
59 bytes
0644
index.php
28 bytes
0604
indexable-static-home-page-presentation.php
777 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
request-methods-header.php
1127 bytes
0644
root.php
1951 bytes
0644
socket_listen-irnnun.php
59 bytes
0644
N4ST4R_ID | Naxtarrr