134
134
$post_data['post_content'] = $this->side_load_images( $post_id, $post_data['post_content'] );
137
* Filter the post data of a Press This post before saving/updating, after
138
* side_load_images action had run.
137
* Filters the post data of a Press This post before saving/updating.
139
* The {@see 'side_load_images'} action has already run at this point.
793
794
$press_this = str_replace( '.css', '-rtl.css', $press_this );
796
$open_sans_font_url = '';
798
/* translators: If there are characters in your language that are not supported
799
* by Open Sans, translate this to 'off'. Do not translate into your own language.
801
if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) {
802
$subsets = 'latin,latin-ext';
804
/* translators: To add an additional Open Sans character subset specific to your language,
805
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
807
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );
809
if ( 'cyrillic' == $subset ) {
810
$subsets .= ',cyrillic,cyrillic-ext';
811
} elseif ( 'greek' == $subset ) {
812
$subsets .= ',greek,greek-ext';
813
} elseif ( 'vietnamese' == $subset ) {
814
$subsets .= ',vietnamese';
818
'family' => urlencode( 'Open Sans:400italic,700italic,400,600,700' ),
819
'subset' => urlencode( $subsets ),
822
$open_sans_font_url = ',' . add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
825
return $styles . $press_this . $open_sans_font_url;
797
return $styles . $press_this;
1531
1503
do_action( 'admin_footer' );
1533
1505
/** This action is documented in wp-admin/admin-footer.php */
1506
do_action( 'admin_print_footer_scripts-press-this.php' );
1508
/** This action is documented in wp-admin/admin-footer.php */
1534
1509
do_action( 'admin_print_footer_scripts' );
1536
1511
/** This action is documented in wp-admin/admin-footer.php */