Make WordPress Core

Changeset 13416


Ignore:
Timestamp:
02/25/2010 10:01:30 PM (15 years ago)
Author:
westi
Message:

Switch from POST_BY_EMAIL constant to enable post-by-email when multisite to a filter. See #12381.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r13412 r13416  
    8282</table>
    8383
    84 <?php if ( !is_multisite() || defined( 'POST_BY_EMAIL' ) ) { ?>
     84<?php if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { ?>
    8585<h3><?php _e('Post via e-mail') ?></h3>
    8686<p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
  • trunk/wp-includes/ms-default-filters.php

    r13414 r13416  
    4040// Disable somethings by default for multisite
    4141add_filter( 'enable_update_services_configuration', '__return_false' );
     42add_filter( 'enable_post_by_email_configuration', '__return_false' );
    4243?>
Note: See TracChangeset for help on using the changeset viewer.