Commit 8dc1af48 authored by Simonas's avatar Simonas

Job SEO complete

parent 2e1bb25d
......@@ -27,7 +27,7 @@ class WPSEO_Post_Metabox_Formatter implements WPSEO_Metabox_Formatter_Interface
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -41,7 +41,7 @@ class WPSEO_Post_Metabox_Formatter implements WPSEO_Metabox_Formatter_Interface
public function __construct( $post, array $options, $structure ) {
$this->post = $post;
$this->permalink = $structure;
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
}
/**
......
......@@ -34,7 +34,7 @@ class WPSEO_Breadcrumbs {
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -129,7 +129,7 @@ class WPSEO_Breadcrumbs {
$this->show_on_front = get_option( 'show_on_front' );
$this->page_for_posts = get_option( 'page_for_posts' );
$this->woocommerce_shop_page = new WPSEO_WooCommerce_Shop_Page();
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
$this->filter_element();
$this->filter_separator();
......
......@@ -13,7 +13,7 @@ class WPSEO_OpenGraph {
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -21,7 +21,7 @@ class WPSEO_OpenGraph {
* Class constructor.
*/
public function __construct() {
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
if ( isset( $GLOBALS['fb_ver'] ) || class_exists( 'Facebook_Loader', false ) ) {
add_filter( 'fb_meta_tags', array( $this, 'facebook_filter' ), 10, 1 );
......
......@@ -15,7 +15,7 @@ class WPSEO_Schema_Article implements WPSEO_Graph_Piece {
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -33,7 +33,7 @@ class WPSEO_Schema_Article implements WPSEO_Graph_Piece {
*/
public function __construct( WPSEO_Schema_Context $context ) {
$this->context = $context;
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
}
/**
......
......@@ -15,7 +15,7 @@ class WPSEO_Schema_WebPage implements WPSEO_Graph_Piece {
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -33,7 +33,7 @@ class WPSEO_Schema_WebPage implements WPSEO_Graph_Piece {
*/
public function __construct( WPSEO_Schema_Context $context ) {
$this->context = $context;
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
}
/**
......
......@@ -50,7 +50,7 @@ class WPSEO_Replace_Vars {
/**
* The date helper.
*
* @var Date_Helper
* @var WPSEO_Date_Helper
*/
protected $date;
......@@ -74,7 +74,7 @@ class WPSEO_Replace_Vars {
* @return \WPSEO_Replace_Vars
*/
public function __construct() {
$this->date = new Date_Helper();
$this->date = new WPSEO_Date_Helper();
}
/**
......
......@@ -6,11 +6,11 @@
*/
/**
* Class Date_Helper
* Class WPSEO_Date_Helper
*
* Note: Move this class with namespace to the src/helpers directory and add a class_alias for BC.
*/
class Date_Helper {
class WPSEO_Date_Helper {
/**
* Formats a given date in UTC TimeZone format.
......@@ -23,6 +23,10 @@ class Date_Helper {
public function format( $date, $format = DATE_W3C ) {
$immutable_date = date_create_immutable_from_format( 'Y-m-d H:i:s', $date, new DateTimeZone( 'UTC' ) );
if ( ! $immutable_date ) {
return $date;
}
return $immutable_date->format( $format );
}
......
{"domain":"wordpress-seo","locale_data":{"wordpress-seo":{"":{"domain":"wordpress-seo","plural-forms":"nplurals=2; plural=n != 1;","lang":"de_CH"},"Schema":[],"Truly optimize your site for a local audience with our %s plugin! Optimized address details, opening hours, store locator and pickup option!":[],"Serving local customers?":[],"Get the %s plugin now":[],"You can edit the details shown in meta data, like the social profiles, the name and the description of this user on their %1$s profile page.":[],"Select a user...":[],"Name:":[],"You have selected the user %1$s as the person this site represents. Their user profile information will now be used in search results. %2$sUpdate their profile to make sure the information is correct.%3$s":[],"Error: Please select a user below to make your site's meta data complete.":[],"New step added":[],"New question added":[],"Did you know %s also analyzes the different word forms of your keyphrase, like plurals and past tenses?":[],"Help on choosing the perfect focus keyphrase":[],"Would you like to add a related keyphrase?":[],"Go %s!":[],"Rank better with synonyms & related keyphrases":[],"Add related keyphrase":[],"Get %s":[],"Focus keyphrase":[],"Learn more about the readability analysis":[],"Describe the duration of the instruction:":[],"Optional. Customize how you want to describe the duration of the instruction":[],"%s, %s and %s":[],"%s and %s":[],"%d minute":[],"%d hour":[],"%d day":[],"Enter a step title":[],"Optional. This can give you better control over the styling of the steps.":[],"CSS class(es) to apply to the steps":[],"minutes":[],"hours":[],"days":[],"Create a How-to guide in an SEO-friendly way. You can only use one How-to block per post.":[],"List your Frequently Asked Questions in an SEO-friendly way. You can only use one FAQ block per post.":[],"Copy error":[],"An error occurred loading the %s primary taxonomy picker.":[],"Time needed:":[],"Move question down":[],"Move question up":[],"Insert question":[],"Delete question":[],"Enter the answer to the question":[],"Enter a question":[],"Add question":[],"Frequently Asked Questions":[],"Great news: you can, with %s!":[],"Select the primary %s":[],"Mark as cornerstone content":[],"Move step down":[],"Move step up":[],"Insert step":[],"Delete step":[],"Add image":[],"Enter a step description":[],"Enter a description":[],"Unordered list":[],"Showing step items as an ordered list.":[],"Showing step items as an unordered list":[],"Add step":[],"Delete total time":[],"Add total time":[],"How to":[],"How-to":[],"Snippet Preview":[],"Analysis results":[],"Enter a focus keyphrase to calculate the SEO score":[],"Learn more about Cornerstone Content.":[],"Cornerstone content should be the most important and extensive articles on your site.":[],"Add synonyms":[],"Would you like to add keyphrase synonyms?":[],"Current year":["Aktuelles Jahr"],"Page":["Seite"],"Tagline":[],"Modify your meta description by editing it right here":[],"ID":["ID"],"Separator":["Trenner"],"Search phrase":["Suchbegriff"],"Term description":[],"Tag description":[],"Category description":[],"Primary category":[],"Category":["Kategorie"],"Excerpt only":[],"Excerpt":["Textauszug"],"Site title":[],"Parent title":[],"Date":["Datum"],"24/7 email support":[],"SEO analysis":[],"Other benefits of %s for you:":["Andere Vorteile von %s für dich:"],"Cornerstone content":["Cornerstone Inhalt"],"Superfast internal linking suggestions":["Superschnelle interne Verlinkungsvorschläge"],"Great news: you can, with %1$s!":["Großartige Neuigkeit: Du kannst es, mit %1$s!"],"1 year free support and updates included!":[],"%1$sSocial media preview%2$s: Facebook & Twitter":[],"%1$sNo more dead links%2$s: easy redirect manager":["%1$sKeine verwaisten Links mehr%2$s: Einfacher Redirect-Manager"],"No ads!":["Keine Werbung!"],"Please provide a meta description by editing the snippet below.":["Bitte lege eine Meta-Beschreibung fest, indem du den Code-Schnipsel bearbeitest."],"The name of the person":["Der Name der Person"],"Readability analysis":["Lesbarkeits-Analyse"],"Open":["Offen"],"Title":["Titel"],"Close":["Schließen"],"Snippet preview":["Snippet Vorschau"],"FAQ":["FAQ"],"Settings":["Einstellungen"]}}}
\ No newline at end of file
{"domain":"wordpress-seo","locale_data":{"wordpress-seo":{"":{"domain":"wordpress-seo","plural-forms":"nplurals=2; plural=n != 1;","lang":"de_CH"},"When you click OK we will load our HelpScout beacon, which will load data from HelpScout. This beacon can potentially also set cookies.":[],"Schema":[],"Truly optimize your site for a local audience with our %s plugin! Optimized address details, opening hours, store locator and pickup option!":[],"Serving local customers?":[],"Get the %s plugin now":[],"You can edit the details shown in meta data, like the social profiles, the name and the description of this user on their %1$s profile page.":[],"Select a user...":[],"Name:":[],"You have selected the user %1$s as the person this site represents. Their user profile information will now be used in search results. %2$sUpdate their profile to make sure the information is correct.%3$s":[],"Error: Please select a user below to make your site's meta data complete.":[],"New step added":[],"New question added":[],"Did you know %s also analyzes the different word forms of your keyphrase, like plurals and past tenses?":[],"Help on choosing the perfect focus keyphrase":[],"Would you like to add a related keyphrase?":[],"Go %s!":[],"Rank better with synonyms & related keyphrases":[],"Add related keyphrase":[],"Get %s":[],"Focus keyphrase":[],"Learn more about the readability analysis":[],"Describe the duration of the instruction:":[],"Optional. Customize how you want to describe the duration of the instruction":[],"%s, %s and %s":[],"%s and %s":[],"%d minute":[],"%d hour":[],"%d day":[],"Enter a step title":[],"Optional. This can give you better control over the styling of the steps.":[],"CSS class(es) to apply to the steps":[],"minutes":[],"hours":[],"days":[],"Create a How-to guide in an SEO-friendly way. You can only use one How-to block per post.":[],"List your Frequently Asked Questions in an SEO-friendly way. You can only use one FAQ block per post.":[],"Copy error":[],"An error occurred loading the %s primary taxonomy picker.":[],"Time needed:":[],"Move question down":[],"Move question up":[],"Insert question":[],"Delete question":[],"Enter the answer to the question":[],"Enter a question":[],"Add question":[],"Frequently Asked Questions":[],"Great news: you can, with %s!":[],"Select the primary %s":[],"Mark as cornerstone content":[],"Move step down":[],"Move step up":[],"Insert step":[],"Delete step":[],"Add image":[],"Enter a step description":[],"Enter a description":[],"Unordered list":[],"Showing step items as an ordered list.":[],"Showing step items as an unordered list":[],"Add step":[],"Delete total time":[],"Add total time":[],"How to":[],"How-to":[],"Snippet Preview":[],"Analysis results":[],"Enter a focus keyphrase to calculate the SEO score":[],"Learn more about Cornerstone Content.":[],"Cornerstone content should be the most important and extensive articles on your site.":[],"Add synonyms":[],"Would you like to add keyphrase synonyms?":[],"Current year":["Aktuelles Jahr"],"Page":["Seite"],"Tagline":[],"Modify your meta description by editing it right here":[],"ID":["ID"],"Separator":["Trenner"],"Search phrase":["Suchbegriff"],"Term description":[],"Tag description":[],"Category description":[],"Primary category":[],"Category":["Kategorie"],"Excerpt only":[],"Excerpt":["Textauszug"],"Site title":[],"Parent title":[],"Date":["Datum"],"24/7 email support":[],"SEO analysis":[],"Other benefits of %s for you:":["Andere Vorteile von %s für dich:"],"Cornerstone content":["Cornerstone Inhalt"],"Superfast internal linking suggestions":["Superschnelle interne Verlinkungsvorschläge"],"Great news: you can, with %1$s!":["Großartige Neuigkeit: Du kannst es, mit %1$s!"],"1 year free support and updates included!":[],"%1$sSocial media preview%2$s: Facebook & Twitter":[],"%1$sNo more dead links%2$s: easy redirect manager":["%1$sKeine verwaisten Links mehr%2$s: Einfacher Redirect-Manager"],"No ads!":["Keine Werbung!"],"Please provide a meta description by editing the snippet below.":["Bitte lege eine Meta-Beschreibung fest, indem du den Code-Schnipsel bearbeitest."],"The name of the person":["Der Name der Person"],"Readability analysis":["Lesbarkeits-Analyse"],"Open":["Offen"],"Title":["Titel"],"Close":["Schließen"],"Snippet preview":["Snippet Vorschau"],"FAQ":["FAQ"],"Settings":["Einstellungen"]}}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment