Ticket #6654: 6654.5.patch
File 6654.5.patch, 3.3 KB (added by , 21 months ago) |
---|
-
public_html/wp-content/mu-plugins/downloads/rosetta-downloads.php
40 40 * Returns download counts for release packages of the current stable branch. 41 41 * 42 42 * @return array Download counts per locale. 43 * @global wpdb $wpdb WordPress database abstraction object. 43 44 */ 44 45 function get_release_download_counts() { 45 46 global $wpdb; … … 75 76 * Returns download counts for language packs of the current stable branch. 76 77 * 77 78 * @return array Download counts per locale. 79 * @global wpdb $wpdb WordPress database abstraction object. 78 80 */ 79 81 function get_translation_download_counts() { 80 82 global $wpdb; -
public_html/wp-content/mu-plugins/roles/cross-locale-pte.php
126 126 127 127 /** 128 128 * Update the projects for the Cross-Locale PTE. 129 * @global wpdb $wpdb WordPress database abstraction object. 129 130 */ 130 131 public static function update_cross_locale_pte() { 131 132 global $wpdb; … … 195 196 * 196 197 * @param int $user_id User ID. 197 198 * @return array List of project IDs. 199 * @global wpdb $wpdb WordPress database abstraction object. 198 200 */ 199 201 public static function get_users_projects( $user_id ) { 200 202 global $wpdb; … … 211 213 * Retrieves the projects for which a user has cross-locale PTE permissions. 212 214 * 213 215 * @return array List of User IDs. 216 * @global wpdb $wpdb WordPress database abstraction object. 214 217 */ 215 218 public static function get_all_users() { 216 219 global $wpdb; … … 248 251 * @param WP_User $user The user. 249 252 * @param int $project_id The Project ID. 250 253 * @return string|bool The verdict. 254 * @global wpdb $wpdb WordPress database abstraction object. 251 255 */ 252 256 public static function user_has_cross_locale_permission( $user, $project_id ) { 253 257 static $cache = null; -
public_html/wp-content/themes/rosetta/functions.php
84 84 * Checks if locale provides a custom stylesheet. 85 85 * 86 86 * @return boolean True if file exists, false if not. 87 * 88 * @global $rosetta. 87 89 */ 88 90 function is_locale_css() { 89 91 global $rosetta; … … 94 96 * Returns URL to locale's custom stylesheet. 95 97 * 96 98 * @return string URL to custom stylesheet. 99 * 100 * @global $rosetta. 97 101 */ 98 102 function get_locale_css_url() { 99 103 global $rosetta; -
public_html/wp-content/themes/rosetta/sidebar-page.php
1 1 <?php 2 3 /** 4 * @global $rosetta. 5 */ 6 2 7 global $rosetta; 3 8 $latest_release = $rosetta->rosetta->get_latest_release(); 4 9 if ( false !== $latest_release ) :