Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
images
/
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
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
Yoast_Academy_video.png
74788 bytes
0644
Yoast_SEO_negative_icon.svg
596 bytes
0644
alert-error-icon.svg
541 bytes
0644
alert-info-icon.svg
565 bytes
0644
alert-success-icon.svg
522 bytes
0644
alert-warning-icon.svg
614 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
brushstroke_background.svg
1972 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class.pack.database.php
30838 bytes
0644
class.u.json.php
4832 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706064250.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
error-icon.svg
558 bytes
0644
exceptions.php
708 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
38 bytes
0644
link-in-icon.svg
480 bytes
0644
link-out-icon.svg
485 bytes
0644
local_plugin_assistant.svg
11638 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
module.php
1297 bytes
0644
new-to-configuration-notice.svg
11994 bytes
0644
news_plugin_assistant.svg
23502 bytes
0644
newsletter-collage.png
98967 bytes
0644
question-mark.png
299 bytes
0644
readability-icon.svg
483 bytes
0644
setup.php
2699 bytes
0644
support-team.svg
5940 bytes
0644
video_plugin_assistant.svg
9848 bytes
0644
woo_plugin_assistant.svg
9515 bytes
0644
N4ST4R_ID | Naxtarrr