Permalink
Browse files

CLI: make some methods private so they're not registered as commands

  • Loading branch information...
1 parent bdcd374 commit 12b11b6878bfd9acb61b805392fa3cc06b970b5f @mjangda mjangda committed Apr 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 includes/class-wp-cli.php
View
4 includes/class-wp-cli.php
@@ -41,7 +41,7 @@ function pull_sitegroup( $args, $assoc_args ) {
$server->pull_content( $sites );
}
- function _make_em_talk_pull() {
+ private function _make_em_talk_pull() {
// output when a post is new or updated
add_filter( 'syn_pre_pull_posts', function( $posts, $site, $client ) {
WP_CLI::line( sprintf( 'Processing feed %s (%d)', $site->post_title, $site->ID ) );
@@ -59,7 +59,7 @@ function _make_em_talk_pull() {
}, 10, 5 );
}
- function _get_syndication_server() {
+ private function _get_syndication_server() {
global $push_syndication_server;
return $push_syndication_server;
}

0 comments on commit 12b11b6

Please sign in to comment.