Changeset 10524
- Timestamp:
- 12/16/2020 09:03:41 AM (4 years ago)
- Location:
- sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub/open-links-in-new-window.php
r10521 r10524 25 25 if ( hostname = link.href.match( /^\s*(?:(?:https?:)?\/\/)([^/]+)(\/|$)/ ) ) { 26 26 hostname = hostname[1]; 27 } else if ( "mailto" === link.href.substr( 0, 6 ) {27 } else if ( "mailto" === link.href.substr( 0, 6 ) ) { 28 28 hostname = "mailto"; // not whitelisted hostname to fall through. 29 29 } -
sites/trunk/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php
r10523 r10524 30 30 // Some themes require is_customize_preview() before loading starter content. 31 31 add_action( 'setup_theme', array( $this, 'pre_setup_theme' ), 0 ); 32 33 // Some themes check to see if the site is fresh through `get_option( 'fresh_site' )` before loading starter content. 34 add_filter( 'pre_option_fresh_site', '__return_true' ); 32 35 33 36 add_action( 'init', array( $this, 'init' ) ); … … 497 500 498 501 private function find_data_by_id( $id, $type = 'posts' ) { 502 if ( empty( $this->starter_content[ $type ] ) ) { 503 return array(); 504 } 505 499 506 foreach ( $this->starter_content[ $type ] as $name => $data ) { 500 507 if ( $id === $data['ID'] ) {
Note: See TracChangeset
for help on using the changeset viewer.