- Timestamp:
- 07/03/2015 06:12:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/helper-functions.php
r1692 r1701 81 81 * by using that and adding the year (if available). 82 82 * 83 * @param int $site_id Optionally, get the name for a site other than the current one. 84 * 83 85 * @return string 84 86 */ 85 function get_wordcamp_name( ) {87 function get_wordcamp_name( $site_id = 0 ) { 86 88 $name = false; 89 90 switch_to_blog( $site_id ); 87 91 88 92 if ( $wordcamp = get_wordcamp_post() ) { … … 96 100 } 97 101 102 restore_current_blog(); 103 98 104 return $name; 99 105 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)