summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/custom-post-types/comics.php')
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics.php14
1 files changed, 7 insertions, 7 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' );