Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Standards for multi-platform colaboration
# Standards for multi-platform collaboration

# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ phpmd.html
config.json
package-lock.json

# Code Sniffers, Linters and Formaters
# Code Sniffers, Linters and Formatters
/wpcs

# Source Map Files
Expand Down
2 changes: 1 addition & 1 deletion includes/3rdparty/divi/class-divi-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct() {
}

/**
* Intialize Divi admin.
* Initialize Divi admin.
*/
public function init() {
$screen = get_current_screen();
Expand Down
2 changes: 1 addition & 1 deletion includes/3rdparty/divi/class-divi.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct() {
}

/**
* Intialize.
* Initialize.
*/
public function init() {
if ( ! $this->can_add_seo_tab() ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/3rdparty/elementor/class-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct() {
}

/**
* Intialize.
* Initialize.
*/
public function init() {
if ( ! $this->can_add_seo_tab() ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-admin-dashboard-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class="rank-math-tab<?php echo Param::get( 'view', $default_tab ) === sanitize_h
}

/**
* Get dashbaord navigation links
* Get dashboard navigation links
*
* @return array
*/
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ public function as_exclude_pastdue_actions( $value ) {
}

$threshold_seconds = (int) apply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS );
$threshhold_min = (int) apply_filters( 'action_scheduler_pastdue_actions_min', 1 );
$threshold_min = (int) apply_filters( 'action_scheduler_pastdue_actions_min', 1 );

$check = ( $num_pastdue_actions >= $threshhold_min );
return (bool) apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshhold_min );
$check = ( $num_pastdue_actions >= $threshold_min );
return (bool) apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-bulk-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function hooks() {
}

/**
* Intialize.
* Initialize.
*/
public function init() {
if ( ! Helper::has_cap( 'onpage_general' ) || ! $this->can_add() ) {
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/class-option-center.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function title_post_type_settings( $tabs ) {

$tabs['p_types'] = [
'title' => esc_html__( 'Post Types:', 'rank-math' ),
'type' => 'seprator',
'type' => 'separator',
];

foreach ( Helper::get_accessible_post_types() as $post_type ) {
Expand Down Expand Up @@ -277,10 +277,10 @@ public function title_taxonomy_settings( $tabs ) {
}

foreach ( $taxonomies_data as $attached => $taxonomies ) {
// Seprator.
// Separator.
$tabs[ $attached ] = [
'title' => ucwords( $attached ) . ':',
'type' => 'seprator',
'type' => 'separator',
];

foreach ( $taxonomies as $taxonomy ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ private function get_tabs() {
* @return string|boolean
*/
private function locate_file( $id, $tab ) {
if ( isset( $tab['type'] ) && 'seprator' === $tab['type'] ) {
if ( isset( $tab['type'] ) && 'separator' === $tab['type'] ) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function display() {
}

/**
* Is the page is currrent page.
* Is the page is current page.
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/class-post-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function hooks() {
}

/**
* Intialize.
* Initialize.
*/
public function init() {
if ( ! Helper::has_cap( 'onpage_general' ) ) {
Expand Down Expand Up @@ -319,7 +319,7 @@ private function get_seo_data() {
}

/**
* Get Post IDs dispalyed on the Post lists page.
* Get Post IDs displayed on the Post lists page.
*/
private function get_post_ids() {
global $wp_query, $per_page;
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-post-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function hooks() {
}

/**
* Intialize.
* Initialize.
*/
public function init() {
if ( ! Helper::has_cap( 'general' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/database/class-orderby.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait OrderBy {
* // multiple order clauses
* ->orderBy(['firstname', 'lastname'], 'desc')
*
* // muliple order clauses with diffrent directions
* // multiple order clauses with different directions
* ->orderBy(['firstname' => 'asc', 'lastname' => 'desc'])
*
* @param array|string $columns Columns.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/database/class-query-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function set( $name, $value = null ) {
}

/**
* Reset all vaiables.
* Reset all variables.
*
* @return self The current query builder.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/database/class-select.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function selectFunc( $func, $field, $alias = null ) { // @codingStandards
/**
* Distinct select setter
*
* @param bool $distinct Is disticnt.
* @param bool $distinct Is distinct.
*
* @return self The current query builder.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/database/class-where.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ private function is_valid_type( $type ) {
/**
* Create bulk where statement.
*
* @param array $where Array of statments.
* @param array $where Array of statements.
* @param string $type Statement type.
* @param string $sub_type Statement sub-type.
*/
Expand Down
16 changes: 8 additions & 8 deletions includes/admin/importers/class-wp-schema-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,12 @@ private function get_schema_types() {
'work-example' => 'book_editions',
'rating' => 'review.reviewRating.ratingValue',
],
'course' => [
'name' => 'name',
'description' => 'description',
'orgnization-name' => 'provider.name',
'same-as' => 'provider.sameAs',
'rating' => 'review.reviewRating.ratingValue',
'course' => [
'name' => 'name',
'description' => 'description',
'organization-name' => 'provider.name',
'same-as' => 'provider.sameAs',
'rating' => 'review.reviewRating.ratingValue',
],
'person' => [
'name' => 'name',
Expand Down Expand Up @@ -708,7 +708,7 @@ private function get_job_posting_fields() {
'job-type' => 'employmentType',
'start-date' => 'datePosted',
'expiry-date' => 'validThrough',
'orgnization-name' => 'hiringOrganization.name',
'organization-name' => 'hiringOrganization.name',
'same-as' => 'hiringOrganization.sameAs',
'organization-logo' => 'hiringOrganization.logo',
'location-street' => 'jobLocation.address.streetAddress',
Expand Down Expand Up @@ -755,7 +755,7 @@ private function get_recipe_fields() {
'recipe-yield' => 'recipeYield',
'recipe-keywords' => 'keywords',
'nutrition' => 'nutrition.calories',
'preperation-time' => 'prepTime',
'preparation-time' => 'prepTime',
'cook-time' => 'cookTime',
'ingredients' => 'recipeIngredient',
'rating' => 'review.reviewRating.ratingValue',
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/importers/class-yoast.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ private function locations_meta( $old_post_id, $new_post_id ) {
}

if ( isset( $schema['geo']['latitude'] ) && isset( $schema['geo']['longitude'] ) ) {
update_post_meta( $new_post_id, 'rank_math_local_business_latitide', $schema['geo']['latitude'] );
update_post_meta( $new_post_id, 'rank_math_local_business_latitude', $schema['geo']['latitude'] );
update_post_meta( $new_post_id, 'rank_math_local_business_longitude', $schema['geo']['longitude'] );
}

Expand Down
2 changes: 1 addition & 1 deletion includes/admin/metabox/class-metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function save_meta( $cmb ) {
/**
* Invalidate facebook object cache for the post.
*
* @param string $field_id The current field id paramater.
* @param string $field_id The current field id parameter.
* @param bool $updated Whether the metadata update action occurred.
* @param string $action Action performed. Could be "repeatable", "updated", or "removed".
* @param CMB2_Field $field This field object.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/metabox/class-screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function get_values() {
'locale' => Locale::get_site_language(),
'localeFull' => get_locale(),
'overlayImages' => Helper::choices_overlay_images(),
'defautOgImage' => Helper::get_settings( 'titles.open_graph_image', rank_math()->plugin_url() . 'assets/admin/img/social-placeholder.jpg' ),
'defaultOgImage' => Helper::get_settings( 'titles.open_graph_image', rank_math()->plugin_url() . 'assets/admin/img/social-placeholder.jpg' ),
'customPermalinks' => (bool) get_option( 'permalink_structure', false ),
'isUserRegistered' => Helper::is_site_connected(),
'autoSuggestKeywords' => Helper::is_site_connected(),
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/notifications/class-notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function can_display() {
}

/**
* Dismiss persisten notification.
* Dismiss persistent notification.
*
* @codeCoverageIgnore
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/wizard/class-your-site.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private function get_default_site_type() {
}

/**
* Get type dependecy.
* Get type dependency.
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/class-cmb2.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function render_tab_container_open( $field_args, $field ) {
continue;
}

if ( isset( $tab['type'] ) && 'seprator' === $tab['type'] ) {
if ( isset( $tab['type'] ) && 'separator' === $tab['type'] ) {
printf( '<span class="separator">%s</span>', esc_html( $tab['title'] ) );
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions includes/class-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ private function sanitize_post_type_link( &$post_link, $post, $taxonomy ) {

$primary_term = $this->get_primary_term( $taxonomy, $post->ID );
if ( false !== $primary_term ) {
// Get the hierachical terms.
// Get the hierarchical terms.
$parents = $this->get_hierarchical_link( $primary_term );

// Replace the placeholder rewrite tag with hierachical terms.
// Replace the placeholder rewrite tag with hierarchical terms.
$post_link = str_replace( $find, $parents, $post_link );
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/class-data-encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Data_Encryption {

/**
* Enryption available or not.
* Encryption available or not.
*
* @var bool
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/class-rewrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function add_category_rewrites( $category_rewrite, $category_nicename, $
*
* @param string $name The encoded category URI string.
*
* @return string The convered URI string.
* @return string The converted URI string.
*/
private function convert_encoded_to_upper( $name ) {
// Checks if name has any encoding in it.
Expand Down
4 changes: 2 additions & 2 deletions includes/frontend/class-breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private function maybe_add_primary_term( $terms ) {
}

/**
* Add ancestor taxonomy crumbs to the hierachical taxonomy trails.
* Add ancestor taxonomy crumbs to the hierarchical taxonomy trails.
*
* @param object $term Term data object.
*/
Expand All @@ -557,7 +557,7 @@ private function maybe_add_term_ancestors( $term ) {
}

/**
* Can add ancestor taxonomy crumbs to the hierachical taxonomy trails.
* Can add ancestor taxonomy crumbs to the hierarchical taxonomy trails.
*
* @param object $term Term data object.
*
Expand Down
2 changes: 1 addition & 1 deletion includes/frontend/class-link-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private function remove_link_class( $attrs ) {
}

/**
* Set External attributs
* Set External attributes
*
* @since 1.0.44.2
*
Expand Down
2 changes: 1 addition & 1 deletion includes/frontend/class-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function breadcrumb( $args ) {
}

/**
* Contact info shortcode, displays nicely formatted contact informations.
* Contact info shortcode, displays nicely formatted contact information.
*
* @param array $args Optional. Shortcode arguments - currently only 'show'
* parameter, which is a comma-separated list of elements to show.
Expand Down
2 changes: 1 addition & 1 deletion includes/helpers/class-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static function query_builder( $table_name ) {
/**
* Check if table exists in db or not.
*
* @param string $table_name Table name to check for existance.
* @param string $table_name Table name to check for existence.
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/helpers/class-schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait Schema {
*
* @param int $post_id Post ID.
* @param boolean $return_valid Whether to return valid schema type which can be used on the frontend.
* @param boolean $sanitize Return santized Schema type.
* @param boolean $sanitize Return sanitized Schema type.
*
* @return string Default Schema Type.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/helpers/class-str.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ public static function comparison( $needle, $haystack, $comparison = '' ) {
}

/**
* Convert string to array with defined seprator.
* Convert string to array with defined separator.
*
* @param string $str String to convert.
* @param string $sep Seprator.
* @param string $sep Separator.
*
* @return bool|array
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/module/class-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function setup_core( $modules ) {

$modules['local-seo'] = [
'title' => esc_html__( 'Local SEO', 'rank-math' ),
'desc' => esc_html__( 'Dominate the search results for the local audiences by optimizing your website for Local SEO and it also helps you to aquire the Knowledge Graph.', 'rank-math' ),
'desc' => esc_html__( 'Dominate the search results for the local audiences by optimizing your website for Local SEO and it also helps you to acquire the Knowledge Graph.', 'rank-math' ),
'class' => 'RankMath\Local_Seo\Local_Seo',
'icon' => 'local-seo',
'upgradeable' => true,
Expand Down
2 changes: 1 addition & 1 deletion includes/module/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct( $id, $args ) {
* Getter.
*
* @param string $key Key to get data for.
* @param mixed $default_value Defaul value if not found.
* @param mixed $default_value Default value if not found.
*
* @return mixed
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/modules/analytics/class-keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ public function get_top_position_graph() {
return $cache;
}

// Step1. Get splitted date intervals for graph within selected date range.
// Step1. Get split date intervals for graph within selected date range.
$intervals = $this->get_intervals();
$sql_daterange = $this->get_sql_date_intervals( $intervals );

// Step2. Get most recent days for each splitted date intervals.
// Step2. Get most recent days for each split date intervals.
// phpcs:disable
$query = $wpdb->prepare(
"SELECT MAX(DATE(created)) as date, {$sql_daterange}
Expand Down
Loading