Changeset 6421
- Timestamp:
- 01/23/2018 11:36:08 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-allow-more-html-in-comments.php
r5351 r6421 7 7 * Author URI: https://wordpress.org/ 8 8 * License: GPLv2 or later 9 * 10 * @package WordPressdotorg\AllowMoreHtmlInComments 9 11 */ 10 12 … … 55 57 kses_init_filters(); 56 58 p2_kses_init(); 59 57 60 // Don't have core fire kses_init_filters(), we already did. 58 61 return false; -
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-site-query-locale-support.php
r5348 r6421 7 7 * Author URI: https://wordpress.org/ 8 8 * License: GPLv2 or later 9 * 10 * @package WordPressdotorg\ExtendedSiteQuery 9 11 */ 10 12 … … 36 38 37 39 if ( ! empty( $query->query_vars['locale__in'] ) ) { 38 $sql = LOCALES_TABLES . '.locale IN (' . implode( ',', array_fill( 0, count( $query->query_vars['locale__in'] ), '%s' ) ) . ')';40 $sql = LOCALES_TABLES . '.locale IN (' . implode( ',', array_fill( 0, count( $query->query_vars['locale__in'] ), '%s' ) ) . ')'; 39 41 $where[] = $wpdb->prepare( $sql, $query->query_vars['locale__in'] ); 40 42 } 41 43 42 44 if ( ! empty( $query->query_vars['locale__not_in'] ) ) { 43 $sql = LOCALES_TABLES . '.locale NOT IN (' . implode( ',', array_fill( 0, count( $query->query_vars['locale__not_in'] ), '%s' ) ) . ')';45 $sql = LOCALES_TABLES . '.locale NOT IN (' . implode( ',', array_fill( 0, count( $query->query_vars['locale__not_in'] ), '%s' ) ) . ')'; 44 46 $where[] = $wpdb->prepare( $sql, $query->query_vars['locale__not_in'] ); 45 47 } … … 63 65 */ 64 66 function add_locale_to_default_query_vars( $query ) { 65 $query->query_var_defaults = array_merge( $query->query_var_defaults, [ 'locale' => '', 'locale__in' => '', 'locale__not_in' => '' ] ); 67 $query->query_var_defaults = array_merge( $query->query_var_defaults, [ 68 'locale' => '', 69 'locale__in' => '', 70 'locale__not_in' => '', 71 ] ); 66 72 } 67 73 add_action( 'parse_site_query', __NAMESPACE__ . '\add_locale_to_default_query_vars' ); … … 70 76 * Adds 'locale' field to site details. 71 77 * 72 * @param stdClass $details The site details.73 * @return stdClass Site details.78 * @param \stdClass $details The site details. 79 * @return \stdClass Site details. 74 80 */ 75 81 function add_locale_to_site_details( $details ) { -
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-time-shortcode.php
r5347 r6421 7 7 * Author URI: https://wordpress.org/ 8 8 * License: GPLv2 or later 9 * 10 * @package WordPressdotorg\TimeShortcode 9 11 */ 10 12 … … 50 52 // Try to parse the time, relative to the post time. Or current time, if an attr is set. 51 53 $timestamp = ! isset( $attr[0] ) ? get_the_date( 'U' ) : time(); 52 $time = strtotime( $gmtcontent, $timestamp );54 $time = strtotime( $gmtcontent, $timestamp ); 53 55 54 56 // If that didn't work, give up.
Note: See TracChangeset
for help on using the changeset viewer.