Changeset 30545
- Timestamp:
- 11/24/2014 06:14:03 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r30157 r30545 731 731 * Optional. Array or string of default arguments. 732 732 * 733 * @type string $before HTML or text to prepend to each link. Default is '<p> Pages:'.734 * @type string $after HTML or text to append to each link. Default is '</p>'.735 * @type string $link_before HTML or text to prepend to each link, inside the <a>tag.733 * @type string $before HTML or text to prepend to each link. Default is . 734 * @type string $after HTML or text to append to each link. Default is . 735 * @type string $link_before HTML or text to prepend to each link, inside the tag. 736 736 * Also prepended to the current item, which is not linked. Default empty. 737 * @type string $link_after HTML or text to append to each Pages link inside the <a>tag.737 * @type string $link_after HTML or text to append to each Pages link inside the tag. 738 738 * Also appended to the current item, which is not linked. Default empty. 739 739 * @type string $next_or_number Indicates whether page numbers should be used. Valid values are number … … 1511 1511 1512 1512 /** 1513 * Wrap attachment in <<p>> elementbefore content.1513 * Wrap attachment in before content. 1514 1514 * 1515 1515 * @since 2.0.0 -
trunk/src/wp-includes/post.php
r30480 r30545 373 373 * 374 374 * The returned array has 'main', 'extended', and 'more_text' keys. Main has the text before 375 * the <code><!--more--></code>. The 'extended' key has the content after the376 * <code><!--more--></code>comment. The 'more_text' key has the custom "Read More" text.375 * the . The 'extended' key has the content after the 376 * comment. The 'more_text' key has the custom "Read More" text. 377 377 * 378 378 * @since 1.0.0 … … 1595 1595 * - add_new - Default is Add New for both hierarchical and non-hierarchical types. 1596 1596 * When internationalizing this string, please use a gettext context 1597 * {@ seehttp://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context}1598 * matching your post type. Example: <code>_x('Add New', 'product');</code>.1597 * {@ http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context} 1598 * matching your post type. Example: . 1599 1599 * - add_new_item - Default is Add New Post/Add New Page. 1600 1600 * - edit_item - Default is Edit Post/Edit Page. … … 1607 1607 * ones the default is 'Parent Page:'. 1608 1608 * - all_items - String for the submenu. Default is All Posts/All Pages. 1609 * - menu_name - Default is the same as <code>name</code>.1609 * - menu_name - Default is the same as . 1610 1610 * 1611 1611 * Above, the first default value is for non-hierarchical post types (like posts) -
trunk/src/wp-includes/rewrite.php
r29788 r30545 227 227 * places specified by the provided bitmask. For example: 228 228 * 229 * <code> 230 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 231 * </code> 229 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 232 230 * 233 231 * will add a new rewrite rule ending with "json(/(.*))?/?$" for every permastruct 234 232 * that describes a permalink (post) or page. This is rewritten to "json=$match" 235 233 * where $match is the part of the URL matched by the endpoint regex (e.g. "foo" in 236 * " <permalink>/json/foo/").234 * "/json/foo/"). 237 235 * 238 236 * A new query var with the same name as the endpoint will also be created. … … 240 238 * When specifying $places ensure that you are using the EP_* constants (or a 241 239 * combination of them using the bitwise OR operator) as their values are not 242 * guaranteed to remain static (especially EP_ALL).243 * 244 * Be sure to flush the rewrite rules - flush_rewrite_rules()- when your plugin gets240 * guaranteed to remain static (especially ). 241 * 242 * Be sure to flush the rewrite rules - - when your plugin gets 245 243 * activated and deactivated. 246 244 * -
trunk/src/wp-includes/shortcodes.php
r30105 r30545 22 22 * To apply shortcode tags to content: 23 23 * 24 * <code> 25 * $out = do_shortcode($content); 26 * </code> 24 * $out = do_shortcode( $content ); 27 25 * 28 26 * @link http://codex.wordpress.org/Shortcode_API … … 53 51 * Simplest example of a shortcode tag using the API: 54 52 * 55 * <code>56 * // [footag foo="bar"]57 * function footag_func($atts){58 * return "foo = {$atts[foo]}";59 * }60 * add_shortcode('footag', 'footag_func');61 * </code>53 * 54 * 55 * { 56 * 57 * 58 * 59 * 62 60 * 63 61 * Example with nice attribute defaults: 64 62 * 65 * <code> 66 * // [bartag foo="bar"] 67 * function bartag_func($atts) { 68 * $args = shortcode_atts(array( 69 * 'foo' => 'no foo', 70 * 'baz' => 'default baz', 71 * ), $atts); 72 * 73 * return "foo = {$args['foo']}"; 74 * } 75 * add_shortcode('bartag', 'bartag_func'); 76 * </code> 63 * // [bartag foo="bar"] 64 * function bartag_func( $atts ) { 65 * $args = shortcode_atts( array( 66 * 'foo' => 'no foo', 67 * 'baz' => 'default baz', 68 * ), $atts ); 69 * 70 * return "foo = {$args['foo']}"; 71 * } 72 * add_shortcode( 'bartag', 'bartag_func' ); 77 73 * 78 74 * Example with enclosed content: 79 75 * 80 * <code> 81 * // [baztag]content[/baztag] 82 * function baztag_func($atts, $content='') { 83 * return "content = $content"; 84 * } 85 * add_shortcode('baztag', 'baztag_func'); 86 * </code> 76 * // [baztag]content[/baztag] 77 * function baztag_func( $atts, $content = '' ) { 78 * return "content = $content"; 79 * } 80 * add_shortcode( 'baztag', 'baztag_func' ); 87 81 * 88 82 * @since 2.5.0
Note: See TracChangeset
for help on using the changeset viewer.