summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/custom-post-types')
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics.php14
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics.js1
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/many-items.js2
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js2
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js1
-rw-r--r--plugins/jetpack/modules/custom-post-types/nova.php12
-rw-r--r--plugins/jetpack/modules/custom-post-types/portfolios.php4
-rw-r--r--plugins/jetpack/modules/custom-post-types/testimonial.php4
8 files changed, 18 insertions, 22 deletions
diff --git a/plugins/jetpack/modules/custom-post-types/comics.php b/plugins/jetpack/modules/custom-post-types/comics.php
index 381e9b15..c67b1d97 100644
--- a/plugins/jetpack/modules/custom-post-types/comics.php
+++ b/plugins/jetpack/modules/custom-post-types/comics.php
@@ -1,5 +1,7 @@
<?php
+use Automattic\Jetpack\Assets;
+
class Jetpack_Comic {
const POST_TYPE = 'jetpack-comic';
@@ -7,7 +9,7 @@ class Jetpack_Comic {
static $instance = false;
if ( ! $instance )
- $instance = new Jetpack_Comic;
+ $instance = new Jetpack_Comic();
return $instance;
}
@@ -74,7 +76,6 @@ class Jetpack_Comic {
add_action( 'admin_footer-edit.php', array( $this, 'admin_footer' ) );
add_action( 'load-edit.php', array( $this, 'bulk_edit' ) );
add_action( 'admin_notices', array( $this, 'bulk_edit_notices' ) );
-
}
public function admin_footer() {
@@ -171,10 +172,9 @@ class Jetpack_Comic {
public function register_scripts() {
wp_enqueue_style( 'jetpack-comics-style', plugins_url( 'comics/comics.css', __FILE__ ) );
wp_style_add_data( 'jetpack-comics-style', 'rtl', 'replace' );
-
wp_enqueue_script(
'jetpack-comics',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/custom-post-types/comics/comics.min.js',
'modules/custom-post-types/comics/comics.js'
),
@@ -280,7 +280,7 @@ class Jetpack_Comic {
* for Feedbag (the Reader's feed storage mechanism), eschew
* a pretty URL for one that will get the post into the Reader.
*
- * @see http://core.trac.wordpress.org/ticket/19744
+ * @see https://core.trac.wordpress.org/ticket/19744
* @param string $permalink The existing (possibly pretty) permalink.
*/
public function custom_permalink_for_feedbag( $permalink ) {
@@ -311,7 +311,7 @@ class Jetpack_Comic {
7 => esc_html__( 'Comic saved.', 'jetpack' ),
8 => sprintf( __( 'Comic submitted. <a target="_blank" href="%s">Preview comic</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
9 => sprintf( __( 'Comic scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview comic</a>', 'jetpack' ),
- // translators: Publish box date format, see http://php.net/date
+ // translators: Publish box date format, see https://php.net/date
date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ),
10 => sprintf( __( 'Comic draft updated. <a target="_blank" href="%s">Preview comic</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
);
@@ -521,7 +521,7 @@ function comics_welcome_email( $welcome_email, $blog_id, $user_id, $password, $t
Your webcomic's new site is ready to go. Get started by <a href=\"BLOG_URLwp-admin/customize.php#title\">setting your comic's title and tagline</a> so your readers know what it's all about.
-Looking for more help with setting up your site? Check out the WordPress.com <a href=\"http://learn.wordpress.com/\" target=\"_blank\">beginner's tutorial</a> and the <a href=\"http://en.support.wordpress.com/comics/\" target=\"_blank\">guide to comics on WordPress.com</a>. Dive right in by <a href=\"BLOG_URLwp-admin/customize.php#title\">publishing your first strip!</a>
+Looking for more help with setting up your site? Check out the WordPress.com <a href=\"https://learn.wordpress.com/\" target=\"_blank\">beginner's tutorial</a> and the <a href=\"https://en.support.wordpress.com/comics/\" target=\"_blank\">guide to comics on WordPress.com</a>. Dive right in by <a href=\"BLOG_URLwp-admin/customize.php#title\">publishing your first strip!</a>
Lots of laughs,
The WordPress.com Team", 'jetpack' );
diff --git a/plugins/jetpack/modules/custom-post-types/comics/comics.js b/plugins/jetpack/modules/custom-post-types/comics/comics.js
index 159cf3bd..3e9d708b 100644
--- a/plugins/jetpack/modules/custom-post-types/comics/comics.js
+++ b/plugins/jetpack/modules/custom-post-types/comics/comics.js
@@ -1,4 +1,3 @@
-/* jshint onevar: false, smarttabs: true, devel: true */
/* global Jetpack_Comics_Options */
jQuery( function( $ ) {
diff --git a/plugins/jetpack/modules/custom-post-types/js/many-items.js b/plugins/jetpack/modules/custom-post-types/js/many-items.js
index 3e67e143..5f8eee9d 100644
--- a/plugins/jetpack/modules/custom-post-types/js/many-items.js
+++ b/plugins/jetpack/modules/custom-post-types/js/many-items.js
@@ -1,5 +1,3 @@
-/* jshint onevar: false, smarttabs: true */
-
( function( $ ) {
var menuSelector, nonceInput, methods;
diff --git a/plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js b/plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js
index 601f1bd7..d83952b3 100644
--- a/plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js
+++ b/plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js
@@ -1,5 +1,3 @@
-/* jshint onevar: false, smarttabs: true, devel: true */
-
( function( $ ) {
var NovaCheckBoxes = {
inputs: null,
diff --git a/plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js b/plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js
index d7291e96..7c57d287 100644
--- a/plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js
+++ b/plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js
@@ -1,4 +1,3 @@
-/* jshint onevar: false, smarttabs: true */
/* global _novaDragDrop */
( function( $ ) {
diff --git a/plugins/jetpack/modules/custom-post-types/nova.php b/plugins/jetpack/modules/custom-post-types/nova.php
index 7301a314..b4cf0281 100644
--- a/plugins/jetpack/modules/custom-post-types/nova.php
+++ b/plugins/jetpack/modules/custom-post-types/nova.php
@@ -1,5 +1,7 @@
<?php
+use Automattic\Jetpack\Assets;
+
/*
* Put the following code in your theme's Food Menu Page Template to customize the markup of the menu.
@@ -51,7 +53,7 @@ class Nova_Restaurant {
static $instance = false;
if ( !$instance ) {
- $instance = new Nova_Restaurant;
+ $instance = new Nova_Restaurant();
}
if ( $menu_item_loop_markup ) {
@@ -278,7 +280,7 @@ class Nova_Restaurant {
8 => sprintf( __( 'Menu item submitted. <a target="_blank" href="%s">Preview item</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
/* translators: this is about a food menu */
9 => sprintf( __( 'Menu item scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview item</a>', 'jetpack' ),
- // translators: Publish box date format, see http://php.net/date
+ // translators: Publish box date format, see https://php.net/date
date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ),
/* translators: this is about a food menu */
10 => sprintf( __( 'Menu item draft updated. <a target="_blank" href="%s">Preview item</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
@@ -439,7 +441,7 @@ class Nova_Restaurant {
wp_register_script(
'nova-menu-checkboxes',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/custom-post-types/js/menu-checkboxes.min.js',
'modules/custom-post-types/js/menu-checkboxes.js'
),
@@ -616,7 +618,7 @@ class Nova_Restaurant {
wp_enqueue_script(
'nova-drag-drop',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/custom-post-types/js/nova-drag-drop.min.js',
'modules/custom-post-types/js/nova-drag-drop.js'
),
@@ -863,7 +865,7 @@ class Nova_Restaurant {
function enqueue_many_items_scripts() {
wp_enqueue_script(
'nova-many-items',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/custom-post-types/js/many-items.min.js',
'modules/custom-post-types/js/many-items.js'
),
diff --git a/plugins/jetpack/modules/custom-post-types/portfolios.php b/plugins/jetpack/modules/custom-post-types/portfolios.php
index dd3858ee..e41728fc 100644
--- a/plugins/jetpack/modules/custom-post-types/portfolios.php
+++ b/plugins/jetpack/modules/custom-post-types/portfolios.php
@@ -137,7 +137,7 @@ class Jetpack_Portfolio {
<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
<?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?>
- <a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
+ <a target="_blank" href="https://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
</label>
<?php endif;
if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) :
@@ -383,7 +383,7 @@ class Jetpack_Portfolio {
7 => esc_html__( 'Project saved.', 'jetpack' ),
8 => sprintf( __( 'Project submitted. <a target="_blank" href="%s">Preview project</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
9 => sprintf( __( 'Project scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview project</a>', 'jetpack' ),
- // translators: Publish box date format, see http://php.net/date
+ // translators: Publish box date format, see https://php.net/date
date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ),
10 => sprintf( __( 'Project item draft updated. <a target="_blank" href="%s">Preview project</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
);
diff --git a/plugins/jetpack/modules/custom-post-types/testimonial.php b/plugins/jetpack/modules/custom-post-types/testimonial.php
index ba427244..30b44a25 100644
--- a/plugins/jetpack/modules/custom-post-types/testimonial.php
+++ b/plugins/jetpack/modules/custom-post-types/testimonial.php
@@ -152,7 +152,7 @@ class Jetpack_Testimonial {
<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
<?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?>
- <a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
+ <a target="_blank" href="https://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
</label>
<?php endif;
@@ -352,7 +352,7 @@ class Jetpack_Testimonial {
7 => esc_html__( 'Testimonial saved.', 'jetpack' ),
8 => sprintf( __( 'Testimonial submitted. <a target="_blank" href="%s">Preview testimonial</a>', 'jetpack'), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
9 => sprintf( __( 'Testimonial scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview testimonial</a>', 'jetpack' ),
- // translators: Publish box date format, see http://php.net/date
+ // translators: Publish box date format, see https://php.net/date
date_i18n( __( 'M j, Y @ G:i', 'jetpack' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post->ID) ) ),
10 => sprintf( __( 'Testimonial draft updated. <a target="_blank" href="%s">Preview testimonial</a>', 'jetpack' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ),
);