Making WordPress.org

Changeset 720


Ignore:
Timestamp:
06/20/2014 01:25:08 AM (11 years ago)
Author:
iandunn
Message:

Rosetta theme: Make the detection of default content less strict.

There are a few sites with variants on the default contact form introduction (e.g.,
http://en-ca.wordpress.org/contact/) and the previous method was too strict to include them.

props SergeyBiryukov
fixes #489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/contact.php

    r704 r720  
    165165<h3><?php _e('Contact', 'rosetta'); ?></h3>
    166166
    167 <?php if ( "The contents of this page are filled automatically, you don't need to spend time here. Just change the title." == get_the_content() ) : ?>
     167<?php if ( false !== strpos( get_the_content(), 'The contents of this page are filled automatically' ) ) : ?>
    168168    <p><?php _e('You can contact translators and this site administrators via this form:', 'rosetta'); ?></p>
    169     <p><?php /* translators: feel free to add links to places, where one can get support in your language. */ _e('<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta');?></p>
     169    <?php /* translators: feel free to add links to places, where one can get support in your language. */ ?>
     170    <p><?php _e('<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta'); ?></p>
    170171<?php else: ?>
    171172    <?php the_content(); ?>
Note: See TracChangeset for help on using the changeset viewer.